aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 17:55:52 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 17:55:52 -0400
commit398477d4bd57cc33792fd93035c2763ad78629c4 (patch)
tree8a9cc1cd2f371843f6242b877cbdce9e109a06ed /Makefile
parent6e936d3e9a45a4307e7f4a29ee9829e7a0464af1 (diff)
parent6d71627581e96efb3717960b79fc2167a4617977 (diff)
Merge git://git.infradead.org/~dwmw2/khdrs-2.6
* git://git.infradead.org/~dwmw2/khdrs-2.6: New 'make headers_install_all' target. Use dependencies for 'make headers_install'. [S390] Unexport <asm/z90crypt.h>, export <asm/zcrypt.h> in its place. Remove dead netfilter_logging.h from include/linux/Kbuild Remove offsetof() from user-visible <linux/stddef.h> Clean up exported headers on CRIS Fix v850 exported headers Don't advertise (or allow) headers_{install,check} where inappropriate. Remove UML header export Remove ARM26 header export. Fix H8300 exported headers. Fix m68knommu exported headers Fix exported headers for SPARC, SPARC64 Fix 'make headers_check' on m32r Fix 'make headers_check' on sh64 Fix 'make headers_check' on sh [HEADERS] Fix ARM 'make headers_check' Initial pass of manual conflict resolution in top-level Makefile over conflicting build rule and headers_install changes.
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