distribution/packages/tools/u-boot-tools/package.mk

31 lines
825 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="u-boot-tools"
PKG_VERSION="2019.01"
PKG_SHA256="50bd7e5a466ab828914d080d5f6a432345b500e8fba1ad3b7b61e95e60d51c22"
PKG_LICENSE="GPL"
PKG_SITE="https://www.denx.de/wiki/U-Boot"
2023-02-24 13:53:43 +00:00
PKG_URL="http://ftp.denx.de/pub/u-boot/u-boot-${PKG_VERSION}.tar.bz2"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_HOST="ccache:host bison:host flex:host"
PKG_DEPENDS_TARGET="toolchain swig:host"
PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems."
make_host() {
if [ "${MACHINE_HARDWARE_NAME}" = "aarch64" ]; then
make qemu_arm64_defconfig
else
make qemu-x86_64_defconfig
fi
make tools-only
}
make_target() {
: # host-only package
}
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
}