]> xenbits.xensource.com Git - seabios.git/commitdiff
build: create output dirs in do-kconfig
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 25 Sep 2013 07:40:50 +0000 (09:40 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 30 Sep 2013 10:26:08 +0000 (12:26 +0200)
Unbreaks parallel builds.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Makefile

index 3218970116d7fb0fdc7ced0b3f9cc0d6c173d7bf..d763ae314c88cd9e7c6376d8fb41732fc05cd850 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,7 @@ endif
 # Default targets
 -include $(KCONFIG_CONFIG)
 
-target-y = $(OUT) $(addprefix $(OUT), $(DIRS)) $(OUT)bios.bin
+target-y = $(OUT)bios.bin
 target-$(CONFIG_BUILD_VGABIOS) += $(OUT)vgabios.bin
 
 all: $(target-y)
@@ -238,6 +238,7 @@ $(OUT)src/fw/acpi.o: $(OUT)src/fw/acpi-dsdt.hex $(OUT)src/fw/ssdt-proc.hex $(OUT
 define do-kconfig
 $(Q)mkdir -p $(OUT)/scripts/kconfig/lxdialog
 $(Q)mkdir -p $(OUT)/include/config
+$(Q)mkdir -p $(addprefix $(OUT), $(DIRS))
 $(Q)$(MAKE) -C $(OUT) -f $(CURDIR)/scripts/kconfig/Makefile srctree=$(CURDIR) src=scripts/kconfig obj=scripts/kconfig Q=$(Q) Kconfig=$(CURDIR)/src/Kconfig $1
 endef
 
@@ -255,7 +256,4 @@ clean:
 distclean: clean
        $(Q)rm -f .config .config.old
 
-$(OUT) $(addprefix $(OUT), $(DIRS)):
-       $(Q)mkdir $@
-
 -include $(patsubst %,$(OUT)%/*.d,$(DIRS))