devel/gnu-efi: introduce new ARCH support (i386)
Reviewed by: mat Approved by: araujo (mentor) Differential Revision: https://reviews.freebsd.org/D17995
This commit is contained in:
parent
6eea8317f5
commit
3dea24dae8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=486593
2 changed files with 28 additions and 11 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= gnu-efi
|
||||
PORTVERSION= 3.0.9
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= SF/gnu-efi
|
||||
|
||||
|
@ -11,9 +12,9 @@ COMMENT= SDK for EFI applications
|
|||
|
||||
LICENSE= GPLv2
|
||||
|
||||
ONLY_FOR_ARCHS= amd64
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/ar:devel/binutils
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/ar:devel/binutils
|
||||
|
||||
USES= compiler:c++11-lib gmake tar:bz2
|
||||
|
||||
|
@ -21,7 +22,15 @@ CFLAGS+= -fPIC
|
|||
CPPFLAGS+= -fPIC
|
||||
MAKE_ARGS+= CC=${CC} HOSTCC=${CC} AR=${AR}
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/crt0-efi-x86_64.o
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.if ${ARCH} == amd64
|
||||
PLIST_SUB= ARCH_amd64="" ARCH_i386="@comment "
|
||||
.elif ${ARCH} == i386
|
||||
PLIST_SUB= ARCH_i386="" ARCH_amd64="@comment "
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.o
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -39,11 +39,19 @@ include/efi/protocol/legacyboot.h
|
|||
include/efi/protocol/piflash64.h
|
||||
include/efi/protocol/vgaclass.h
|
||||
include/efi/romload.h
|
||||
include/efi/x86_64/efibind.h
|
||||
include/efi/x86_64/efilibplat.h
|
||||
include/efi/x86_64/efisetjmp_arch.h
|
||||
include/efi/x86_64/pe.h
|
||||
lib/crt0-efi-x86_64.o
|
||||
lib/elf_x86_64_fbsd_efi.lds
|
||||
lib/libefi.a
|
||||
lib/libgnuefi.a
|
||||
@comment Architecture Specific Packages List, amd64
|
||||
%%ARCH_amd64%%include/efi/x86_64/efibind.h
|
||||
%%ARCH_amd64%%include/efi/x86_64/efilibplat.h
|
||||
%%ARCH_amd64%%include/efi/x86_64/efisetjmp_arch.h
|
||||
%%ARCH_amd64%%include/efi/x86_64/pe.h
|
||||
%%ARCH_amd64%%lib/crt0-efi-x86_64.o
|
||||
%%ARCH_amd64%%lib/elf_x86_64_fbsd_efi.lds
|
||||
@comment Architecture Specific Packages List, i386
|
||||
%%ARCH_i386%%include/efi/ia32/efibind.h
|
||||
%%ARCH_i386%%include/efi/ia32/efilibplat.h
|
||||
%%ARCH_i386%%include/efi/ia32/efisetjmp_arch.h
|
||||
%%ARCH_i386%%include/efi/ia32/pe.h
|
||||
%%ARCH_i386%%lib/crt0-efi-ia32.o
|
||||
%%ARCH_i386%%lib/elf_ia32_efi.lds
|
||||
|
|
Loading…
Reference in a new issue