mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
u-boot: add support for atf
This commit is contained in:
parent
27b1b8ce29
commit
6ef7e2e15b
@ -10,6 +10,8 @@ PKG_LICENSE="GPL"
|
||||
PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems."
|
||||
PKG_IS_KERNEL_PKG="yes"
|
||||
|
||||
[ -n "$ATF_PLATFORM" ] && PKG_DEPENDS_TARGET+=" atf"
|
||||
|
||||
PKG_NEED_UNPACK="$PROJECT_DIR/$PROJECT/bootloader"
|
||||
[ -n "$DEVICE" ] && PKG_NEED_UNPACK+=" $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader"
|
||||
|
||||
@ -35,6 +37,7 @@ make_target() {
|
||||
echo "see './scripts/uboot_helper' for more information"
|
||||
else
|
||||
[ "${BUILD_WITH_DEBUG}" = "yes" ] && PKG_DEBUG=1 || PKG_DEBUG=0
|
||||
[ -n "$ATF_PLATFORM" ] && cp -av $(get_build_dir atf)/bl31.bin .
|
||||
DEBUG=${PKG_DEBUG} CROSS_COMPILE="$TARGET_KERNEL_PREFIX" LDFLAGS="" ARCH=arm make mrproper
|
||||
DEBUG=${PKG_DEBUG} CROSS_COMPILE="$TARGET_KERNEL_PREFIX" LDFLAGS="" ARCH=arm make $($ROOT/$SCRIPTS/uboot_helper $PROJECT $DEVICE $UBOOT_SYSTEM config)
|
||||
DEBUG=${PKG_DEBUG} CROSS_COMPILE="$TARGET_KERNEL_PREFIX" LDFLAGS="" ARCH=arm make HOSTCC="$HOST_CC" HOSTSTRIP="true"
|
||||
|
Loading…
x
Reference in New Issue
Block a user