diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-09-21 04:01:45 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-09-21 04:01:45 -0400 |
commit | f17b7bad396c8f748620f54a88754a1f5af02c8a (patch) | |
tree | f003124a953a6fcf1da0ab07ad61899343cd69e9 | |
parent | d28d1f10f99f8ab2fe2bd06c3d22397d0ba08687 (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>
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -894,6 +894,9 @@ export INSTALL_HDR_PATH | |||
894 | 894 | ||
895 | PHONY += headers_install | 895 | PHONY += headers_install |
896 | headers_install: include/linux/version.h | 896 | headers_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 |