Commit 96e30769 authored by Grant Likely's avatar Grant Likely
Browse files

Map clean targets onto u-boot clean targets

Make the 'clean', 'mrproper' & 'distclean' targets match the u-boot
targets of the same name. Also use the 'clean' targets for TFA and the
devicetree-rebasing tree as well as make all clean targets callable when

For U-Boot, all targets are made callable when not configured because
this tool is entirely driven by the U-Boot config.

Signed-off-by: Grant Likely's avatarGrant Likely <>
parent 46d71324
......@@ -41,7 +41,7 @@ all: flashimage
# Detect when mixed targets is specified, and make a second invocation
# of make so .config is not included in this case either (for *config).
no-dot-config-targets := clean
no-dot-config-targets := clean mrproper distclean u-boot/% tfa/%clean devicetree/clean
config-targets := 0
mixed-targets := 0
......@@ -144,10 +144,14 @@ flashimage ${FLASH_IMAGE}: ${FLASH_IMAGE_DEPS}
sdimage: flashimage
PHONY += clean
clean: u-boot/mrproper
cd $(TFA_PATH) && git clean -fdx
cd $(DT_PATH) && git clean -fdx
PHONY += clean mrproper distclean
clean: u-boot/clean tfa/clean devicetree/clean
cd $(CURDIR)/mv-ddr && git clean -fdx
mrproper: u-boot/mrproper tfa/distclean devicetree/clean
cd $(CURDIR)/mv-ddr && git clean -fdx
distclean: u-boot/distclean tfa/distclean devicetree/clean
cd $(CURDIR)/mv-ddr && git clean -fdx
endif #ifeq ($(config-targets),1)
......@@ -157,8 +161,9 @@ endif #ifeq ($(config-targets),1)
# ================================================
# Delegate to devicetree-rebasing build
${MAKE} -C ${DT_PATH} $*.dtb
${MAKE} -C ${DT_PATH} $*
# ================================================
# Delegate to trusted-firmware-a build
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