summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2017-07-13 13:09:41 +0800
committerLans Zhang <jia.zhang@windriver.com>2017-07-13 13:09:41 +0800
commit8dbce3e3a034fdcb8ba38269814c748123653df5 (patch)
tree57685812ab84105db66a663234a08605d525beb5
parent19ddae93dbed97b2e7e2f7edfde50fa4917d989a (diff)
downloadmeta-secure-core-8dbce3e3a034fdcb8ba38269814c748123653df5.tar.gz
efitools: code style fixup
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
-rw-r--r--meta-efi-secure-boot/recipes-bsp/efitools/efitools-native_git.bb4
-rw-r--r--meta-efi-secure-boot/recipes-bsp/efitools/efitools.inc25
-rw-r--r--meta-efi-secure-boot/recipes-bsp/efitools/efitools_git.bb14
3 files changed, 22 insertions, 21 deletions
diff --git a/meta-efi-secure-boot/recipes-bsp/efitools/efitools-native_git.bb b/meta-efi-secure-boot/recipes-bsp/efitools/efitools-native_git.bb
index d7159d8..418eb77 100644
--- a/meta-efi-secure-boot/recipes-bsp/efitools/efitools-native_git.bb
+++ b/meta-efi-secure-boot/recipes-bsp/efitools/efitools-native_git.bb
@@ -1,9 +1,9 @@
1require efitools.inc 1require efitools.inc
2 2
3inherit native
4
5DEPENDS_append = " gnu-efi-native" 3DEPENDS_append = " gnu-efi-native"
6 4
5inherit native
6
7EXTRA_OEMAKE_append = "\ 7EXTRA_OEMAKE_append = "\
8 INCDIR_PREFIX='${STAGING_DIR_NATIVE}' \ 8 INCDIR_PREFIX='${STAGING_DIR_NATIVE}' \
9 CRTPATH_PREFIX='${STAGING_DIR_NATIVE}' \ 9 CRTPATH_PREFIX='${STAGING_DIR_NATIVE}' \
diff --git a/meta-efi-secure-boot/recipes-bsp/efitools/efitools.inc b/meta-efi-secure-boot/recipes-bsp/efitools/efitools.inc
index c9de4db..446c713 100644
--- a/meta-efi-secure-boot/recipes-bsp/efitools/efitools.inc
+++ b/meta-efi-secure-boot/recipes-bsp/efitools/efitools.inc
@@ -10,6 +10,13 @@ in the Linux 3.8 kernel. \
10LICENSE = "GPLv2" 10LICENSE = "GPLv2"
11LIC_FILES_CHKSUM = "file://COPYING;md5=e28f66b16cb46be47b20a4cdfe6e99a1" 11LIC_FILES_CHKSUM = "file://COPYING;md5=e28f66b16cb46be47b20a4cdfe6e99a1"
12 12
13DEPENDS_append += "\
14 help2man-native openssl-native sbsigntool-native \
15 libfile-slurp-perl-native \
16"
17
18PV = "1.7.0+git${SRCPV}"
19
13SRC_URI = "\ 20SRC_URI = "\
14 git://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git \ 21 git://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git \
15 file://Fix-for-the-cross-compilation.patch \ 22 file://Fix-for-the-cross-compilation.patch \
@@ -22,21 +29,14 @@ SRC_URI = "\
22 file://Reuse-xxdi.pl.patch \ 29 file://Reuse-xxdi.pl.patch \
23 file://Add-static-keyword-for-IsValidVariableHeader.patch \ 30 file://Add-static-keyword-for-IsValidVariableHeader.patch \
24" 31"
25
26SRCREV = "0649468475d20d8ca5634433c4912467cef3ce93" 32SRCREV = "0649468475d20d8ca5634433c4912467cef3ce93"
27PV = "1.7.0+git${SRCPV}"
28 33
29PARALLEL_MAKE = "" 34PARALLEL_MAKE = ""
30 35
31inherit perlnative
32
33DEPENDS_append += "\
34 help2man-native openssl-native sbsigntool-native \
35 libfile-slurp-perl-native \
36"
37
38S = "${WORKDIR}/git" 36S = "${WORKDIR}/git"
39 37
38inherit perlnative
39
40EXTRA_OEMAKE = "\ 40EXTRA_OEMAKE = "\
41 HELP2MAN='${STAGING_BINDIR_NATIVE}/help2man' \ 41 HELP2MAN='${STAGING_BINDIR_NATIVE}/help2man' \
42 OPENSSL='${STAGING_BINDIR_NATIVE}/openssl' \ 42 OPENSSL='${STAGING_BINDIR_NATIVE}/openssl' \
@@ -51,13 +51,14 @@ EXTRA_OEMAKE_append_x86-64 += " ARCH=x86_64"
51LDFLAGS := "${@oe_filter_out('-Wl,', '${LDFLAGS}', d)}" 51LDFLAGS := "${@oe_filter_out('-Wl,', '${LDFLAGS}', d)}"
52BUILD_LDFLAGS := "${@oe_filter_out('-Wl,', '${BUILD_LDFLAGS}', d)}" 52BUILD_LDFLAGS := "${@oe_filter_out('-Wl,', '${BUILD_LDFLAGS}', d)}"
53 53
54EFI_BOOT_PATH = "/boot/efi/EFI/BOOT"
55
54do_compile_prepend() { 56do_compile_prepend() {
55 sed -i -e "1s:#!.*:#!/usr/bin/env nativeperl:" xxdi.pl 57 sed -i -e "1s:#!.*:#!/usr/bin/env nativeperl:" xxdi.pl
56} 58}
57 59
58EFI_BOOT_PATH = "/boot/efi/EFI/BOOT"
59FILES_${PN} += "${EFI_BOOT_PATH}"
60
61do_install() { 60do_install() {
62 oe_runmake install DESTDIR='${D}${base_prefix}' 61 oe_runmake install DESTDIR='${D}${base_prefix}'
63} 62}
63
64FILES_${PN} += "${EFI_BOOT_PATH}"
diff --git a/meta-efi-secure-boot/recipes-bsp/efitools/efitools_git.bb b/meta-efi-secure-boot/recipes-bsp/efitools/efitools_git.bb
index ea02811..56ce41c 100644
--- a/meta-efi-secure-boot/recipes-bsp/efitools/efitools_git.bb
+++ b/meta-efi-secure-boot/recipes-bsp/efitools/efitools_git.bb
@@ -1,5 +1,8 @@
1require efitools.inc 1require efitools.inc
2 2
3# The generated native binaries are used during native and target build
4DEPENDS += "${BPN}-native gnu-efi openssl"
5
3SRC_URI_append += "\ 6SRC_URI_append += "\
4 file://LockDown-enable-the-enrollment-for-DBX.patch \ 7 file://LockDown-enable-the-enrollment-for-DBX.patch \
5 file://LockDown-show-the-error-message-with-3-sec-timeout.patch \ 8 file://LockDown-show-the-error-message-with-3-sec-timeout.patch \
@@ -13,13 +16,6 @@ COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
13 16
14inherit user-key-store deploy 17inherit user-key-store deploy
15 18
16# The generated native binaries are used during native and target build
17DEPENDS += "${BPN}-native gnu-efi openssl"
18
19RDEPENDS_${PN}_append += "\
20 parted mtools coreutils util-linux openssl libcrypto \
21"
22
23EXTRA_OEMAKE_append += "\ 19EXTRA_OEMAKE_append += "\
24 INCDIR_PREFIX='${STAGING_DIR_TARGET}' \ 20 INCDIR_PREFIX='${STAGING_DIR_TARGET}' \
25 CRTPATH_PREFIX='${STAGING_DIR_TARGET}' \ 21 CRTPATH_PREFIX='${STAGING_DIR_TARGET}' \
@@ -82,3 +78,7 @@ do_deploy() {
82 install -m 0600 ${D}${EFI_BOOT_PATH}/LockDown.efi "${DEPLOYDIR}" 78 install -m 0600 ${D}${EFI_BOOT_PATH}/LockDown.efi "${DEPLOYDIR}"
83} 79}
84addtask deploy after do_install before do_build 80addtask deploy after do_install before do_build
81
82RDEPENDS_${PN}_append += "\
83 parted mtools coreutils util-linux openssl libcrypto \
84"