Merge pull request #2305 from adamg-xda/le90_u-boot.1

u-boot: added option to compile mkimage for host
This commit is contained in:
Radostan Riedel 2017-12-10 09:04:53 +01:00 committed by GitHub
commit 0b87fda6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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