mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #4103 from Kwiboo/mkimage-box
scripts/mkimage: only configure extlinux for valid uboot_helper dtb
This commit is contained in:
commit
44a6266465
@ -5,9 +5,6 @@
|
||||
# Bootloader to use (syslinux / u-boot / bcm2835-bootloader)
|
||||
BOOTLOADER="u-boot"
|
||||
|
||||
# u-boot version to use (default)
|
||||
UBOOT_VERSION="default"
|
||||
|
||||
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
|
||||
KERNEL_MAKE_EXTRACMD="dtbs"
|
||||
|
||||
|
@ -3,8 +3,6 @@
|
||||
|
||||
. config/options ""
|
||||
|
||||
DTB="$(${SCRIPTS}/uboot_helper ${PROJECT} ${DEVICE} ${UBOOT_SYSTEM} dtb)"
|
||||
|
||||
mkimage_uboot(){
|
||||
echo "image: writing u-boot to $(basename $DISK)"
|
||||
dd if="$INSTALL/usr/share/bootloader/u-boot.bin.sd.bin" of="$DISK" conv=fsync,notrunc bs=1 count=444 >"$SAVE_ERROR" 2>&1 || show_error
|
||||
|
@ -18,9 +18,6 @@
|
||||
# Bootloader to use (syslinux / u-boot)
|
||||
BOOTLOADER="syslinux"
|
||||
|
||||
# u-boot version to use (default)
|
||||
UBOOT_VERSION="default"
|
||||
|
||||
# Kernel target
|
||||
KERNEL_TARGET="bzImage"
|
||||
|
||||
|
@ -5,9 +5,6 @@
|
||||
# Bootloader to use (syslinux / u-boot / bcm2835-bootloader)
|
||||
BOOTLOADER="u-boot"
|
||||
|
||||
# u-boot version to use (default)
|
||||
UBOOT_VERSION="default"
|
||||
|
||||
# Additional kernel make parameters (for example to specify the u-boot loadaddress)
|
||||
KERNEL_MAKE_EXTRACMD="dtbs"
|
||||
|
||||
|
@ -40,9 +40,6 @@
|
||||
# Bootloader to use (bcm2835-bootloader)
|
||||
BOOTLOADER="bcm2835-bootloader"
|
||||
|
||||
# u-boot version to use (default)
|
||||
UBOOT_VERSION="default"
|
||||
|
||||
# Kernel target
|
||||
KERNEL_TARGET="zImage"
|
||||
|
||||
|
@ -14,7 +14,7 @@ unset _CACHE_PACKAGE_LOCAL _CACHE_PACKAGE_GLOBAL _DEBUG_DEPENDS_LIST _DEBUG_PACK
|
||||
if [ "${BOOTLOADER}" = "u-boot" -a -n "${DEVICE}" ]; then
|
||||
if [ -z "${UBOOT_SYSTEM}" ]; then
|
||||
${SCRIPTS}/uboot_helper ${PROJECT} ${DEVICE} >/dev/null
|
||||
elif [ "${UBOOT_VERSION}" != "vendor" ]; then
|
||||
else
|
||||
${SCRIPTS}/uboot_helper ${PROJECT} ${DEVICE} ${UBOOT_SYSTEM} dtb >/dev/null
|
||||
fi
|
||||
fi
|
||||
@ -50,7 +50,6 @@ function do_mkimage() {
|
||||
DISTRO_BOOTLABEL="${DISTRO_BOOTLABEL}" \
|
||||
DISTRO_DISKLABEL="${DISTRO_DISKLABEL}" \
|
||||
UBOOT_SYSTEM="${UBOOT_SYSTEM}" \
|
||||
UBOOT_VERSION="${UBOOT_VERSION}" \
|
||||
EXTRA_CMDLINE="${EXTRA_CMDLINE}" \
|
||||
SYSTEM_SIZE="${SYSTEM_SIZE}" \
|
||||
SYSTEM_PART_START="${SYSTEM_PART_START}" \
|
||||
|
@ -216,8 +216,8 @@ elif [ "${BOOTLOADER}" = "u-boot" -a -n "${UBOOT_SYSTEM}" ]; then
|
||||
# create bootloader configuration
|
||||
echo "image: creating bootloader configuration..."
|
||||
|
||||
if [ "${UBOOT_SYSTEM}" != "box" ]; then
|
||||
DTB="$(${SCRIPTS}/uboot_helper ${PROJECT} ${DEVICE} ${UBOOT_SYSTEM} dtb)"
|
||||
DTB="$(${SCRIPTS}/uboot_helper ${PROJECT} ${DEVICE} ${UBOOT_SYSTEM} dtb)"
|
||||
if [ -n "${DTB}" ]; then
|
||||
|
||||
if [ -f "${RELEASE_DIR}/3rdparty/bootloader/${DTB}" ]; then
|
||||
mcopy "${RELEASE_DIR}/3rdparty/bootloader/${DTB}" ::
|
||||
|
@ -133,7 +133,7 @@ devices = \
|
||||
'Amlogic': {
|
||||
'AMLGX': {
|
||||
'box': {
|
||||
'dtb': 'meson-gxl-s905x-p212.dtb',
|
||||
'dtb': '',
|
||||
'config': 'p212_defconfig'
|
||||
},
|
||||
'lepotato': {
|
||||
@ -151,7 +151,7 @@ devices = \
|
||||
},
|
||||
'AMLG12': {
|
||||
'box': {
|
||||
'dtb': 'meson-g12a-x96max.dtb',
|
||||
'dtb': '',
|
||||
'config': 'p212_defconfig'
|
||||
},
|
||||
'odroid-n2': {
|
||||
|
Loading…
x
Reference in New Issue
Block a user