Use gcc 4.9.2 to cross-compile u-boot for Cubox and Hummingboard.

Also, fix a board-type detection problem that prevents booting on
hummingboard, by initializing fdt_board to something non-zero, so that it
ends up in the data segment instead of bss (and thus survives the memory
init process which includes zeroing bss and runs after board detection).

Approved by:	rpaulo
This commit is contained in:
Ian Lepore 2015-08-09 02:16:54 +00:00
parent 35c9f9b47e
commit 2dd618a75f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393757
2 changed files with 7 additions and 3 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= u-boot
PORTVERSION= 2013.10
PORTREVISION= 1
CATEGORIES= sysutils
PKGNAMESUFFIX= -cubox-hummingboard
@ -10,7 +11,9 @@ COMMENT= Cross-build U-Boot loader for SolidRun Cubox
LICENSE= GPLv2
BUILD_DEPENDS= arm-none-eabi-gcc:${PORTSDIR}/devel/arm-none-eabi-gcc
BUILD_DEPENDS= ${CROSS_GCC}:${PORTSDIR}/devel/arm-none-eabi-gcc492
CROSS_GCC= arm-none-eabi-gcc-4.9.2
USE_GITHUB= yes
GH_ACCOUNT= SolidRun
@ -28,8 +31,9 @@ PLIST_FILES= ${U_BOOT_DIR}/u-boot.imx \
${U_BOOT_DIR}/README
MAKE_ARGS+= ARCH=arm \
CC=${CROSS_GCC} \
CROSS_COMPILE=arm-none-eabi- \
HOSTCC=clang
HOSTCC=cc
do-configure:
cd ${WRKSRC}; ${GMAKE} ${MAKE_ARGS} mx6_cubox-i_config

View file

@ -12,7 +12,7 @@
}
static char const *board_type = "uninitialized";
+static char const *fdt_board;
+static char const *fdt_board = "uninitialized";
int checkboard(void)
{