OGU write u-boot.bin to img

This commit is contained in:
mason 2023-03-29 19:20:51 +00:00
parent b0d9cb7ae6
commit 16bcd18e2e
No known key found for this signature in database
GPG key ID: 84D9278A11FA112B
3 changed files with 15 additions and 14 deletions

View file

@ -88,9 +88,9 @@ makeinstall_target() {
case ${ARCH} in
aarch64)
# cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/bin/retroarch ${INSTALL}/usr/bin/retroarch32
# mkdir -p ${INSTALL}/usr/share/retroarch/filters/32bit/
# cp -rvP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/share/retroarch/filters/64bit/* ${INSTALL}/usr/share/retroarch/filters/32bit/
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/bin/retroarch ${INSTALL}/usr/bin/retroarch32
mkdir -p ${INSTALL}/usr/share/retroarch/filters/32bit/
cp -rvP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/retroarch-*/.install_pkg/usr/share/retroarch/filters/64bit/* ${INSTALL}/usr/share/retroarch/filters/32bit/
;;
esac

View file

@ -6,19 +6,15 @@ if [ -n "${UBOOT_CONFIG}" ]; then
BOOTLOADER_DIR=$(get_build_dir ${BOOTLOADER})
KERNEL_DIR=$(get_build_dir linux)
# case "${PKG_SOC}" in
# s922x)
# if [ -f ${BOOTLOADER_DIR}/u-boot.bin ]; then
# cp -a ${BOOTLOADER_DIR}/u-boot.bin ${RELEASE_DIR}/3rdparty/bootloader
# fi
# ;;
# esac
case "${PKG_SOC}" in
s922x)
if [ -f ${INSTALL}/usr/share/bootloader/u-boot.bin ]; then
cp -a ${INSTALL}/usr/share/bootloader/u-boot.bin ${RELEASE_DIR}/3rdparty/bootloader
fi
;;
esac
fi
#if [ -f ${INSTALL}/usr/share/bootloader/boot.ini ]; then
# cp -a ${INSTALL}/usr/share/bootloader/boot.ini ${RELEASE_DIR}/3rdparty/bootloader
#fi
LINUX_DTS_DIR=$(get_build_dir linux)/arch/${TARGET_KERNEL_ARCH}/boot/dts/
for dtb in $(find ${LINUX_DTS_DIR} -name "*.dtb") ; do
if [ -f $dtb ]; then

View file

@ -298,6 +298,11 @@ if [ "${PROJECT}" = "Generic" ]; then
[ -n "${SUDO_USER}" ] && chown "${SUDO_USER}:" "${DISK_BASENAME}.ova"
fi
if [ "${DEVICE}" = "OGU" ]; then
echo "image: write u-boot.bin to disk..."
dd if="${RELEASE_DIR}/3rdparty/bootloader/u-boot.bin" of="${DISK}" conv=fsync,notrunc bs=512 seek=1 >"${SAVE_ERROR}" 2>&1 || show_error
fi
# gzip
echo "image: compressing..."
pigz --best --force "${DISK}"