2023-10-15 19:11:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-10-15 19:11:06 +00:00
|
|
|
|
|
|
|
PKG_NAME="u-boot-Odroid_GOU"
|
|
|
|
PKG_VERSION="9235942906216dc529c1e96f67dd2364a94d0738"
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://www.denx.de/wiki/U-Boot"
|
|
|
|
PKG_URL="https://github.com/hardkernel/u-boot/archive/${PKG_VERSION}.tar.gz"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain gcc-linaro-aarch64-elf:host gcc-linaro-arm-eabi:host"
|
|
|
|
PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems."
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
configure_package() {
|
|
|
|
PKG_UBOOT_CONFIG="odroidgou_defconfig"
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
[ "${BUILD_WITH_DEBUG}" = "yes" ] && PKG_DEBUG=1 || PKG_DEBUG=0
|
|
|
|
export PATH=${TOOLCHAIN}/lib/gcc-linaro-aarch64-elf/bin/:${TOOLCHAIN}/lib/gcc-linaro-arm-eabi/bin/:${PATH}
|
|
|
|
DEBUG=${PKG_DEBUG} CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make mrproper
|
|
|
|
DEBUG=${PKG_DEBUG} CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make ${PKG_UBOOT_CONFIG}
|
|
|
|
DEBUG=${PKG_DEBUG} CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make HOSTCC="${HOST_CC}" HOSTSTRIP="true"
|
|
|
|
|
|
|
|
# repack odroidbios.bin for jelos
|
|
|
|
${TOOLCHAIN}/sbin/fsck.cramfs --extract=jelos tools/odroid_resource/ODROIDBIOS.BIN
|
|
|
|
sed -e "s/ODROIDGOU/JELOS/" -i jelos/boot.ini
|
|
|
|
${TOOLCHAIN}/sbin/mkfs.cramfs -N little jelos tools/odroid_resource/ODROIDBIOS.BIN
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
: # nothing
|
|
|
|
}
|