freebsd-ports/sysutils/u-boot-tools/Makefile
Kyle Evans d1343c97df sysutils/u-boot-tools: Add recently upstream patch to fix endianness checks
Patch originally sent upstream by jhibbits@; fix endianness checks so that
powerpc hosts can actually build powerpc images. Backport it to our 2017.09
since it won't appear in a release until 2018.03 at the earliest.

Reviewed by:	manu
Approved by:	imp (ports)
Differential Revision:	https://reviews.freebsd.org/D14219
2018-02-06 20:53:54 +00:00

36 lines
945 B
Makefile

# Created by: Emmanuel Vadot <manu@freebsd.org>
# $FreeBSD$
PORTNAME= u-boot-tools
DISTVERSION= 2017.09
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/
DISTNAME= u-boot-${PORTVERSION}
MAINTAINER= uboot@FreeBSD.org
COMMENT= U-boot related tools
LICENSE= GPLv2
USES= tar:bzip2 gmake python:2.7,build ssl
CONFLICT= uboot-mkimage
ALL_TARGET= tools-only
MAKE_ARGS= ARCH=sandbox \
CC="${CC}" \
KBUILD_VERBOSE=1 \
NOSTDINC_FLAGS="" \
PLIST_FILES= bin/mkimage bin/mkenvimage bin/dumpimage bin/fit_info
do-configure:
(cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} sandbox_defconfig)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tools/dumpimage ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tools/fit_info ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tools/mkenvimage ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tools/mkimage ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>