From: Zoltan HERPAI Date: Sat, 26 Aug 2023 23:43:32 +0000 (+0200) Subject: sunxi: t113: add an extra step to copy u-boot into bin/ for eMMC boot support X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e0dce2eede72f11222f90dcb04f5b2e28d6a79f7;p=openwrt%2Fstaging%2Fwigyori.git 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 --- diff --git a/target/linux/sunxi/image/Makefile b/target/linux/sunxi/image/Makefile index 283a7b973c..8acc19f5ba 100644 --- a/target/linux/sunxi/image/Makefile +++ b/target/linux/sunxi/image/Makefile @@ -48,6 +48,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 91e0cf580f..66f233f766 100644 --- a/target/linux/sunxi/image/cortexa7.mk +++ b/target/linux/sunxi/image/cortexa7.mk @@ -268,7 +268,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