mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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:
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
|
@ -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
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
|
||||
static char const *board_type = "uninitialized";
|
||||
+static char const *fdt_board;
|
||||
+static char const *fdt_board = "uninitialized";
|
||||
|
||||
int checkboard(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue