Skip to content

Commit

Permalink
compulab: imx8mp: firmware: Update Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Raevsky <[email protected]>
  • Loading branch information
vraevsky committed Feb 4, 2024
1 parent 539d3b2 commit 7acba54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 4 additions & 7 deletions board/compulab/plat/imx8mp/firmware/Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 7acba54

Please sign in to comment.