diff options
| author | Sam Ravnborg <sam@ravnborg.org> | 2009-10-17 16:47:31 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2009-12-12 07:08:14 -0500 |
| commit | c95fa08a3e17c3f2983c4cbf409f5c9ae47b7dec (patch) | |
| tree | 8de81a998a23892966cfd356d37bd20b97cb8a63 | |
| parent | 96f13045b6cb0c562bf3ffd3844871811e677e63 (diff) | |
kbuild: do not check for include/asm-$ARCH
No architectures uses include/asm-$ARCH now.
So drop check for location of include files
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
| -rw-r--r-- | Makefile | 11 | ||||
| -rwxr-xr-x | scripts/headers.sh | 2 |
2 files changed, 3 insertions, 10 deletions
| @@ -1070,11 +1070,6 @@ firmware_install: FORCE | |||
| 1070 | export INSTALL_HDR_PATH = $(objtree)/usr | 1070 | export INSTALL_HDR_PATH = $(objtree)/usr |
| 1071 | 1071 | ||
| 1072 | hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj | 1072 | hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj |
| 1073 | # Find out where the Kbuild file is located to support | ||
| 1074 | # arch/$(ARCH)/include/asm | ||
| 1075 | hdr-dir = $(strip \ | ||
| 1076 | $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild), \ | ||
| 1077 | arch/$(hdr-arch)/include/asm, include/asm-$(hdr-arch))) | ||
| 1078 | 1073 | ||
| 1079 | # If we do an all arch process set dst to asm-$(hdr-arch) | 1074 | # If we do an all arch process set dst to asm-$(hdr-arch) |
| 1080 | hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) | 1075 | hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) |
| @@ -1089,10 +1084,10 @@ headers_install_all: | |||
| 1089 | 1084 | ||
| 1090 | PHONY += headers_install | 1085 | PHONY += headers_install |
| 1091 | headers_install: __headers | 1086 | headers_install: __headers |
| 1092 | $(if $(wildcard $(srctree)/$(hdr-dir)/Kbuild),, \ | 1087 | $(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild),, \ |
| 1093 | $(error Headers not exportable for the $(SRCARCH) architecture)) | 1088 | $(error Headers not exportable for the $(SRCARCH) architecture)) |
| 1094 | $(Q)$(MAKE) $(hdr-inst)=include | 1089 | $(Q)$(MAKE) $(hdr-inst)=include |
| 1095 | $(Q)$(MAKE) $(hdr-inst)=$(hdr-dir) $(hdr-dst) | 1090 | $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst) |
| 1096 | 1091 | ||
| 1097 | PHONY += headers_check_all | 1092 | PHONY += headers_check_all |
| 1098 | headers_check_all: headers_install_all | 1093 | headers_check_all: headers_install_all |
| @@ -1101,7 +1096,7 @@ headers_check_all: headers_install_all | |||
| 1101 | PHONY += headers_check | 1096 | PHONY += headers_check |
| 1102 | headers_check: headers_install | 1097 | headers_check: headers_install |
| 1103 | $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 | 1098 | $(Q)$(MAKE) $(hdr-inst)=include HDRCHECK=1 |
| 1104 | $(Q)$(MAKE) $(hdr-inst)=$(hdr-dir) $(hdr-dst) HDRCHECK=1 | 1099 | $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/asm $(hdr-dst) HDRCHECK=1 |
| 1105 | 1100 | ||
| 1106 | # --------------------------------------------------------------------------- | 1101 | # --------------------------------------------------------------------------- |
| 1107 | # Modules | 1102 | # Modules |
diff --git a/scripts/headers.sh b/scripts/headers.sh index 0308ecc10d5b..1ddcdd38d97f 100755 --- a/scripts/headers.sh +++ b/scripts/headers.sh | |||
| @@ -8,8 +8,6 @@ do_command() | |||
| 8 | { | 8 | { |
| 9 | if [ -f ${srctree}/arch/$2/include/asm/Kbuild ]; then | 9 | if [ -f ${srctree}/arch/$2/include/asm/Kbuild ]; then |
| 10 | make ARCH=$2 KBUILD_HEADERS=$1 headers_$1 | 10 | make ARCH=$2 KBUILD_HEADERS=$1 headers_$1 |
| 11 | elif [ -f ${srctree}/include/asm-$2/Kbuild ]; then | ||
| 12 | make ARCH=$2 KBUILD_HEADERS=$1 headers_$1 | ||
| 13 | else | 11 | else |
| 14 | printf "Ignoring arch: %s\n" ${arch} | 12 | printf "Ignoring arch: %s\n" ${arch} |
| 15 | fi | 13 | fi |
