From: Andreas Reichel <[email protected]> Add bitbake recipe for compilation of * efibootguard * efibootguard native environment utilities
Signed-off-by: Andreas Reichel <[email protected]> --- recipes-bsp/efibootguard/efibootguard.bb | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 recipes-bsp/efibootguard/efibootguard.bb diff --git a/recipes-bsp/efibootguard/efibootguard.bb b/recipes-bsp/efibootguard/efibootguard.bb new file mode 100644 index 0000000..920c4dd --- /dev/null +++ b/recipes-bsp/efibootguard/efibootguard.bb @@ -0,0 +1,63 @@ +# EFI Boot Guard +# +# Copyright (c) Siemens AG, 2017 +# +# Authors: +# Claudius Heine <[email protected]> +# Andreas Reichel <[email protected]> +# +# This work is licensed under the terms of the GNU GPL, version 2. +# See the COPYING.GPLv2 file in the top-level directory. + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = "git://github.com/siemens/efibootguard.git;protocol=https;branch=master" +SRCREV = "e3263ab8132b8d0be3b1e5513afc4a93f287e9e5" + +S = "${WORKDIR}/git" + +DEPENDS = "gnu-efi pciutils" + +inherit autotools deploy + +COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux" + +PACKAGES = "${PN}-tools \ + ${PN}-tools-dbg \ + ${PN}-tools-staticdev \ + ${PN}-tools-dev \ + ${PN}-efi" + +EXTRA_OECONF = "--with-gnuefi-sys-dir=${STAGING_DIR_HOST} \ + --with-gnuefi-include-dir=${STAGING_INCDIR}/efi \ + --with-gnuefi-lds-dir=${STAGING_LIBDIR} \ + --with-gnuefi-lib-dir=${STAGING_LIBDIR}" + +FILES_${PN}-tools = "/usr/bin" +FILES_${PN}-tools-dbg = "/usr/src/debug" +FILES_${PN}-tools-staticdev = "/usr/lib/lib*.a" +FILES_${PN}-tools-dev = "/usr/include/*" +FILES_${PN}-efi = "/usr/lib/efibootguard" + +do_deploy () { + install ${B}/efibootguard*.efi ${DEPLOYDIR} +} +addtask deploy before do_build after do_compile + +BBCLASSEXTEND = "native" +DEPENDS_class-native = "" + +do_compile_class-native () { + oe_runmake bg_setenv +} + +do_install_class-native () { + install -d ${D}${bindir}/ + install -m755 ${B}/bg_setenv ${D}${bindir}/ + ln -s bg_setenv ${D}${bindir}/bg_printenv +} + +do_deploy_class-native () { +} + -- 2.14.1 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20170907090618.4963-5-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
