Build legacy u-boot.

This commit is contained in:
fewtarius 2023-03-29 12:29:12 +00:00
parent da349e23b8
commit b6489fef04
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
4 changed files with 39 additions and 3 deletions

View file

@ -8,7 +8,7 @@ FIP_DIR="${ROOT}/build.${DISTRO}-${DEVICE}.aarch64/amlogic-boot-fip-*"
case "${PKG_SOC}" in case "${PKG_SOC}" in
s922x) s922x)
echo "uboot: encrypting u-boot.bin with fip..." echo "uboot: encrypting u-boot.bin with fip..."
cp -av u-boot.bin ${FIP_DIR}/ cp -av build/u-boot.bin ${FIP_DIR}/
cd ${FIP_DIR} cd ${FIP_DIR}
./build-fip.sh ${BOOT_FIP} u-boot.bin ${INSTALL}/usr/share/bootloader/ ./build-fip.sh ${BOOT_FIP} u-boot.bin ${INSTALL}/usr/share/bootloader/
;; ;;

View file

@ -32,7 +32,7 @@
PARTITION_TABLE="msdos" PARTITION_TABLE="msdos"
DEVICE_DTB=("meson-g12b-odroid-go-ultra") DEVICE_DTB=("meson-g12b-odroid-go-ultra")
UBOOT_DTB="${DEVICE_DTB[0]}" UBOOT_DTB="${DEVICE_DTB[0]}"
UBOOT_CONFIG="odroid-go-ultra_defconfig" UBOOT_CONFIG="odroidgou_defconfig"
PKG_SOC="s922x" PKG_SOC="s922x"
BOOT_FIP="odroid-go-ultra" BOOT_FIP="odroid-go-ultra"
BOOT_INI=true BOOT_INI=true

View file

@ -1,3 +1,39 @@
diff --git a/Makefile b/Makefile
index 730e8d752f..ad9f8ab12e 100644
--- a/Makefile
+++ b/Makefile
@@ -763,7 +763,7 @@ ifneq ($(CONFIG_BUILD_TARGET),)
ALL-y += $(CONFIG_BUILD_TARGET:"%"=%)
endif
-ALL-$(CONFIG_ODROID_COMMON) += bootimage
+#ALL-$(CONFIG_ODROID_COMMON) += bootimage
LDFLAGS_u-boot += $(LDFLAGS_FINAL)
ifneq ($(CONFIG_SYS_TEXT_BASE),)
@@ -875,8 +875,8 @@ $(ACS_BINARY): tools prepare u-boot.bin
bl21.bin: tools prepare u-boot.bin acs.bin
$(Q)$(MAKE) -C $(srctree)/$(CPUDIR)/${SOC}/firmware/bl21 all FIRMWARE=$@
-.PHONY : fip.bin bootimage
-fip.bin bootimage: $(ACS_BINARY) $(BL301_BINARY)
+.PHONY : fip.bin bootimage $(BL301_BINARY)
+fip.bin bootimage: $(ACS_BINARY)
$(Q)$(MAKE) -C $(srctree)/fip $@
#
diff --git a/fip/Makefile b/fip/Makefile
index 8c45e9763d..61eaf01832 100644
--- a/fip/Makefile
+++ b/fip/Makefile
@@ -79,7 +79,6 @@ $(buildtree)/fip/fip.bin: FORCE
$(buildsrc)/fip/$(SOC)/bl30.bin, \
$(buildtree)/fip/zero_tmp, \
$(buildtree)/fip/bl30_zero.bin, \
- $(buildtree)/scp_task/bl301.bin, \
$(buildtree)/fip/bl301_zero.bin, \
$(buildtree)/fip/bl30_new.bin, \
bl30)
diff --git a/include/configs/odroidgou.h b/include/configs/odroidgou.h diff --git a/include/configs/odroidgou.h b/include/configs/odroidgou.h
index 33351524e3..24bfae3304 100755 index 33351524e3..24bfae3304 100755
--- a/include/configs/odroidgou.h --- a/include/configs/odroidgou.h

View file

@ -7,7 +7,7 @@ PKG_ARCH="arm aarch64"
PKG_SITE="https://github.com/u-boot/u-boot" PKG_SITE="https://github.com/u-boot/u-boot"
PKG_URL="${PKG_SITE}.git" PKG_URL="${PKG_SITE}.git"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_DEPENDS_TARGET="toolchain swig:host amlogic-boot-fip" PKG_DEPENDS_TARGET="toolchain swig:host amlogic-boot-fip bl301"
PKG_LONGDESC="U-Boot is a bootloader for embedded systems." PKG_LONGDESC="U-Boot is a bootloader for embedded systems."