diff options
author | Lans Zhang <jia.zhang@windriver.com> | 2017-07-13 13:09:41 +0800 |
---|---|---|
committer | Lans Zhang <jia.zhang@windriver.com> | 2017-07-13 13:09:41 +0800 |
commit | 8dbce3e3a034fdcb8ba38269814c748123653df5 (patch) | |
tree | 57685812ab84105db66a663234a08605d525beb5 | |
parent | 19ddae93dbed97b2e7e2f7edfde50fa4917d989a (diff) | |
download | meta-secure-core-8dbce3e3a034fdcb8ba38269814c748123653df5.tar.gz |
efitools: code style fixup
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
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 @@ | |||
1 | require efitools.inc | 1 | require efitools.inc |
2 | 2 | ||
3 | inherit native | ||
4 | |||
5 | DEPENDS_append = " gnu-efi-native" | 3 | DEPENDS_append = " gnu-efi-native" |
6 | 4 | ||
5 | inherit native | ||
6 | |||
7 | EXTRA_OEMAKE_append = "\ | 7 | EXTRA_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. \ | |||
10 | LICENSE = "GPLv2" | 10 | LICENSE = "GPLv2" |
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=e28f66b16cb46be47b20a4cdfe6e99a1" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=e28f66b16cb46be47b20a4cdfe6e99a1" |
12 | 12 | ||
13 | DEPENDS_append += "\ | ||
14 | help2man-native openssl-native sbsigntool-native \ | ||
15 | libfile-slurp-perl-native \ | ||
16 | " | ||
17 | |||
18 | PV = "1.7.0+git${SRCPV}" | ||
19 | |||
13 | SRC_URI = "\ | 20 | SRC_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 | |||
26 | SRCREV = "0649468475d20d8ca5634433c4912467cef3ce93" | 32 | SRCREV = "0649468475d20d8ca5634433c4912467cef3ce93" |
27 | PV = "1.7.0+git${SRCPV}" | ||
28 | 33 | ||
29 | PARALLEL_MAKE = "" | 34 | PARALLEL_MAKE = "" |
30 | 35 | ||
31 | inherit perlnative | ||
32 | |||
33 | DEPENDS_append += "\ | ||
34 | help2man-native openssl-native sbsigntool-native \ | ||
35 | libfile-slurp-perl-native \ | ||
36 | " | ||
37 | |||
38 | S = "${WORKDIR}/git" | 36 | S = "${WORKDIR}/git" |
39 | 37 | ||
38 | inherit perlnative | ||
39 | |||
40 | EXTRA_OEMAKE = "\ | 40 | EXTRA_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" | |||
51 | LDFLAGS := "${@oe_filter_out('-Wl,', '${LDFLAGS}', d)}" | 51 | LDFLAGS := "${@oe_filter_out('-Wl,', '${LDFLAGS}', d)}" |
52 | BUILD_LDFLAGS := "${@oe_filter_out('-Wl,', '${BUILD_LDFLAGS}', d)}" | 52 | BUILD_LDFLAGS := "${@oe_filter_out('-Wl,', '${BUILD_LDFLAGS}', d)}" |
53 | 53 | ||
54 | EFI_BOOT_PATH = "/boot/efi/EFI/BOOT" | ||
55 | |||
54 | do_compile_prepend() { | 56 | do_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 | ||
58 | EFI_BOOT_PATH = "/boot/efi/EFI/BOOT" | ||
59 | FILES_${PN} += "${EFI_BOOT_PATH}" | ||
60 | |||
61 | do_install() { | 60 | do_install() { |
62 | oe_runmake install DESTDIR='${D}${base_prefix}' | 61 | oe_runmake install DESTDIR='${D}${base_prefix}' |
63 | } | 62 | } |
63 | |||
64 | FILES_${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 @@ | |||
1 | require efitools.inc | 1 | require efitools.inc |
2 | 2 | ||
3 | # The generated native binaries are used during native and target build | ||
4 | DEPENDS += "${BPN}-native gnu-efi openssl" | ||
5 | |||
3 | SRC_URI_append += "\ | 6 | SRC_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 | ||
14 | inherit user-key-store deploy | 17 | inherit user-key-store deploy |
15 | 18 | ||
16 | # The generated native binaries are used during native and target build | ||
17 | DEPENDS += "${BPN}-native gnu-efi openssl" | ||
18 | |||
19 | RDEPENDS_${PN}_append += "\ | ||
20 | parted mtools coreutils util-linux openssl libcrypto \ | ||
21 | " | ||
22 | |||
23 | EXTRA_OEMAKE_append += "\ | 19 | EXTRA_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 | } |
84 | addtask deploy after do_install before do_build | 80 | addtask deploy after do_install before do_build |
81 | |||
82 | RDEPENDS_${PN}_append += "\ | ||
83 | parted mtools coreutils util-linux openssl libcrypto \ | ||
84 | " | ||