aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 387526b69d4f..dfe559c89fe6 100644
--- a/Makefile
+++ b/Makefile
@@ -576,7 +576,7 @@ libs-y := $(libs-y1) $(libs-y2)
576# --------------------------------------------------------------------------- 576# ---------------------------------------------------------------------------
577# vmlinux is built from the objects selected by $(vmlinux-init) and 577# vmlinux is built from the objects selected by $(vmlinux-init) and
578# $(vmlinux-main). Most are built-in.o files from top-level directories 578# $(vmlinux-main). Most are built-in.o files from top-level directories
579# in the kernel tree, others are specified in arch/$(ARCH)Makefile. 579# in the kernel tree, others are specified in arch/$(ARCH)/Makefile.
580# Ordering when linking is important, and $(vmlinux-init) must be first. 580# Ordering when linking is important, and $(vmlinux-init) must be first.
581# 581#
582# vmlinux 582# vmlinux
@@ -603,6 +603,7 @@ vmlinux-init := $(head-y) $(init-y)
603vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y) 603vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y)
604vmlinux-all := $(vmlinux-init) $(vmlinux-main) 604vmlinux-all := $(vmlinux-init) $(vmlinux-main)
605vmlinux-lds := arch/$(ARCH)/kernel/vmlinux.lds 605vmlinux-lds := arch/$(ARCH)/kernel/vmlinux.lds
606export KBUILD_VMLINUX_OBJS := $(vmlinux-all)
606 607
607# Rule to link vmlinux - also used during CONFIG_KALLSYMS 608# Rule to link vmlinux - also used during CONFIG_KALLSYMS
608# May be overridden by arch/$(ARCH)/Makefile 609# May be overridden by arch/$(ARCH)/Makefile
@@ -855,6 +856,7 @@ archprepare: prepare1 scripts_basic
855 856
856prepare0: archprepare FORCE 857prepare0: archprepare FORCE
857 $(Q)$(MAKE) $(build)=. 858 $(Q)$(MAKE) $(build)=.
859 $(Q)$(MAKE) $(build)=. missing-syscalls
858 860
859# All the preparing.. 861# All the preparing..
860prepare: prepare0 862prepare: prepare0
@@ -1277,10 +1279,7 @@ endif
1277ALLSOURCE_ARCHS := $(ARCH) 1279ALLSOURCE_ARCHS := $(ARCH)
1278 1280
1279define find-sources 1281define find-sources
1280 ( find $(__srctree) $(RCS_FIND_IGNORE) \ 1282 ( for ARCH in $(ALLSOURCE_ARCHS) ; do \
1281 \( -name include -o -name arch \) -prune -o \
1282 -name $1 -print; \
1283 for ARCH in $(ALLSOURCE_ARCHS) ; do \
1284 find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \ 1283 find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \
1285 -name $1 -print; \ 1284 -name $1 -print; \
1286 done ; \ 1285 done ; \
@@ -1294,7 +1293,11 @@ define find-sources
1294 -name $1 -print; \ 1293 -name $1 -print; \
1295 done ; \ 1294 done ; \
1296 find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ 1295 find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \
1297 -name $1 -print ) 1296 -name $1 -print; \
1297 find $(__srctree) $(RCS_FIND_IGNORE) \
1298 \( -name include -o -name arch \) -prune -o \
1299 -name $1 -print; \
1300 )
1298endef 1301endef
1299 1302
1300define all-sources 1303define all-sources