aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-09-21 04:01:45 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-09-21 04:01:45 -0400
commitf17b7bad396c8f748620f54a88754a1f5af02c8a (patch)
treef003124a953a6fcf1da0ab07ad61899343cd69e9 /Makefile
parentd28d1f10f99f8ab2fe2bd06c3d22397d0ba08687 (diff)
Don't advertise (or allow) headers_{install,check} where inappropriate.
For architectures which don't have the include/asm-$(ARCH)/Kbuild file, like ARM26, UM, etc. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index edfc2fdf76c9..33074e834e9c 100644
--- a/Makefile
+++ b/Makefile
@@ -894,6 +894,9 @@ export INSTALL_HDR_PATH
894 894
895PHONY += headers_install 895PHONY += headers_install
896headers_install: include/linux/version.h 896headers_install: include/linux/version.h
897 @if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \
898 echo '*** Error: Headers not exportable for this architecture ($(ARCH))'; \
899 exit 1 ; fi
897 $(Q)unifdef -Ux /dev/null 900 $(Q)unifdef -Ux /dev/null
898 $(Q)rm -rf $(INSTALL_HDR_PATH)/include 901 $(Q)rm -rf $(INSTALL_HDR_PATH)/include
899 $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include 902 $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include
@@ -1076,13 +1079,17 @@ help:
1076 @echo ' cscope - Generate cscope index' 1079 @echo ' cscope - Generate cscope index'
1077 @echo ' kernelrelease - Output the release version string' 1080 @echo ' kernelrelease - Output the release version string'
1078 @echo ' kernelversion - Output the version stored in Makefile' 1081 @echo ' kernelversion - Output the version stored in Makefile'
1079 @echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH' 1082 @if [ -r include/asm-$(ARCH)/Kbuild ]; then \
1083 echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \
1084 fi
1080 @echo ' (default: $(INSTALL_HDR_PATH))' 1085 @echo ' (default: $(INSTALL_HDR_PATH))'
1081 @echo '' 1086 @echo ''
1082 @echo 'Static analysers' 1087 @echo 'Static analysers'
1083 @echo ' checkstack - Generate a list of stack hogs' 1088 @echo ' checkstack - Generate a list of stack hogs'
1084 @echo ' namespacecheck - Name space analysis on compiled kernel' 1089 @echo ' namespacecheck - Name space analysis on compiled kernel'
1085 @echo ' headers_check - Sanity check on exported headers' 1090 @if [ -r include/asm-$(ARCH)/Kbuild ]; then \
1091 echo ' headers_check - Sanity check on exported headers'; \
1092 fi
1086 @echo '' 1093 @echo ''
1087 @echo 'Kernel packaging:' 1094 @echo 'Kernel packaging:'
1088 @$(MAKE) $(build)=$(package-dir) help 1095 @$(MAKE) $(build)=$(package-dir) help