shim: clean up the code style

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
Lans Zhang
2017-06-30 13:41:37 +08:00
parent e664a331d5
commit dcfd67c60b
@@ -1,21 +1,22 @@
SUMMARY = "shim is a trivial EFI application." SUMMARY = "shim is a trivial EFI application."
DESCRIPTION = "shim is a trivial EFI application that, when run, attempts to open and \ DESCRIPTION = "shim is a trivial EFI application that, when run, \
execute another application. It will initially attempt to do this via the \ attempts to open and execute another application. It will initially \
standard EFI LoadImage() and StartImage() calls. If these fail (because secure \ attempt to do this via the standard EFI LoadImage() and StartImage() \
boot is enabled and the binary is not signed with an appropriate key, for \ calls. If these fail (because secure boot is enabled and the binary \
instance) it will then validate the binary against a built-in certificate. If \ is not signed with an appropriate key, for instance) it will then \
this succeeds and if the binary or signing key are not blacklisted then shim \ validate the binary against a built-in certificate. If this succeeds \
will relocate and execute the binary." and if the binary or signing key are not blacklisted then shim will \
relocate and execute the binary."
HOMEPAGE = "https://github.com/rhinstaller/shim.git" HOMEPAGE = "https://github.com/rhinstaller/shim.git"
SECTION = "bootloaders" SECTION = "bootloaders"
LICENSE = "BSD-2-Clause" LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=b92e63892681ee4e8d27e7a7e87ef2bc" LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=b92e63892681ee4e8d27e7a7e87ef2bc"
PR = "r0"
COMPATIBLE_HOST = '(i.86|x86_64).*-linux' DEPENDS += "\
gnu-efi openssl util-linux-native openssl-native \
"
inherit deploy user-key-store PV = "12+git${SRCPV}"
SRC_URI = "\ SRC_URI = "\
git://github.com/rhinstaller/shim.git \ git://github.com/rhinstaller/shim.git \
@@ -29,19 +30,16 @@ SRC_URI = "\
file://0012-netboot-replace-the-depreciated-EFI_PXE_BASE_CODE.patch \ file://0012-netboot-replace-the-depreciated-EFI_PXE_BASE_CODE.patch \
" "
SRC_URI_append_x86-64 = "\ SRC_URI_append_x86-64 = "\
${@bb.utils.contains('DISTRO_FEATURES', 'msft', 'file://shim${EFI_ARCH}.efi.signed file://LICENSE' if uks_signing_model(d) == 'sample' else '', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'msft', \
'file://shim' + d.expand('EFI_ARCH') + '.efi.signed file://LICENSE' \
if uks_signing_model(d) == 'sample' else '', '', d)} \
" "
SRCREV = "55c65546e46a78edbe41e88cb4ccbd2522e09625" SRCREV = "55c65546e46a78edbe41e88cb4ccbd2522e09625"
PV = "12+git${SRCPV}"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
DEPENDS += "\
gnu-efi nss openssl util-linux-native openssl-native nss-native \
"
EFI_ARCH_x86 = "ia32" inherit deploy user-key-store
EFI_ARCH_x86-64 = "x64"
EXTRA_OEMAKE = "\ EXTRA_OEMAKE = "\
CROSS_COMPILE="${TARGET_PREFIX}" \ CROSS_COMPILE="${TARGET_PREFIX}" \
@@ -63,12 +61,16 @@ EXTRA_OEMAKE = "\
" "
PARALLEL_MAKE = "" PARALLEL_MAKE = ""
COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
EFI_TARGET = "/boot/efi/EFI/BOOT" EFI_TARGET = "/boot/efi/EFI/BOOT"
FILES_${PN} += "${EFI_TARGET}" FILES_${PN} += "${EFI_TARGET}"
MSFT = "${@bb.utils.contains('DISTRO_FEATURES', 'msft', '1', '0', d)}" MSFT = "${@bb.utils.contains('DISTRO_FEATURES', 'msft', '1', '0', d)}"
EFI_ARCH_x86 = "ia32"
EFI_ARCH_x86-64 = "x64"
# Prepare the signing certificate and keys # Prepare the signing certificate and keys
python do_prepare_signing_keys() { python do_prepare_signing_keys() {
# For UEFI_SB, shim is not built # For UEFI_SB, shim is not built