Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2018 10:48:22 +0000 (UTC)
From:      =?UTF-8?Q?Vin=c3=adcius_Zavam?= <egypcio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r486593 - head/devel/gnu-efi
Message-ID:  <201812041048.wB4AmMdN040552@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: egypcio
Date: Tue Dec  4 10:48:21 2018
New Revision: 486593
URL: https://svnweb.freebsd.org/changeset/ports/486593

Log:
  devel/gnu-efi: introduce new ARCH support (i386)
  
  Reviewed by:	mat
  Approved by:	araujo (mentor)
  Differential Revision:	https://reviews.freebsd.org/D17995

Modified:
  head/devel/gnu-efi/Makefile
  head/devel/gnu-efi/pkg-plist

Modified: head/devel/gnu-efi/Makefile
==============================================================================
--- head/devel/gnu-efi/Makefile	Tue Dec  4 10:44:05 2018	(r486592)
+++ head/devel/gnu-efi/Makefile	Tue Dec  4 10:48:21 2018	(r486593)
@@ -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}
 
+.include <bsd.port.pre.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/crt0-efi-x86_64.o
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.o
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/devel/gnu-efi/pkg-plist
==============================================================================
--- head/devel/gnu-efi/pkg-plist	Tue Dec  4 10:44:05 2018	(r486592)
+++ head/devel/gnu-efi/pkg-plist	Tue Dec  4 10:48:21 2018	(r486593)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812041048.wB4AmMdN040552>