Edit

IABSD.fr/ports/sysutils/coreboot-utils/Makefile

Branch :

  • Show log

    Commit

  • Author : tb
    Date : 2026-05-30 14:09:32
    Hash : f0640bb4
    Message : coreboot-utils: bump

  • sysutils/coreboot-utils/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}
    REVISION =		0
    
    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>