From 7acba54d1fbac38d1b3441e876abc9654a1e2c2a Mon Sep 17 00:00:00 2001 From: Valentin Raevsky Date: Mon, 5 Feb 2024 00:10:51 +0200 Subject: [PATCH] compulab: imx8mp: firmware: Update Makefile Signed-off-by: Valentin Raevsky --- Makefile | 6 +++++- board/compulab/plat/imx8mp/firmware/Makefile | 11 ++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index bd8f38f145a..03ba8733592 100644 --- a/Makefile +++ b/Makefile @@ -1474,7 +1474,11 @@ SPL: spl/u-boot-spl.bin FORCE $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ firmware: - $(MAKE) -C $(srctree)/board/compulab/plat/imx8mp/firmware all + $(Q)$(MAKE) $(build)=board/compulab/plat/imx8mp/firmware all + +rm_firmware: + $(Q)$(MAKE) $(build)=board/compulab/plat/imx8mp/firmware clean + ifeq ($(CONFIG_ARCH_IMX8M)$(CONFIG_ARCH_IMX8), y) ifeq ($(CONFIG_SPL_LOAD_IMX_CONTAINER), y) diff --git a/board/compulab/plat/imx8mp/firmware/Makefile b/board/compulab/plat/imx8mp/firmware/Makefile index 05fe96a2fa7..f50b346fdd3 100644 --- a/board/compulab/plat/imx8mp/firmware/Makefile +++ b/board/compulab/plat/imx8mp/firmware/Makefile @@ -1,13 +1,10 @@ -files := bl31.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_2d_dmem.bin lpddr4_pmu_train_2d_imem.bin tee.bin +files=bl31.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_2d_dmem.bin lpddr4_pmu_train_2d_imem.bin tee.bin +fw_src=$(srctree)/board/compulab/plat/imx8mp/firmware all: $(files) $(files): - for file in $(files); do \ - uudecode --output-file $(O)/$$file $$file.uue; \ - done; + uudecode --output-file $@ $(fw_src)/$@.uue clean: - for file in $(files); do \ - rm -rf $(O)/$$file; \ - done; + rm -rf $(files)