mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-05-07 02:08:20 +00:00
efitools: code style fixup
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
require efitools.inc
|
||||
|
||||
inherit native
|
||||
|
||||
DEPENDS_append = " gnu-efi-native"
|
||||
|
||||
inherit native
|
||||
|
||||
EXTRA_OEMAKE_append = "\
|
||||
INCDIR_PREFIX='${STAGING_DIR_NATIVE}' \
|
||||
CRTPATH_PREFIX='${STAGING_DIR_NATIVE}' \
|
||||
|
||||
@@ -10,6 +10,13 @@ in the Linux 3.8 kernel. \
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=e28f66b16cb46be47b20a4cdfe6e99a1"
|
||||
|
||||
DEPENDS_append += "\
|
||||
help2man-native openssl-native sbsigntool-native \
|
||||
libfile-slurp-perl-native \
|
||||
"
|
||||
|
||||
PV = "1.7.0+git${SRCPV}"
|
||||
|
||||
SRC_URI = "\
|
||||
git://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git \
|
||||
file://Fix-for-the-cross-compilation.patch \
|
||||
@@ -22,21 +29,14 @@ SRC_URI = "\
|
||||
file://Reuse-xxdi.pl.patch \
|
||||
file://Add-static-keyword-for-IsValidVariableHeader.patch \
|
||||
"
|
||||
|
||||
SRCREV = "0649468475d20d8ca5634433c4912467cef3ce93"
|
||||
PV = "1.7.0+git${SRCPV}"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
inherit perlnative
|
||||
|
||||
DEPENDS_append += "\
|
||||
help2man-native openssl-native sbsigntool-native \
|
||||
libfile-slurp-perl-native \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit perlnative
|
||||
|
||||
EXTRA_OEMAKE = "\
|
||||
HELP2MAN='${STAGING_BINDIR_NATIVE}/help2man' \
|
||||
OPENSSL='${STAGING_BINDIR_NATIVE}/openssl' \
|
||||
@@ -51,13 +51,14 @@ EXTRA_OEMAKE_append_x86-64 += " ARCH=x86_64"
|
||||
LDFLAGS := "${@oe_filter_out('-Wl,', '${LDFLAGS}', d)}"
|
||||
BUILD_LDFLAGS := "${@oe_filter_out('-Wl,', '${BUILD_LDFLAGS}', d)}"
|
||||
|
||||
EFI_BOOT_PATH = "/boot/efi/EFI/BOOT"
|
||||
|
||||
do_compile_prepend() {
|
||||
sed -i -e "1s:#!.*:#!/usr/bin/env nativeperl:" xxdi.pl
|
||||
}
|
||||
|
||||
EFI_BOOT_PATH = "/boot/efi/EFI/BOOT"
|
||||
FILES_${PN} += "${EFI_BOOT_PATH}"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install DESTDIR='${D}${base_prefix}'
|
||||
}
|
||||
|
||||
FILES_${PN} += "${EFI_BOOT_PATH}"
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
require efitools.inc
|
||||
|
||||
# The generated native binaries are used during native and target build
|
||||
DEPENDS += "${BPN}-native gnu-efi openssl"
|
||||
|
||||
SRC_URI_append += "\
|
||||
file://LockDown-enable-the-enrollment-for-DBX.patch \
|
||||
file://LockDown-show-the-error-message-with-3-sec-timeout.patch \
|
||||
@@ -13,13 +16,6 @@ COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
|
||||
|
||||
inherit user-key-store deploy
|
||||
|
||||
# The generated native binaries are used during native and target build
|
||||
DEPENDS += "${BPN}-native gnu-efi openssl"
|
||||
|
||||
RDEPENDS_${PN}_append += "\
|
||||
parted mtools coreutils util-linux openssl libcrypto \
|
||||
"
|
||||
|
||||
EXTRA_OEMAKE_append += "\
|
||||
INCDIR_PREFIX='${STAGING_DIR_TARGET}' \
|
||||
CRTPATH_PREFIX='${STAGING_DIR_TARGET}' \
|
||||
@@ -82,3 +78,7 @@ do_deploy() {
|
||||
install -m 0600 ${D}${EFI_BOOT_PATH}/LockDown.efi "${DEPLOYDIR}"
|
||||
}
|
||||
addtask deploy after do_install before do_build
|
||||
|
||||
RDEPENDS_${PN}_append += "\
|
||||
parted mtools coreutils util-linux openssl libcrypto \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user