u-boot: added option to compile mkimage for host

This commit is contained in:
Adam Green 2017-12-09 04:04:51 +00:00
parent 587ddc6730
commit 18aa7643c0
2 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,12 @@ PKG_SHORTDESC="u-boot: Universal Bootloader project"
PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems, used as the default boot loader by several board vendors. It is intended to be easy to port and to debug, and runs on many supported architectures, including PPC, ARM, MIPS, x86, m68k, NIOS, and Microblaze."
PKG_IS_KERNEL_PKG="yes"
make_host() {
make mrproper
make dummy_x86_config
make tools-only
}
make_target() {
if [ -z "$UBOOT_SYSTEM" ]; then
echo "UBOOT_SYSTEM must be set to build an image"
@ -42,6 +48,11 @@ make_target() {
fi
}
makeinstall_host() {
mkdir -p $TOOLCHAIN/bin
cp tools/mkimage $TOOLCHAIN/bin
}
makeinstall_target() {
mkdir -p $INSTALL/usr/share/bootloader

View File

@ -0,0 +1 @@
CONFIG_X86=y