diff options
author | Adrian Bunk <bunk@stusta.de> | 2019-10-31 20:33:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-04 13:39:05 +0000 |
commit | f03d4a72f08c7d0247ea4f122ffce4e924dc59aa (patch) | |
tree | ed26be26f35fb60d05f9af93cc4669144750b594 /meta/recipes-bsp/gnu-efi/gnu-efi_3.0.11.bb | |
parent | e40596c4d4c51d92b1f42408c60296001c12b7f3 (diff) | |
download | poky-f03d4a72f08c7d0247ea4f122ffce4e924dc59aa.tar.gz |
gnu-efi: Upgrade 3.0.10 -> 3.0.11
Patch applied upstream removed.
(From OE-Core rev: 3bb5b837a0dd8d995c5e643831bd530caf11bea3)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/gnu-efi/gnu-efi_3.0.11.bb')
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi_3.0.11.bb | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.11.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.11.bb new file mode 100644 index 0000000000..9954d7f57a --- /dev/null +++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.11.bb | |||
@@ -0,0 +1,71 @@ | |||
1 | SUMMARY = "Libraries for producing EFI binaries" | ||
2 | HOMEPAGE = "http://sourceforge.net/projects/gnu-efi/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPLv2+ | BSD-2-Clause" | ||
5 | LIC_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 | |||
15 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \ | ||
16 | file://parallel-make-archives.patch \ | ||
17 | file://lib-Makefile-fix-parallel-issue.patch \ | ||
18 | file://gnu-efi-3.0.9-fix-clang-build.patch \ | ||
19 | " | ||
20 | |||
21 | SRC_URI[md5sum] = "21148bbcccec385a9bfdf5f678959577" | ||
22 | SRC_URI[sha256sum] = "f28da792a2532e91e18e0101468811739a22cde9eee5eacfd0efb9bf3a61d6b9" | ||
23 | |||
24 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux" | ||
25 | COMPATIBLE_HOST_armv4 = 'null' | ||
26 | |||
27 | do_configure_linux-gnux32_prepend() { | ||
28 | cp ${STAGING_INCDIR}/gnu/stubs-x32.h ${STAGING_INCDIR}/gnu/stubs-64.h | ||
29 | cp ${STAGING_INCDIR}/bits/long-double-32.h ${STAGING_INCDIR}/bits/long-double-64.h | ||
30 | } | ||
31 | |||
32 | def gnu_efi_arch(d): | ||
33 | import re | ||
34 | tarch = d.getVar("TARGET_ARCH") | ||
35 | if re.match("i[3456789]86", tarch): | ||
36 | return "ia32" | ||
37 | return tarch | ||
38 | |||
39 | EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 'AR=${AR}' \ | ||
40 | 'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' 'PREFIX=${prefix}' 'LIBDIR=${libdir}' \ | ||
41 | " | ||
42 | |||
43 | # gnu-efi's Makefile treats prefix as toolchain prefix, so don't | ||
44 | # export it. | ||
45 | prefix[unexport] = "1" | ||
46 | |||
47 | do_install() { | ||
48 | oe_runmake install INSTALLROOT="${D}" | ||
49 | } | ||
50 | |||
51 | FILES_${PN} += "${libdir}/*.lds" | ||
52 | |||
53 | # 64-bit binaries are expected for EFI when targeting X32 | ||
54 | INSANE_SKIP_${PN}-dev_append_linux-gnux32 = " arch" | ||
55 | INSANE_SKIP_${PN}-dev_append_linux-muslx32 = " arch" | ||
56 | |||
57 | BBCLASSEXTEND = "native" | ||
58 | |||
59 | # It doesn't support sse, its make.defaults sets: | ||
60 | # CFLAGS += -mno-mmx -mno-sse | ||
61 | # So also remove -mfpmath=sse from TUNE_CCARGS | ||
62 | TUNE_CCARGS_remove = "-mfpmath=sse" | ||
63 | |||
64 | python () { | ||
65 | ccargs = d.getVar('TUNE_CCARGS').split() | ||
66 | if '-mx32' in ccargs: | ||
67 | # use x86_64 EFI ABI | ||
68 | ccargs.remove('-mx32') | ||
69 | ccargs.append('-m64') | ||
70 | d.setVar('TUNE_CCARGS', ' '.join(ccargs)) | ||
71 | } | ||