Files
ports/sysutils/u-boot-tools/Makefile
T
Siva Mahadevan 9534403d8c sysutils/u-boot-tools: update to 2025.10 and fix SOURCE_DATE_EPOCH build
This fixes the reproducible build when SOURCE_DATE_EPOCH is specified.

* moved to upstream-default gnutls since it doesn't correctly build with the USES=ssl and openssl flags
* added BUILD_DEPENDS on gdate from coreutils to handle SOURCE_DATE_EPOCH correctly
* cleaned up and simplified make target a bit
* removed CONFLICTS since it is nonexistent

Tested by building all dependent sysutils/u-boot* ports.

PR:		292260
Approved by:	maintainer timeout (1+ month), lwhsu (mentor, implicitly)
Sponsored by:	The FreeBSD Foundation
2026-02-12 16:14:31 -05:00

34 lines
995 B
Makefile

PORTNAME= u-boot-tools
DISTVERSION= 2025.10 # Keep in sync with sysutils/u-boot-master
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/
DISTNAME= u-boot-${PORTVERSION}
MAINTAINER= uboot@FreeBSD.org
COMMENT= U-boot related tools
WWW= https://www.denx.de/wiki/U-Boot
LICENSE= GPLv2
ALL_TARGET= tools-only_defconfig tools-only
USES= bison compiler:c11 gmake pkgconfig python:build tar:bzip2
BUILD_DEPENDS= gdate:sysutils/coreutils
LIB_DEPENDS= libgnutls.so:security/gnutls
MAKE_ARGS= ARCH=sandbox \
CC="${CC}" \
HOSTCC="${CC}" \
KBUILD_VERBOSE=1
PLIST_FILES= bin/mkimage bin/mkenvimage bin/dumpimage bin/fit_info
BINARY_ALIAS= python3=${PYTHON_CMD}
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>