2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="u-boot-tools-aml"
|
|
|
|
PKG_VERSION="2016.03"
|
|
|
|
PKG_SHA256="e49337262ecac44dbdeac140f2c6ebd1eba345e0162b0464172e7f05583ed7bb"
|
|
|
|
PKG_SITE="https://www.denx.de/wiki/U-Boot"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="ftp://ftp.denx.de/pub/u-boot/u-boot-${PKG_VERSION}.tar.bz2"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_HOST="gcc:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain u-boot-tools-aml:host"
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems."
|
|
|
|
|
|
|
|
make_host() {
|
|
|
|
make mrproper
|
|
|
|
make dummy_defconfig
|
|
|
|
make tools-only
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
CROSS_COMPILE="${TARGET_PREFIX}" LDFLAGS="" ARCH=arm make dummy_defconfig
|
|
|
|
CROSS_COMPILE="${TARGET_PREFIX}" LDFLAGS="" ARCH=arm make env
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_host() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${TOOLCHAIN}/bin
|
|
|
|
cp tools/mkimage ${TOOLCHAIN}/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/etc
|
|
|
|
cp ${PKG_DIR}/config/fw_env.config ${INSTALL}/etc/fw_env.config
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/sbin
|
|
|
|
cp tools/env/fw_printenv ${INSTALL}/usr/sbin/fw_printenv
|
|
|
|
cp tools/env/fw_printenv ${INSTALL}/usr/sbin/fw_setenv
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|