Files
ports/sysutils/coreboot-utils/Makefile
T
sdk 7401f13598 Update coreboot-utils to version 4.21, patch from cat <cat@plan9.rocks>
This update adds the cbfstool binary.

kn@: port-wise this looks good
2023-10-29 07:04:28 +00:00

57 lines
1.1 KiB
Makefile

# ectool requires amd64_iopl(2)
# intelmetool requires <amd64/pio.h>
ONLY_FOR_ARCHS = amd64
COMMENT = utilities to work on firmware images and hardware
V = 4.21
DISTNAME = coreboot-${V}
PKGNAME = coreboot-utils-${V}
CATEGORIES = sysutils devel
HOMEPAGE = https://coreboot.org
# GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB = c
SITES = https://coreboot.org/releases/
EXTRACT_SUFX = .tar.xz
EXTRACT_FILES = ${DISTNAME}/{src/commonlib,src/vendorcode,util,3rdparty}
USE_GMAKE = Yes
NO_TEST = Yes
# some util/*/Makefile use [HOST]CC=gcc
MAKE_FLAGS = CC=${CC} \
HOSTCC=${CC}
FAKE_FLAGS = PREFIX=${PREFIX}
# XXX intelmetool requires unsupported pcilib access methods
UTILS = cbfstool \
cbmem \
ectool \
ifdtool \
nvramtool
do-build:
.for u in ${UTILS}
env -i ${MAKE_ENV} ${MAKE_PROGRAM} -C ${WRKSRC}/util/${u} \
${MAKE_FLAGS} ${ALL_TARGET}
.endfor
do-install:
.for u in ${UTILS}
env -i ${MAKE_ENV} ${MAKE_PROGRAM} -C ${WRKSRC}/util/${u} \
${FAKE_FLAGS} ${INSTALL_TARGET}
.endfor
mv ${PREFIX}/share/man/* ${PREFIX}/man/
rmdir ${PREFIX}/share/man
.include <bsd.port.mk>