summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb')
-rw-r--r--meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb
new file mode 100644
index 0000000000..f46381d5f1
--- /dev/null
+++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.5.bb
@@ -0,0 +1,65 @@
1SUMMARY = "Libraries for producing EFI binaries"
2HOMEPAGE = "http://sourceforge.net/projects/gnu-efi/"
3SECTION = "devel"
4LICENSE = "GPLv2+ | BSD-2-Clause"
5LIC_FILES_CHKSUM = "file://gnuefi/crt0-efi-arm.S;beginline=4;endline=16;md5=e582764a4776e60c95bf9ab617343d36 \
6 file://gnuefi/crt0-efi-aarch64.S;beginline=4;endline=16;md5=e582764a4776e60c95bf9ab617343d36 \
7 file://inc/efishellintf.h;beginline=13;endline=20;md5=202766b79d708eff3cc70fce15fb80c7 \
8 file://inc/efishellparm.h;beginline=4;endline=11;md5=468b1231b05bbc84bae3a0d5774e3bb5 \
9 file://lib/arm/math.c;beginline=2;endline=15;md5=8ed772501da77b2b3345aa6df8744c9e \
10 file://lib/arm/initplat.c;beginline=2;endline=15;md5=8ed772501da77b2b3345aa6df8744c9e \
11 file://lib/aarch64/math.c;beginline=2;endline=15;md5=8ed772501da77b2b3345aa6df8744c9e \
12 file://lib/aarch64/initplat.c;beginline=2;endline=15;md5=8ed772501da77b2b3345aa6df8744c9e \
13 "
14
15SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \
16 file://parallel-make-archives.patch \
17 file://lib-Makefile-fix-parallel-issue.patch \
18 file://gcc46-compatibility.patch \
19 "
20
21SRC_URI[md5sum] = "1f719c9c135778aa6b087b89a1cc2423"
22SRC_URI[sha256sum] = "bd8fcd5914f18fc0e4ba948ab03b00013e528504f529c60739b748f6ef130b22"
23
24COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
25COMPATIBLE_HOST_armv4 = 'null'
26
27def gnu_efi_arch(d):
28 import re
29 tarch = d.getVar("TARGET_ARCH")
30 if re.match("i[3456789]86", tarch):
31 return "ia32"
32 return tarch
33
34EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 'AR=${AR}' \
35 'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' 'PREFIX=${prefix}' 'LIBDIR=${libdir}' \
36 "
37
38# gnu-efi's Makefile treats prefix as toolchain prefix, so don't
39# export it.
40prefix[unexport] = "1"
41
42do_install() {
43 oe_runmake install INSTALLROOT="${D}"
44}
45
46FILES_${PN} += "${libdir}/*.lds"
47
48# 64-bit binaries are expected for EFI when targeting X32
49INSANE_SKIP_${PN}-dev_append_linux-gnux32 = " arch"
50
51BBCLASSEXTEND = "native"
52
53# It doesn't support sse, its make.defaults sets:
54# CFLAGS += -mno-mmx -mno-sse
55# So also remove -mfpmath=sse from TUNE_CCARGS
56TUNE_CCARGS_remove = "-mfpmath=sse"
57
58python () {
59 ccargs = d.getVar('TUNE_CCARGS').split()
60 if '-mx32' in ccargs:
61 # use x86_64 EFI ABI
62 ccargs.remove('-mx32')
63 ccargs.append('-m64')
64 d.setVar('TUNE_CCARGS', ' '.join(ccargs))
65}