u-boot-master: Unbreak by testing that FAMILY is defined

Reported by:	dan (via freshport), portsnap builbox
Approved by:	imp (implicit)
This commit is contained in:
Emmanuel Vadot 2017-12-11 18:31:35 +00:00
parent 0a7591375a
commit 04e629eea0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=456059

View file

@ -99,7 +99,7 @@ UBOOT_MOVE=${UBOOT_MOVE_${FAMILY:tu}}
.endif
# Per family dependancies
.if ${FAMILY} == allwinner64
.if defined(FAMILY) && ${FAMILY} == allwinner64
BUILD_DEPENDS+= ${LOCALBASE}/share/atf-allwinner/bl31.bin:sysutils/atf-allwinner
MAKE_ENV+= BL31=${LOCALBASE}/share/atf-allwinner/bl31.bin
.endif
@ -115,7 +115,7 @@ do-configure:
# U-Boot for Allwinner 64bits SoCs is splited in two parts
# Generate a single binary to ease deployement on sdcard
.if ${FAMILY} == allwinner64
.if defined(FAMILY) && ${FAMILY} == allwinner64
post-build:
${CAT} ${WRKSRC}/spl/sunxi-spl.bin ${WRKSRC}/u-boot.itb > ${WRKSRC}/u-boot-sunxi-with-spl.bin
.endif