ports/sysutils/shim/Makefile
Vinícius Zavam b3cd746e21 sysutils/shim: introduce new ARCH support (i386)
Makefile
        bump PORTREVISION;
        USE_CSTD: gnu89 became gnu99 [0];

    files/
        *: if ARCH=i386, replaces ARCH with ia32;
        elf_ia32_efi.lds: sync OUTPUT_FORMAT [1];
        MokManager.c: used UINT32 for MokNum.

Reported by:	pkg-fallout
Approved by:	araujo (mentor)
Differential Revision:	https://reviews.freebsd.org/D18572

[0] shim.c:2176:3: error: this decimal constant is unsigned only in ISO C90
[1] patch-elf_x86_64_efi.lds always appended -freebsd as OUTPUT_FORMAT
2018-12-19 17:30:22 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$
PORTNAME= shim
PORTVERSION= 0.9
PORTREVISION= 2
CATEGORIES= sysutils
MAINTAINER= egypcio@FreeBSD.org
COMMENT= UEFI Secure Boot shim loader
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
BUILD_DEPENDS= ${LOCALBASE}/lib/libgnuefi.a:devel/gnu-efi \
bash:shells/bash
USES= compiler gmake shebangfix
USE_CSTD= gnu99
USE_GCC= yes
SHEBANG_FILES= make-certs
USE_GITHUB= yes
GH_ACCOUNT= mjg59
MAKE_ARGS= CC="${CC} ${CFLAGS:M-std=*}" LD="${LD}" OBJCOPY="${OBJCOPY}"
MAKE_JOBS_UNSAFE= yes
PLIST_FILES= lib/shim/shim.pem lib/shim/shim.key \
lib/shim/MokManager.efi lib/shim/fallback.efi lib/shim/shim.efi
do-install:
# Note that before this step, the shim.pem contains the _private_ key.
openssl x509 -inform der -in ${WRKSRC}/shim.cer -outform pem -out ${WRKSRC}/shim.pem
${MKDIR} ${STAGEDIR}${PREFIX}/lib/shim
${INSTALL_DATA} -m 600 ${WRKSRC}/shim.key ${STAGEDIR}${PREFIX}/lib/shim
.for file in shim.pem MokManager.efi fallback.efi shim.efi
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/lib/shim
.endfor
.include <bsd.port.mk>