Skip to content

Commit c95fa08

Browse files
sravnborgmichal42
authored andcommitted
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>
1 parent 96f1304 commit c95fa08

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

‎Makefile‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,11 +1070,6 @@ firmware_install: FORCE
10701070
export INSTALL_HDR_PATH = $(objtree)/usr
10711071

10721072
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)))
10781073

10791074
# If we do an all arch process set dst to asm-$(hdr-arch)
10801075
hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm)
@@ -1089,10 +1084,10 @@ headers_install_all:
10891084

10901085
PHONY += headers_install
10911086
headers_install: __headers
1092-
$(if $(wildcard $(srctree)/$(hdr-dir)/Kbuild),, \
1087+
$(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/asm/Kbuild),, \
10931088
$(error Headers not exportable for the $(SRCARCH) architecture))
10941089
$(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)
10961091

10971092
PHONY += headers_check_all
10981093
headers_check_all: headers_install_all
@@ -1101,7 +1096,7 @@ headers_check_all: headers_install_all
11011096
PHONY += headers_check
11021097
headers_check: headers_install
11031098
$(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
11051100

11061101
# ---------------------------------------------------------------------------
11071102
# Modules

‎scripts/headers.sh‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ do_command()
88
{
99
if [ -f ${srctree}/arch/$2/include/asm/Kbuild ]; then
1010
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
1311
else
1412
printf "Ignoring arch: %s\n" ${arch}
1513
fi

0 commit comments

Comments
 (0)