mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
Kbuild: prepare scope and tags for arch/x86
Preparatory patch for the source merge of arch/i386 and arch/x86_64 into arch/x86. Make scope and tags aware of SRCARCH Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
6752ed90da
commit
2eb4c95094
1 changed files with 8 additions and 3 deletions
11
Makefile
11
Makefile
|
@ -1293,18 +1293,23 @@ ifeq ($(ALLSOURCE_ARCHS),)
|
||||||
ifeq ($(ARCH),um)
|
ifeq ($(ARCH),um)
|
||||||
ALLINCLUDE_ARCHS := $(ARCH) $(SUBARCH)
|
ALLINCLUDE_ARCHS := $(ARCH) $(SUBARCH)
|
||||||
else
|
else
|
||||||
ALLINCLUDE_ARCHS := $(ARCH)
|
ALLINCLUDE_ARCHS := $(SRCARCH)
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
#Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behavour.
|
#Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behavour.
|
||||||
ALLINCLUDE_ARCHS := $(ALLSOURCE_ARCHS)
|
ALLINCLUDE_ARCHS := $(ALLSOURCE_ARCHS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Take care of arch/x86
|
||||||
|
ifeq ($(ARCH), $(SRCARCH))
|
||||||
ALLSOURCE_ARCHS := $(ARCH)
|
ALLSOURCE_ARCHS := $(ARCH)
|
||||||
|
else
|
||||||
|
ALLSOURCE_ARCHS := $(ARCH) $(SRCARCH)
|
||||||
|
endif
|
||||||
|
|
||||||
define find-sources
|
define find-sources
|
||||||
( for ARCH in $(ALLSOURCE_ARCHS) ; do \
|
( for ARCH in $(ALLSOURCE_ARCHS) ; do \
|
||||||
find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \
|
find $(__srctree)arch/$${SRCARCH} $(RCS_FIND_IGNORE) \
|
||||||
-name $1 -print; \
|
-name $1 -print; \
|
||||||
done ; \
|
done ; \
|
||||||
find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
|
find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
|
||||||
|
@ -1313,7 +1318,7 @@ define find-sources
|
||||||
\( -name config -o -name 'asm-*' \) -prune \
|
\( -name config -o -name 'asm-*' \) -prune \
|
||||||
-o -name $1 -print; \
|
-o -name $1 -print; \
|
||||||
for ARCH in $(ALLINCLUDE_ARCHS) ; do \
|
for ARCH in $(ALLINCLUDE_ARCHS) ; do \
|
||||||
find $(__srctree)include/asm-$${ARCH} $(RCS_FIND_IGNORE) \
|
find $(__srctree)include/asm-$${SRCARCH} $(RCS_FIND_IGNORE) \
|
||||||
-name $1 -print; \
|
-name $1 -print; \
|
||||||
done ; \
|
done ; \
|
||||||
find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \
|
find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \
|
||||||
|
|
Loading…
Reference in a new issue