Commit 37d7093c authored by Grant Likely's avatar Grant Likely
Browse files

Move clean target to top makefile so .config isn't required



Move the clean target into the top level makefile so that the .config
rule doesn't get called before doing the clean step

Signed-off-by: Grant Likely's avatarGrant Likely <grant.likely@arm.com>
parent 1edae7ed
......@@ -48,10 +48,7 @@ FLASH_IMAGE ?= $(TFA_PATH)/build/$(TFA_PLAT)/release/flash-image.bin
.PHONY: dtb u-boot clean
clean:
cd ${UBOOT_PATH} && make mrproper
cd ${TFA_PATH} && git clean -fdx
cd ${CURDIR}/mv-ddr && git clean -fdx
.PHONY: dtb u-boot clean
dtb:
${MAKE} -C ${DT_PATH} ${DTB_TARGET}
......
......@@ -15,6 +15,12 @@ export UBOOT_OUTPUT := $(CURDIR)/u-boot/build-$(TARGET)
all: tfa-fip
clean:
cd $(UBOOT_PATH) && make mrproper
cd $(UBOOT_PATH) && make KBUILD_OUTPUT=$(UBOOT_OUTPUT) clean
cd $(TFA_PATH) && git clean -fdx
cd $(CURDIR)/mv-ddr && git clean -fdx
$(UBOOT_OUTPUT)/.config:
mkdir -p $(UBOOT_OUTPUT)
$(MAKE) -C $(UBOOT_PATH) KBUILD_OUTPUT=$(UBOOT_OUTPUT) $(TARGET)_defconfig
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment