diff options
Diffstat (limited to 'Makefile')
-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 |