u-boot: fix build

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-01-30 21:02:44 +01:00
parent 77031582ee
commit 939bdf2274

View File

@ -58,6 +58,15 @@ pre_configure_target() {
make_target() {
make CROSS_COMPILE="$TARGET_PREFIX" ARCH="$TARGET_ARCH" $UBOOT_CONFIG
make CROSS_COMPILE="$TARGET_PREFIX" ARCH="$TARGET_ARCH" HOSTCC="$HOST_CC" HOSTSTRIP="true"
}
makeinstall_target() {
mkdir -p $ROOT/$TOOLCHAIN/bin
if [ -f build/tools/mkimage ]; then
cp build/tools/mkimage $ROOT/$TOOLCHAIN/bin
else
cp tools/mkimage $ROOT/$TOOLCHAIN/bin
fi
BOOT_CFG="$PROJECT_DIR/$PROJECT/bootloader/boot.cfg"
if [ -r "$BOOT_CFG" ]; then
@ -70,15 +79,6 @@ make_target() {
-d boot.cfg \
$UBOOT_CONFIGFILE
fi
}
makeinstall_target() {
mkdir -p $ROOT/$TOOLCHAIN/bin
if [ -f build/tools/mkimage ]; then
cp build/tools/mkimage $ROOT/$TOOLCHAIN/bin
else
cp tools/mkimage $ROOT/$TOOLCHAIN/bin
fi
mkdir -p $INSTALL/usr/share/u-boot
cp ./u-boot.bin $INSTALL/usr/share/u-boot