projects/Amlogic: rework project u-boot to u-boot-tools-aml

this allows for device specific u-boot without getting in the way
This commit is contained in:
Adam Green 2018-01-04 21:14:47 +00:00
parent 2af1e568e2
commit 94a0f3d209
No known key found for this signature in database
GPG Key ID: 52B701B6EF2F2E58
5 changed files with 4 additions and 11 deletions

View File

@ -16,20 +16,21 @@
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>. # along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################ ################################################################################
PKG_NAME="u-boot" PKG_NAME="u-boot-tools-aml"
PKG_VERSION="2016.03" PKG_VERSION="2016.03"
PKG_SHA256="e49337262ecac44dbdeac140f2c6ebd1eba345e0162b0464172e7f05583ed7bb" PKG_SHA256="e49337262ecac44dbdeac140f2c6ebd1eba345e0162b0464172e7f05583ed7bb"
PKG_ARCH="any" PKG_ARCH="any"
PKG_SITE="https://www.denx.de/wiki/U-Boot" PKG_SITE="https://www.denx.de/wiki/U-Boot"
PKG_URL="ftp://ftp.denx.de/pub/u-boot/u-boot-$PKG_VERSION.tar.bz2" PKG_URL="ftp://ftp.denx.de/pub/u-boot/u-boot-$PKG_VERSION.tar.bz2"
PKG_SOURCE_DIR="u-boot-$PKG_VERSION" PKG_SOURCE_DIR="u-boot-$PKG_VERSION"
PKG_DEPENDS_TARGET="toolchain dtc:host u-boot:host" PKG_DEPENDS_TARGET="toolchain dtc:host u-boot-tools-aml:host"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SECTION="tools" PKG_SECTION="tools"
PKG_SHORTDESC="u-boot: Universal Bootloader project" PKG_SHORTDESC="u-boot: Universal Bootloader project"
PKG_LONGDESC="U-Boot bootloader utility tools. This package includes the mkimage program, which allows generation of U-Boot images in various formats, and the fw_printenv and fw_setenv programs to read and modify U-Boot's environment and other tools." PKG_LONGDESC="U-Boot bootloader utility tools. This package includes the mkimage program, which allows generation of U-Boot images in various formats, and the fw_printenv and fw_setenv programs to read and modify U-Boot's environment and other tools."
make_host() { make_host() {
make mrproper
make dummy_defconfig make dummy_defconfig
make tools-only make tools-only
} }
@ -42,7 +43,7 @@ make_target() {
makeinstall_host() { makeinstall_host() {
mkdir -p $TOOLCHAIN/bin mkdir -p $TOOLCHAIN/bin
cp tools/mkimage $TOOLCHAIN/bin cp tools/mkimage $TOOLCHAIN/bin
} }
makeinstall_target() { makeinstall_target() {
@ -60,12 +61,4 @@ makeinstall_target() {
cp tools/mkimage $INSTALL/usr/sbin/mkimage cp tools/mkimage $INSTALL/usr/sbin/mkimage
cp tools/proftool $INSTALL/usr/sbin/proftool cp tools/proftool $INSTALL/usr/sbin/proftool
cp tools/relocate-rela $INSTALL/usr/sbin/relocate-rela cp tools/relocate-rela $INSTALL/usr/sbin/relocate-rela
mkdir -p $INSTALL/usr/share/bootloader
# Always install the update script
if [ -f $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/update.sh ]; then
cp -av $PROJECT_DIR/$PROJECT/devices/$DEVICE/bootloader/update.sh $INSTALL/usr/share/bootloader
elif [ -f $PROJECT_DIR/$PROJECT/bootloader/update.sh ]; then
cp -av $PROJECT_DIR/$PROJECT/bootloader/update.sh $INSTALL/usr/share/bootloader
fi
} }