diff options
Diffstat (limited to 'common/recipes-bsp/gnu-efi/gnu-efi_3.0m.bb')
-rw-r--r-- | common/recipes-bsp/gnu-efi/gnu-efi_3.0m.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-bsp/gnu-efi/gnu-efi_3.0m.bb b/common/recipes-bsp/gnu-efi/gnu-efi_3.0m.bb new file mode 100644 index 00000000..252d49a1 --- /dev/null +++ b/common/recipes-bsp/gnu-efi/gnu-efi_3.0m.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | SUMMARY = "Libraries for producing EFI binaries" | ||
2 | HOMEPAGE = "http://sourceforge.net/projects/gnu-efi/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=5fb358a180f484b285b0d99acdc29666" | ||
6 | |||
7 | PR = "r2" | ||
8 | |||
9 | SRCREV = "74" | ||
10 | |||
11 | SRC_URI = "http://downloads.sourceforge.net/gnu-efi/gnu-efi_3.0m.orig.tar.gz \ | ||
12 | file://cross-compile-support.patch \ | ||
13 | file://parallel-make.patch \ | ||
14 | " | ||
15 | SRC_URI[md5sum] = "d0a21125aee56c0c7291ad260e916cb3" | ||
16 | |||
17 | S = "${WORKDIR}/gnu-efi-3.0" | ||
18 | |||
19 | def gnu_efi_arch(d): | ||
20 | import re | ||
21 | tarch = d.getVar("TARGET_ARCH", True) | ||
22 | if re.match("i[3456789]86", tarch): | ||
23 | return "ia32" | ||
24 | return tarch | ||
25 | |||
26 | EXTRA_OEMAKE = "'ARCH=${@gnu_efi_arch(d)}' 'CC=${CC}' 'AS=${AS}' 'LD=${LD}' 'AR=${AR}' \ | ||
27 | 'RANLIB=${RANLIB}' 'OBJCOPY=${OBJCOPY}' \ | ||
28 | " | ||
29 | |||
30 | do_install() { | ||
31 | oe_runmake install INSTALLROOT="${D}${prefix}" | ||
32 | } | ||
33 | |||
34 | FILES_${PN} += "${libdir}/*.lds" | ||