diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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) | |||
603 | vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y) | 603 | vmlinux-main := $(core-y) $(libs-y) $(drivers-y) $(net-y) |
604 | vmlinux-all := $(vmlinux-init) $(vmlinux-main) | 604 | vmlinux-all := $(vmlinux-init) $(vmlinux-main) |
605 | vmlinux-lds := arch/$(ARCH)/kernel/vmlinux.lds | 605 | vmlinux-lds := arch/$(ARCH)/kernel/vmlinux.lds |
606 | export 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 | ||
856 | prepare0: archprepare FORCE | 857 | prepare0: 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.. |
860 | prepare: prepare0 | 862 | prepare: prepare0 |
@@ -1277,10 +1279,7 @@ endif | |||
1277 | ALLSOURCE_ARCHS := $(ARCH) | 1279 | ALLSOURCE_ARCHS := $(ARCH) |
1278 | 1280 | ||
1279 | define find-sources | 1281 | define 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 | ) | ||
1298 | endef | 1301 | endef |
1299 | 1302 | ||
1300 | define all-sources | 1303 | define all-sources |