diff options
Diffstat (limited to 'meta/recipes-bsp/gnu-efi/gnu-efi_3.0.2.bb')
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi_3.0.2.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.2.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.2.bb new file mode 100644 index 0000000000..2b4f3f37e2 --- /dev/null +++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.2.bb | |||
@@ -0,0 +1,40 @@ | |||
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=9;md5=2240d7bbdf0928294c2f4a68b14d6591 \ | ||
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/div64.S;beginline=6;endline=12;md5=a96c84f5ad12b4f011f98b5d039242f2 \ | ||
10 | file://lib/arm/math.c;beginline=4;endline=10;md5=64dd1987cee1dcf59d11aa572cfa644e \ | ||
11 | file://lib/arm/initplat.c;beginline=4;endline=10;md5=64dd1987cee1dcf59d11aa572cfa644e \ | ||
12 | file://lib/arm/lib1funcs.S;beginline=9;endline=33;md5=f56d5ebbc87136bc66cfe24db82bcf01 \ | ||
13 | file://lib/aarch64/math.c;beginline=9;endline=33;md5=cfade4c560e033a7bb02dab282872c7d \ | ||
14 | file://lib/aarch64/initplat.c;beginline=9;endline=33;md5=900cb1ffbe3e1ded344102be921830f1 \ | ||
15 | " | ||
16 | |||
17 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \ | ||
18 | file://parallel-make-archives.patch \ | ||
19 | " | ||
20 | SRC_URI[md5sum] = "a9db2cabc01a2674715bd6aea2911f01" | ||
21 | SRC_URI[sha256sum] = "194b580ecdb1fad0e41914845ba064c279afb687855960b58693459e5537b4d7" | ||
22 | |||
23 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux" | ||
24 | |||
25 | def gnu_efi_arch(d): | ||
26 | import re | ||
27 | tarch = d.getVar("TARGET_ARCH", True) | ||
28 | if re.match("i[3456789]86", tarch): | ||
29 | return "ia32" | ||
30 | return tarch | ||
31 | |||
32 | EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 'AR=${AR}' \ | ||
33 | 'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' 'PREFIX=${prefix}' 'LIBDIR=${libdir}' \ | ||
34 | " | ||
35 | |||
36 | do_install() { | ||
37 | oe_runmake install INSTALLROOT="${D}" | ||
38 | } | ||
39 | |||
40 | FILES_${PN} += "${libdir}/*.lds" | ||