mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
197f08abf4
was a stub, provide a real one. While here, pet portlint. Approved by: portmgr (tier-2 blanket) Reported by: swills
54 lines
1.7 KiB
Makefile
54 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= u-boot
|
|
PORTVERSION= 2015.07
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/:source1 \
|
|
http://www.compulab.co.il/wp-content/uploads/2015/10/:source2
|
|
PKGNAMESUFFIX= -utilite
|
|
DISTFILES= u-boot-2015.07.tar.bz2:source1 \
|
|
cm-fx6_u-boot_2015-10-18.zip:source2
|
|
|
|
MAINTAINER= martin@waschbuesch.de
|
|
COMMENT= Cross-build U-Boot loader for Utilite (and Utilite Pro)
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${CROSS_GCC}:devel/arm-none-eabi-gcc492
|
|
|
|
BROKEN_powerpc64= fails to compile: cmd_mem.c: internal compiler error: Segmentation fault
|
|
|
|
CROSS_GCC= arm-none-eabi-gcc-4.9.2
|
|
|
|
EXTRA_PATCHES= ${WRKDIR}/cm-fx6-u-boot/u-boot/u-boot-2015.07-cm-fx6-3.patch:-p1
|
|
|
|
NO_ARCH= yes
|
|
|
|
USES= gmake
|
|
|
|
PORTSCOUT= ignore:1
|
|
|
|
U_BOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
MAKE_ARGS+= ARCH=arm \
|
|
CC=${CROSS_GCC} \
|
|
CROSS_COMPILE=arm-none-eabi- \
|
|
HOSTCC=cc
|
|
|
|
do-configure:
|
|
cd ${WRKSRC}; ${MAKE_CMD} ${MAKE_ARGS} cm_fx6_config
|
|
|
|
# The build results in two output files: SPL, and u-boot.img.
|
|
# Combine them into a single u-boot.imx so that there is only one file to be
|
|
# copied onto the boot media starting at a 1K offset on the disk.
|
|
CM_FX6_FIRMWARE= ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/cm-fx6-firmware
|
|
do-install:
|
|
cd ${WRKSRC}; ./tools/mkimage -n arch/arm/imx-common/spl_sd.cfg.cfgtmp -T imximage -e 0x00908000 -d spl/u-boot-spl.bin spl.img
|
|
${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}
|
|
dd if=/dev/zero count=500 bs=1K | ${TR} '\000' '\377' > ${CM_FX6_FIRMWARE}
|
|
dd if=${WRKSRC}/spl.img of=${CM_FX6_FIRMWARE} bs=1K seek=1 conv=notrunc && dd if=${WRKSRC}/u-boot.img of=${CM_FX6_FIRMWARE} bs=1K seek=64 conv=notrunc
|
|
${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README
|
|
|
|
.include <bsd.port.mk>
|