Skip to content

Commit

Permalink
Merge pull request LibreELEC#3486 from kszaq/host_mkimage
Browse files Browse the repository at this point in the history
u-boot: support host mkimage
  • Loading branch information
MilhouseVH authored May 3, 2019
2 parents d4325cc + 3f23092 commit 6ef9c69
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/linux/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ if [ "$TARGET_ARCH" = "x86_64" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET intel-ucode:host kernel-firmware elfutils:host pciutils"
fi

if [[ "$KERNEL_TARGET" = uImage* ]]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET u-boot-tools:host"
fi

if [ "$BUILD_ANDROID_BOOTIMG" = "yes" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET mkbootimg:host"
fi
Expand Down
25 changes: 25 additions & 0 deletions packages/tools/u-boot-tools/package.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)

PKG_NAME="u-boot-tools"
PKG_LICENSE="GPL"
PKG_SITE="https://www.denx.de/wiki/U-Boot"
PKG_DEPENDS_TARGET="toolchain swig:host"
PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems."
PKG_VERSION="2019.01"
PKG_SHA256="50bd7e5a466ab828914d080d5f6a432345b500e8fba1ad3b7b61e95e60d51c22"
PKG_URL="http://ftp.denx.de/pub/u-boot/u-boot-$PKG_VERSION.tar.bz2"

make_host() {
make qemu-x86_64_defconfig
make tools-only
}

make_target() {
: # host-only package
}

makeinstall_host() {
mkdir -p $TOOLCHAIN/bin
cp tools/mkimage $TOOLCHAIN/bin
}

0 comments on commit 6ef9c69

Please sign in to comment.