[Bug 276811] u-boot-master used BINARY_ ALIAS with = could we change this to +=?

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Feb 2024 03:58:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276811

--- Comment #1 from crb <crb@ChrisBowman.com> ---
It would also be nice if we could use ?= for assignment of
UBOOT_PLIST_ZYNQ_7000 and 
UBOOT_MOVE_ZYNQ_7000 so that my port could override them. (I don't need
uEnv.txt)

diff --git a/sysutils/u-boot-master/Makefile b/sysutils/u-boot-master/Makefile
index 646876fdb261..120ad397aa57 100644
--- a/sysutils/u-boot-master/Makefile
+++ b/sysutils/u-boot-master/Makefile
@@ -28,7 +28,7 @@ BUILD_DEPENDS+=      
e2fsprogs-libuuid>=0:misc/e2fsprogs-libuuid \
                gnutls>=0:security/gnutls

 USES=          bison gmake python:build pkgconfig shebangfix tar:bz2
-BINARY_ALIAS=  bison=${LOCALBASE}/bin/bison dtc=${LOCALBASE}/bin/dtc sed=gsed
python3=${PYTHON_CMD}
+BINARY_ALIAS+= bison=${LOCALBASE}/bin/bison dtc=${LOCALBASE}/bin/dtc sed=gsed
python3=${PYTHON_CMD}

 SHEBANG_FILES= tools/binman/binman
 SSP_UNSAFE=    yes
@@ -82,8 +82,8 @@ UBOOT_METADATA_ALLWINNER64_RAW_OFFSET=        1
 UBOOT_METADATA_ALLWINNER64_RAW_BS=     128k

 # Overrides for Zynq 7000 family
-UBOOT_PLIST_ZYNQ_7000=u-boot.img boot.bin uEnv.txt
-UBOOT_MOVE_ZYNQ_7000=${WRKSRC}/spl/boot.bin ${.CURDIR}/files/uEnv.txt
+UBOOT_PLIST_ZYNQ_7000?=u-boot.img boot.bin uEnv.txt
+UBOOT_MOVE_ZYNQ_7000?=${WRKSRC}/spl/boot.bin ${.CURDIR}/files/uEnv.txt

 # Overrides for RPI family
 UBOOT_PLIST_RPI=       u-boot.bin

-- 
You are receiving this mail because:
You are the assignee for the bug.