openbsd-ports/sysutils/firmware/apple-boot/Makefile
sthen 08007f3b88 apple-boot-firmware: use :build target of sysutils/m1n1 now that it provides
the license files before fake-install, further reducing build dependencies
of this.
2023-01-22 14:33:29 +00:00

28 lines
793 B
Makefile

FW_DRIVER= apple-boot
FW_VER= 1.0
REVISION= 3
WRKDIST= ${WRKDIR}
DISTFILES=
# can be redistributed, but shouldn't be in normal packages directory as
# this is only meant for use with fw_update.
PERMIT_PACKAGE= firmware
PERMIT_DISTFILES= Yes
BUILD_DEPENDS= m1n1-=1.1.6p2:sysutils/m1n1:build \
u-boot-asahi-=2022.07.3p3:sysutils/u-boot-asahi:build
ASAHI_BUILD= ${WRKSRC}/sysutils/u-boot-asahi/u-boot-asahi-*/build
M1N1_BUILD= ${WRKSRC}/sysutils/m1n1/m1n1-*/build
do-install:
cat ${M1N1_BUILD}/m1n1.bin ${ASAHI_BUILD}/arch/arm/dts/*.dtb \
> ${PREFIX}/firmware/apple-boot.bin
gzip -c ${ASAHI_BUILD}/u-boot-nodtb.bin \
>> ${PREFIX}/firmware/apple-boot.bin
cat ${M1N1_BUILD}/m1n1.LICENSE ${ASAHI_BUILD}/LICENSE \
> ${PREFIX}/firmware/apple-boot-license
.include <bsd.port.mk>