freebsd-ports/sysutils/opensbi/Makefile
Mitchell Horne b594a4b70c sysutils/opensbi: update to version 1.2
With this version, stop providing the library and header files
altogether. I do not think they are useful at this time.

Bump associate u-boot port revisions.

Reviewed by:	lwhsu
Approved by:	lwhsu (ports)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D37934
2023-01-03 11:33:47 -04:00

56 lines
1.3 KiB
Makefile

PORTNAME= opensbi
DISTVERSIONPREFIX=v
DISTVERSION= 1.2
CATEGORIES= sysutils
MAINTAINER= mhorne@FreeBSD.org
COMMENT= RISC-V SBI bootloader and firmware
WWW= https://github.com/riscv-software-src/opensbi
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= bash:shells/bash \
dtc:sysutils/dtc
USES= gmake python:build shebangfix
SHEBANG_FILES= scripts/Kconfiglib/*.py
USE_GITHUB= yes
GH_ACCOUNT= riscv-software-src
MAKE_ARGS= CC=clang I=${STAGEDIR}${PREFIX} V=1 FW_PAYLOAD=n
OPTIONS_GROUP= PLATFORMS
OPTIONS_GROUP_PLATFORMS=GENERIC
OPTIONS_SUB= yes
OPTIONS_DEFAULT= GENERIC
GENERIC_DESC= Support for generic platform
GENERIC_PLATFORM= generic
GENERIC_STRIP_ARGS= -K tohost -K fromhost
INSTALL_TARGET= install
PLIST_SUB+= RISCV_ABI=${PLATFORM_RISCV_ABI}
PLATFORM_RISCV_ABI= lp64
do-install: # only need install_firmwares target
.for platform in ${OPTIONS_GROUP_PLATFORMS}
post-build-${platform}-on:
${MAKE_CMD} -C ${WRKSRC} ${MAKE_ARGS} PLATFORM=${${platform}_PLATFORM}
do-install-${platform}-on:
${MKDIR} ${STAGEDIR}${PREFIX}
${MAKE_CMD} -C ${WRKSRC} PLATFORM=${${platform}_PLATFORM} ${MAKE_ARGS} \
I=${STAGEDIR}${PREFIX} V=1 install_firmwares
post-install-${platform}-on:
${STRIP_CMD} ${${platform}_STRIP_ARGS} \
${STAGEDIR}${DATADIR}/${PLATFORM_RISCV_ABI}/${${platform}_PLATFORM}/firmware/fw_*.elf
.endfor # OPTIONS_GROUP_PLATFORMS
.include <bsd.port.mk>