diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -856,6 +856,17 @@ depend dep: | |||
856 | @echo '*** Warning: make $@ is unnecessary now.' | 856 | @echo '*** Warning: make $@ is unnecessary now.' |
857 | 857 | ||
858 | # --------------------------------------------------------------------------- | 858 | # --------------------------------------------------------------------------- |
859 | # Kernel headers | ||
860 | INSTALL_HDR_PATH=$(MODLIB)/abi | ||
861 | export INSTALL_HDR_PATH | ||
862 | |||
863 | PHONY += headers_install | ||
864 | headers_install: include/linux/version.h | ||
865 | $(Q)unifdef -Ux /dev/null | ||
866 | $(Q)rm -rf $(INSTALL_HDR_PATH)/include | ||
867 | $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include | ||
868 | |||
869 | # --------------------------------------------------------------------------- | ||
859 | # Modules | 870 | # Modules |
860 | 871 | ||
861 | ifdef CONFIG_MODULES | 872 | ifdef CONFIG_MODULES |
@@ -1027,6 +1038,8 @@ help: | |||
1027 | @echo ' cscope - Generate cscope index' | 1038 | @echo ' cscope - Generate cscope index' |
1028 | @echo ' kernelrelease - Output the release version string' | 1039 | @echo ' kernelrelease - Output the release version string' |
1029 | @echo ' kernelversion - Output the version stored in Makefile' | 1040 | @echo ' kernelversion - Output the version stored in Makefile' |
1041 | @echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH' | ||
1042 | @echo ' (default: /lib/modules/$$VERSION/abi)' | ||
1030 | @echo '' | 1043 | @echo '' |
1031 | @echo 'Static analysers' | 1044 | @echo 'Static analysers' |
1032 | @echo ' checkstack - Generate a list of stack hogs' | 1045 | @echo ' checkstack - Generate a list of stack hogs' |