aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fce530a66e33..7a06c16602fd 100644
--- a/Makefile
+++ b/Makefile
@@ -921,8 +921,20 @@ depend dep:
921INSTALL_HDR_PATH=$(objtree)/usr 921INSTALL_HDR_PATH=$(objtree)/usr
922export INSTALL_HDR_PATH 922export INSTALL_HDR_PATH
923 923
924HDRARCHES=$(filter-out generic,$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild)))
925
926PHONY += headers_install_all
927headers_install_all: include/linux/version.h scripts_basic FORCE
928 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
929 $(Q)for arch in $(HDRARCHES); do \
930 $(MAKE) ARCH=$$arch -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch ;\
931 done
932
924PHONY += headers_install 933PHONY += headers_install
925headers_install: include/linux/version.h scripts_basic FORCE 934headers_install: include/linux/version.h scripts_basic FORCE
935 @if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \
936 echo '*** Error: Headers not exportable for this architecture ($(ARCH))'; \
937 exit 1 ; fi
926 $(Q)$(MAKE) $(build)=scripts scripts/unifdef 938 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
927 $(Q)rm -rf $(INSTALL_HDR_PATH)/include 939 $(Q)rm -rf $(INSTALL_HDR_PATH)/include
928 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst obj=include 940 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst obj=include
@@ -1107,13 +1119,17 @@ help:
1107 @echo ' cscope - Generate cscope index' 1119 @echo ' cscope - Generate cscope index'
1108 @echo ' kernelrelease - Output the release version string' 1120 @echo ' kernelrelease - Output the release version string'
1109 @echo ' kernelversion - Output the version stored in Makefile' 1121 @echo ' kernelversion - Output the version stored in Makefile'
1110 @echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH' 1122 @if [ -r include/asm-$(ARCH)/Kbuild ]; then \
1123 echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \
1124 fi
1111 @echo ' (default: $(INSTALL_HDR_PATH))' 1125 @echo ' (default: $(INSTALL_HDR_PATH))'
1112 @echo '' 1126 @echo ''
1113 @echo 'Static analysers' 1127 @echo 'Static analysers'
1114 @echo ' checkstack - Generate a list of stack hogs' 1128 @echo ' checkstack - Generate a list of stack hogs'
1115 @echo ' namespacecheck - Name space analysis on compiled kernel' 1129 @echo ' namespacecheck - Name space analysis on compiled kernel'
1116 @echo ' headers_check - Sanity check on exported headers' 1130 @if [ -r include/asm-$(ARCH)/Kbuild ]; then \
1131 echo ' headers_check - Sanity check on exported headers'; \
1132 fi
1117 @echo '' 1133 @echo ''
1118 @echo 'Kernel packaging:' 1134 @echo 'Kernel packaging:'
1119 @$(MAKE) $(build)=$(package-dir) help 1135 @$(MAKE) $(build)=$(package-dir) help