From 43fb26a7ecd06fde770c5394eb90f778e654460a Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Sun, 27 Aug 2023 01:43:32 +0200 Subject: [PATCH] sunxi: t113: add an extra step to copy u-boot into bin/ for eMMC boot support Put an u-boot.bin into bin/ to make it easier for picking it to install onto mmcblk1boot0. Signed-off-by: Zoltan HERPAI --- target/linux/sunxi/image/Makefile | 4 ++++ target/linux/sunxi/image/cortexa7.mk | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/sunxi/image/Makefile b/target/linux/sunxi/image/Makefile index 35ccc2ba6e..16cec44c4f 100644 --- a/target/linux/sunxi/image/Makefile +++ b/target/linux/sunxi/image/Makefile @@ -49,6 +49,10 @@ define Build/sunxi-emmc rm -f $@.boot endef +define Build/sunxi-emmc-uboot-copy + $(CP) $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)-u-boot-with-spl.bin $(BIN_DIR)/ +endef + define Device/Default PROFILES := Default KERNEL_NAME := zImage diff --git a/target/linux/sunxi/image/cortexa7.mk b/target/linux/sunxi/image/cortexa7.mk index 377e95b8c1..e77c06720e 100644 --- a/target/linux/sunxi/image/cortexa7.mk +++ b/target/linux/sunxi/image/cortexa7.mk @@ -265,7 +265,7 @@ define Device/myir_myd-yt113x SOC := sun8i-t113s IMAGES += emmc.img.gz IMAGE/sdcard.img.gz := sunxi-sdcard | append-metadata | gzip - IMAGE/emmc.img.gz := boot-scr-emmc | sunxi-emmc | append-metadata | gzip + IMAGE/emmc.img.gz := sunxi-emmc-uboot-copy | boot-scr-emmc | sunxi-emmc | append-metadata | gzip endef TARGET_DEVICES += myir_myd-yt113x -- 2.30.2