2017-08-20 17:23:11 +02:00
|
|
|
PORTNAME= rpi-firmware
|
2023-08-09 11:47:29 +02:00
|
|
|
PORTVERSION= 1.20230405.g20230405
|
2017-08-20 17:23:11 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
|
2018-08-18 22:42:46 +02:00
|
|
|
MAINTAINER= uboot@FreeBSD.org
|
2017-08-20 17:23:11 +02:00
|
|
|
COMMENT= Firmware for RaspberryPi Single Board Computer
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/raspberrypi/firmware
|
2017-08-20 17:23:11 +02:00
|
|
|
|
|
|
|
LICENSE= BROADCOM
|
|
|
|
LICENSE_NAME= Broadcom Corporation
|
|
|
|
LICENSE_FILE= ${WRKSRC}/boot/LICENCE.broadcom
|
|
|
|
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
|
|
|
|
|
2018-03-21 17:12:09 +01:00
|
|
|
BUILD_DEPENDS= aarch64-none-elf-gcc:devel/aarch64-none-elf-gcc
|
2017-08-20 17:23:11 +02:00
|
|
|
|
2018-03-21 17:12:09 +01:00
|
|
|
USE_GITHUB= yes
|
2019-02-04 19:24:16 +01:00
|
|
|
|
2023-07-31 19:35:30 +02:00
|
|
|
GH_ACCOUNT= raspberrypi freebsd:pscimon
|
2018-03-21 17:12:09 +01:00
|
|
|
GH_PROJECT= firmware rpi3-psci-monitor:pscimon
|
2023-08-09 11:47:29 +02:00
|
|
|
FW_TAG= 055e044
|
2020-01-13 17:53:06 +01:00
|
|
|
PSCI_TAG= 558620c
|
2019-12-05 17:15:16 +01:00
|
|
|
GH_TAGNAME= ${FW_TAG} ${PSCI_TAG}:pscimon
|
2018-03-21 17:12:09 +01:00
|
|
|
|
2019-12-05 17:15:16 +01:00
|
|
|
BUILD_WRKSRC= ${WRKSRC_pscimon}
|
2017-08-20 17:23:11 +02:00
|
|
|
INSTALL_DIR= ${PREFIX}/share/${PORTNAME}
|
|
|
|
|
2020-08-09 19:34:04 +02:00
|
|
|
CONFIG_TXT_FILES= config.txt \
|
|
|
|
config_rpi_0_w.txt \
|
|
|
|
config_rpi3.txt \
|
|
|
|
config_rpi3_edk2.txt \
|
2020-12-15 16:07:07 +01:00
|
|
|
config_rpi4.txt \
|
|
|
|
config_arm64.txt
|
2018-07-22 22:44:48 +02:00
|
|
|
|
2018-03-21 14:52:57 +01:00
|
|
|
do-patch:
|
2018-07-22 22:44:48 +02:00
|
|
|
.for i in ${CONFIG_TXT_FILES}
|
|
|
|
${CP} ${FILESDIR}/${i} ${WRKSRC}/boot/
|
|
|
|
.endfor
|
2018-03-21 14:52:57 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${RM} ${WRKSRC}/boot/kernel.img
|
|
|
|
${RM} ${WRKSRC}/boot/kernel7.img
|
2020-11-22 20:14:48 +01:00
|
|
|
${RM} ${WRKSRC}/boot/kernel7l.img
|
|
|
|
${RM} ${WRKSRC}/boot/kernel8.img
|
2018-03-21 14:52:57 +01:00
|
|
|
|
2017-08-20 17:23:11 +02:00
|
|
|
do-install:
|
2018-03-27 10:33:55 +02:00
|
|
|
${MKDIR} ${STAGEDIR}/${INSTALL_DIR}
|
2018-03-21 14:52:57 +01:00
|
|
|
cd ${WRKSRC}/boot && ${COPYTREE_SHARE} . ${STAGEDIR}/${INSTALL_DIR}/
|
2019-12-05 17:15:16 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC_pscimon}/armstub8.bin \
|
|
|
|
${WRKSRC_pscimon}/armstub8-gic.bin ${STAGEDIR}/${INSTALL_DIR}/
|
2017-08-20 17:23:11 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|