summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 11:41:16 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 11:41:16 +1000
commit743d85e7d1c2a721baf020b9d79f45f0df2420a9 (patch)
tree9e551b726ac2bf9fd8eafb2764e7237f352bb429 /Makefile
parent87911f4fcd86f7abc0aefba8e9cbec2ac9d127e4 (diff)
parentc7f95d23f6bc7e17a3b79decf83eb362b389e53a (diff)
downloadbusybox-w32-743d85e7d1c2a721baf020b9d79f45f0df2420a9.tar.gz
busybox-w32-743d85e7d1c2a721baf020b9d79f45f0df2420a9.tar.bz2
busybox-w32-743d85e7d1c2a721baf020b9d79f45f0df2420a9.zip
Merge branch 'origin/master' (early part)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c637d6d45..547c7166e 100644
--- a/Makefile
+++ b/Makefile
@@ -378,6 +378,11 @@ ifneq ($(KBUILD_SRC),)
378 $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) 378 $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
379endif 379endif
380 380
381# This target generates Kbuild's and Config.in's from *.c files
382PHONY += gen_build_files
383gen_build_files:
384 $(Q)$(srctree)/scripts/gen_build_files.sh $(srctree) $(objtree)
385
381# To make sure we do not include .config for any of the *config targets 386# To make sure we do not include .config for any of the *config targets
382# catch them early, and hand them over to scripts/kconfig/Makefile 387# catch them early, and hand them over to scripts/kconfig/Makefile
383# It is allowed to specify more targets when calling make, including 388# It is allowed to specify more targets when calling make, including
@@ -429,7 +434,7 @@ ifeq ($(config-targets),1)
429-include $(srctree)/arch/$(ARCH)/Makefile 434-include $(srctree)/arch/$(ARCH)/Makefile
430export KBUILD_DEFCONFIG 435export KBUILD_DEFCONFIG
431 436
432config %config: scripts_basic outputmakefile FORCE 437config %config: scripts_basic outputmakefile gen_build_files FORCE
433 $(Q)mkdir -p include 438 $(Q)mkdir -p include
434 $(Q)$(MAKE) $(build)=scripts/kconfig $@ 439 $(Q)$(MAKE) $(build)=scripts/kconfig $@
435 $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease 440 $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
@@ -444,7 +449,7 @@ ifeq ($(KBUILD_EXTMOD),)
444# Carefully list dependencies so we do not try to build scripts twice 449# Carefully list dependencies so we do not try to build scripts twice
445# in parrallel 450# in parrallel
446PHONY += scripts 451PHONY += scripts
447scripts: scripts_basic include/config/MARKER 452scripts: gen_build_files scripts_basic include/config/MARKER
448 $(Q)$(MAKE) $(build)=$(@) 453 $(Q)$(MAKE) $(build)=$(@)
449 454
450scripts_basic: include/autoconf.h 455scripts_basic: include/autoconf.h
@@ -998,6 +1003,8 @@ $(mrproper-dirs):
998mrproper: clean archmrproper $(mrproper-dirs) 1003mrproper: clean archmrproper $(mrproper-dirs)
999 $(call cmd,rmdirs) 1004 $(call cmd,rmdirs)
1000 $(call cmd,rmfiles) 1005 $(call cmd,rmfiles)
1006 @find -name Config.src | sed 's/.src$/.in/' | xargs -r rm -f
1007 @find -name Kbuild.src | sed 's/.src$//' | xargs -r rm -f
1001 1008
1002# distclean 1009# distclean
1003# 1010#