aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3494c17c9fb9..98e5af72983f 100644
--- a/Makefile
+++ b/Makefile
@@ -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
860INSTALL_HDR_PATH=$(MODLIB)/abi
861export INSTALL_HDR_PATH
862
863PHONY += headers_install
864headers_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
861ifdef CONFIG_MODULES 872ifdef 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'