diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 11:41:16 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 11:41:16 +1000 |
commit | 743d85e7d1c2a721baf020b9d79f45f0df2420a9 (patch) | |
tree | 9e551b726ac2bf9fd8eafb2764e7237f352bb429 /Makefile | |
parent | 87911f4fcd86f7abc0aefba8e9cbec2ac9d127e4 (diff) | |
parent | c7f95d23f6bc7e17a3b79decf83eb362b389e53a (diff) | |
download | busybox-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-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -378,6 +378,11 @@ ifneq ($(KBUILD_SRC),) | |||
378 | $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) | 378 | $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) |
379 | endif | 379 | endif |
380 | 380 | ||
381 | # This target generates Kbuild's and Config.in's from *.c files | ||
382 | PHONY += gen_build_files | ||
383 | gen_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 |
430 | export KBUILD_DEFCONFIG | 435 | export KBUILD_DEFCONFIG |
431 | 436 | ||
432 | config %config: scripts_basic outputmakefile FORCE | 437 | config %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 |
446 | PHONY += scripts | 451 | PHONY += scripts |
447 | scripts: scripts_basic include/config/MARKER | 452 | scripts: gen_build_files scripts_basic include/config/MARKER |
448 | $(Q)$(MAKE) $(build)=$(@) | 453 | $(Q)$(MAKE) $(build)=$(@) |
449 | 454 | ||
450 | scripts_basic: include/autoconf.h | 455 | scripts_basic: include/autoconf.h |
@@ -998,6 +1003,8 @@ $(mrproper-dirs): | |||
998 | mrproper: clean archmrproper $(mrproper-dirs) | 1003 | mrproper: 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 | # |