1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

sysutils/u-boot: Allow building with different openssl

Add ssl to USES and export the needed variables so u-boot can be built
with openssl from ports.

PR:	279531
This commit is contained in:
Naram Qashat 2024-06-13 10:44:10 +02:00 committed by Emmanuel Vadot
parent 44bcfa5968
commit df65ca710c
2 changed files with 7 additions and 3 deletions

View File

@ -27,7 +27,8 @@ BUILD_DEPENDS+= ${COMPILER}:devel/${COMPILER}
BUILD_DEPENDS+= e2fsprogs-libuuid>=0:misc/e2fsprogs-libuuid \
gnutls>=0:security/gnutls
USES= bison gmake python:build pkgconfig shebangfix tar:bz2
USES= bison compiler:c11 gmake python:build pkgconfig shebangfix ssl \
tar:bz2
BINARY_ALIAS= bison=${LOCALBASE}/bin/bison dtc=${LOCALBASE}/bin/dtc sed=gsed python3=${PYTHON_CMD}
SHEBANG_FILES= tools/binman/binman
@ -36,8 +37,9 @@ UBOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX}
INST= ${PREFIX}/${UBOOT_DIR}
DESCR?= ${.CURDIR}/pkg-descr
MAKE_ENV+= V=1 CROSS_COMPILE=${CROSS_COMPILE} PYTHON=${PYTHON_CMD} CC=clang
MAKE_ARGS+= ${ARCHFLAGS}
MAKE_ENV+= CROSS_COMPILE=${CROSS_COMPILE} PYTHON=${PYTHON_CMD}
MAKE_ARGS+= ${ARCHFLAGS} V=1 HOSTCFLAGS="${CFLAGS} -I${OPENSSLINC}" \
HOSTLDFLAGS="${LDFLAGS} -L${OPENSSLLIB}"
NO_ARCH= yes

View File

@ -22,6 +22,8 @@ MAKE_ARGS= ARCH=sandbox \
HOSTCC="${CC}" \
KBUILD_VERBOSE=1 \
NOSTDINC_FLAGS="" \
HOSTCFLAGS="${CFLAGS} -I${OPENSSLINC}" \
HOSTLDFLAGS="${LDFLAGS} -L${OPENSSLLIB}"
PLIST_FILES= bin/mkimage bin/mkenvimage bin/dumpimage bin/fit_info