From patchwork Mon Jun 10 12:25:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 166317 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp967724ilk; Mon, 10 Jun 2019 05:25:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrjb0wmZsc7s9Eq+VPaUOCcv+B+5+94ADcyez846AXIk9Q6lyjqtCjxxl2epady5kPGmdh X-Received: by 2002:a17:902:7793:: with SMTP id o19mr9979371pll.110.1560169557779; Mon, 10 Jun 2019 05:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560169557; cv=none; d=google.com; s=arc-20160816; b=czEnSMyz3/tNnU2uRnEVyvdgFIGCXsUSJtOClI2MWZi90Px7EURaitFZmBVmvmu4zW hpRUkZhj+hvL1Q8/tt3l+PG8XK51eqapvnO16TtEldJpNLxkKQWGCZNmHzICOjnFVN1K SZXBs8qzPFMLvPfmsO7+t/Llz6KY1TRlFREo3XpZy/8BRbEg4HOS4432BztxUb+aUY/u 4toyZ9awj0DGxRfm33WZ+Tj0wSTGg9hOQ79g84glNSxIwF5WtJozPEleFDPw7mHCW6nY 9Ta+2n8yuiUD0N30N4MDh6MnFWYHHsn1N2y3ScGPKv70Yl0R88X8Mb9RgesSc9/Jk0uH WdVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=gSKg8Z6ChUM8Twij0X7Hs0iejI2tNPWqA+tBRiIbdoA=; b=mt6vHp7DazIzqYR6apbgNwbiegAioOr7T1S0eC+jWFJmgtUE2YoeuHmj4h/8dIC7Aj H2CHedJY4wxBWbe+eqMLW3dst9OCIsyLLqmk0/cwOhph2kM7XEYM3/2Z7ROfByjagsG3 wXTml/KwsDIlC3aO1r7STttvyxoCW/m6OJwpiW0OPlkxymMCVzBlWTUIS6Ps8h3CrvUN Uxh60Nl8bFWqPQgrYCpNbiWbN0QAQjJXSvNGHOUUnydcldWq6LQx6PxCabJAMldUYhiR Op2vaHHCnhLg9csOzxWI0pnN4GEu1UoVBbtzpQFw+yUgvGMRMt1DZXWj5FwuuxwCDKmS ydUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=cGIZ8Phq; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id bc7si9242609plb.108.2019.06.10.05.25.57; Mon, 10 Jun 2019 05:25:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=cGIZ8Phq; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 41B9F7E3F6; Mon, 10 Jun 2019 12:25:55 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id 187216D409 for ; Mon, 10 Jun 2019 12:25:52 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id g135so8287857wme.4 for ; Mon, 10 Jun 2019 05:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=8vOxOZme2sbtjwaBp5jnG4KtUifRq8UFXnvGnb4nTZo=; b=cGIZ8PhqFqUVFXpoS41mxB0C9vog4R/eI5W2LZIVcS9uIGBvHYKp1kbTz+6EYbuucw Eap1yY5QtHjKoPXxba/jkcPQzsQ/X/F9ZezwnrmwsHHl4PjAOfd3XSduUE4vCNe9A9Sw UuwKgAjxEQ0OjDfR+jJyT6ChV1GL668g/m/HLO6v2rt/TgsCXz+uzJems2Q2ZjSYF/6g x/iVZsJ19Msu5sY91Ba3yHLZBa7GNtzDjoJYcYSws9c7TfHtxGTa2vT/UzqlcuL7HSlJ /Py6HOD5ya2i78k2g4J7buYBYu9POBXvSlhd2tFJ9l6YIl6INDc1+fmv7tRZ1s6IGhRo vShA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=8vOxOZme2sbtjwaBp5jnG4KtUifRq8UFXnvGnb4nTZo=; b=oTKzZfaEIjaMIBIrMpRyiF3u2AHiQBRiUv0g8lq6PpgyctPQZ5829XZhgHXDKA+uBt fGWG3M6lOjWTPcg3C8KDPCfZ7bDl7U9vzldrx7rJqAOBn+DdD8GRWVRFzerXmXZycOpQ QRX0NNdVfeDbn/L5Wl9c79noLfjIODbX692u5RLf1ADXRLzEdPmbFrwVyQ4/aGYkJgqT CUa2/jGZbQI9IJ6UDZemTEkpS4OvvfcRzjjG4/i7rEoChI/j71LjOaI2L9AKCv2oA/x5 C7LfsMbtOFg+wwRKjn0/4d379KIwCtUb9UxblsvGF42wazrhXpMJ7UrjBTXjd2gLKSt9 nzqA== X-Gm-Message-State: APjAAAWSskBG4XE3sal7PnTcoRwQU+Ntv0obYynqftm6Grc8bZHxAJzQ i5VtsRB27QIPtrCjTNN2fJ1j34C5RRw= X-Received: by 2002:a7b:c3d7:: with SMTP id t23mr12956692wmj.94.1560169553335; Mon, 10 Jun 2019 05:25:53 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id p3sm11795882wrd.47.2019.06.10.05.25.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 05:25:52 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 10 Jun 2019 13:25:48 +0100 Message-Id: <20190610122549.2144-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH 1/2] efivar: add X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This was in meta-oe but EFI is sufficiently wide spread now that we need it in core. Signed-off-by: Ross Burton --- .../efivar/0001-efivar-fix-for-cross-compile.patch | 32 ++++++++++++++++ .../0004-fix-unknow-option-for-gold-linker.patch | 35 ++++++++++++++++++ .../allow-multi-definitions-for-native.patch | 36 ++++++++++++++++++ meta/recipes-bsp/efivar/efivar_37.bb | 43 ++++++++++++++++++++++ 4 files changed, 146 insertions(+) create mode 100644 meta/recipes-bsp/efivar/efivar/0001-efivar-fix-for-cross-compile.patch create mode 100644 meta/recipes-bsp/efivar/efivar/0004-fix-unknow-option-for-gold-linker.patch create mode 100644 meta/recipes-bsp/efivar/efivar/allow-multi-definitions-for-native.patch create mode 100644 meta/recipes-bsp/efivar/efivar_37.bb -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-bsp/efivar/efivar/0001-efivar-fix-for-cross-compile.patch b/meta/recipes-bsp/efivar/efivar/0001-efivar-fix-for-cross-compile.patch new file mode 100644 index 00000000000..251e50c902c --- /dev/null +++ b/meta/recipes-bsp/efivar/efivar/0001-efivar-fix-for-cross-compile.patch @@ -0,0 +1,32 @@ +From a9115d9e6f0f62d6bb735ce3698858d1f89f8d73 Mon Sep 17 00:00:00 2001 +From: Kai Kang +Date: Fri, 25 Sep 2015 18:14:31 +0800 +Subject: [PATCH] efivar: fix for cross compile + +It builds and calls elf file makeguids to generate a header file which +doesn't work for cross compile. Fix it. + +Signed-off-by: Kai Kang + +Upstream-Status: Pending +Signed-off-by: Hongxu Jia + +--- + src/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index 0c16597..dcc7fc8 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -40,8 +40,8 @@ abicheck : $(patsubst %.so,%.abicheck,$(LIBTARGETS)) + ./guid-symbols.c : include/efivar/efivar-guids.h + ./guids.bin : include/efivar/efivar-guids.h + ./names.bin : include/efivar/efivar-guids.h +-include/efivar/efivar-guids.h : makeguids guids.txt +- ./makeguids guids.txt guids.bin names.bin \ ++include/efivar/efivar-guids.h : guids.txt ++ makeguids guids.txt guids.bin names.bin \ + guid-symbols.c include/efivar/efivar-guids.h + + makeguids : CPPFLAGS+=-DEFIVAR_BUILD_ENVIRONMENT diff --git a/meta/recipes-bsp/efivar/efivar/0004-fix-unknow-option-for-gold-linker.patch b/meta/recipes-bsp/efivar/efivar/0004-fix-unknow-option-for-gold-linker.patch new file mode 100644 index 00000000000..96d0c6b3b28 --- /dev/null +++ b/meta/recipes-bsp/efivar/efivar/0004-fix-unknow-option-for-gold-linker.patch @@ -0,0 +1,35 @@ +From b3d35e7dd27a755df5acbe050837885914dbb28b Mon Sep 17 00:00:00 2001 +From: Hongxu Jia +Date: Tue, 10 May 2016 11:34:50 -0400 +Subject: [PATCH] fix unknow option for gold linker + +- Revert the following patch, since oe-core work with gcc 5 +... +commit 3055a3797f16693dfdd855fa68bc57fd900dc408 +Author: Peter Jones +Date: Mon Feb 15 14:15:40 2016 -0500 + + Make gcc.specs work with gcc 6 / binutils 2.26 + + Apparently binutils 2.26 gets real picky about "ld -PIC" vs "ld -fPIC". + + Signed-off-by: Peter Jones +... + +- Remove unknown option '--add-needed' + +Signed-off-by: Hongxu Jia +--- + gcc.specs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: git/gcc.specs +=================================================================== +--- git.orig/gcc.specs ++++ git/gcc.specs +@@ -14,4 +14,4 @@ + + %{!shared:%{!static:%{!r:-pie}}} %{static:-Wl,-no-fatal-warnings -Wl,-static -static -Wl,-z,relro,-z,now} + + *link: +-+ %{!static:--fatal-warnings} --no-undefined-version --no-allow-shlib-undefined --add-needed -z now --build-id %{!static:%{!shared:-pie}} %{shared:-z relro} %{static:% +Date: Tue, 31 Jul 2018 14:18:35 +0800 +Subject: [PATCH] allow multi definitions for native + +Upstream-Status: Pending + +It fails to create .so file when build efivar-native: + +| lib.o:(*IND*+0x0): multiple definition of `efi_set_variable' +| lib.o:lib.c:(.text+0xa0): first defined here + +Add link option '-z muldefs' to fix it. + +Signed-off-by: Kai Kang + +Signed-off-by: Hongxu Jia +--- + Make.rules | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Make.rules b/Make.rules +index 042585b..257ba45 100644 +--- a/Make.rules ++++ b/Make.rules +@@ -20,6 +20,7 @@ include $(TOPDIR)/Make.version + $(CCLD) $(ccldflags) $(CPPFLAGS) $(SOFLAGS) \ + -Wl,-soname,$@.1 \ + -Wl,--version-script=$(MAP) \ ++ -Wl,-z,muldefs \ + -o $@ $^ $(LDLIBS) + ln -vfs $@ $@.1 + +-- +2.7.4 + diff --git a/meta/recipes-bsp/efivar/efivar_37.bb b/meta/recipes-bsp/efivar/efivar_37.bb new file mode 100644 index 00000000000..4b458dedd50 --- /dev/null +++ b/meta/recipes-bsp/efivar/efivar_37.bb @@ -0,0 +1,43 @@ +SUMMARY = "Tools to manipulate UEFI variables" +DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility" +HOMEPAGE = "https://github.com/rhinstaller/efivar" + +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393" + +DEPENDS = "popt" +DEPENDS_append_class-target = " efivar-native" + +inherit pkgconfig + +COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" + +SRCREV = "c1d6b10e1ed4ba2be07f385eae5bceb694478a10" +SRC_URI = "git://github.com/rhinstaller/efivar.git \ + file://allow-multi-definitions-for-native.patch \ + " +SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch \ + ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'file://0004-fix-unknow-option-for-gold-linker.patch', '', d)} \ + " + +S = "${WORKDIR}/git" + +do_compile_prepend() { + sed -i -e s:-Werror::g ${S}/gcc.specs +} + +do_compile_class-native() { + oe_runmake -C src makeguids CC_FOR_BUILD="${BUILD_CC}" +} + +do_install() { + oe_runmake install DESTDIR=${D} +} + +do_install_class-native() { + install -D -m 0755 ${B}/src/makeguids ${D}${bindir}/makeguids +} + +BBCLASSEXTEND = "native" + +RRECOMMENDS_${PN}_class-target = "kernel-module-efivarfs" From patchwork Mon Jun 10 12:25:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 166318 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp967774ilk; Mon, 10 Jun 2019 05:26:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfoGvlyuPZAKzkMJuPBLNEGyN01t+0c7RdpLB8G0md5AmxUZ/sOJnA/FUtWMAmDzuIqrC2 X-Received: by 2002:a63:eb0a:: with SMTP id t10mr13958927pgh.99.1560169561912; Mon, 10 Jun 2019 05:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560169561; cv=none; d=google.com; s=arc-20160816; b=pVL91NETe21xG5ETodS/vzBD0hndSkD5HIhGuE08tJSFsoPvbSfRtyhv4lYX+necsf qE+a6vSFEqAhMbPqPTih/TtaR6gMyZSVPW4ijsHDmCXh9K1QZSafH8iNkVpKW0TZdNcP yAEhMDKu1BWrsH8RFlsvukxbLNzC85RXHgtbuzgB0hyx86Nea4735RuSH4KvZ6zyVu5U e3j0wqjUgN6xTkBpXk4w1oxtPWBl3QidTbGQuKV8gJtOuyQWT9QHemWUuR5/ZyN0RgGu l5sWF29ULQAhdu/hMGzMk7w0xEYXs4sNyLGB/TT1k5PbGQ7UXa+Qna4x9mhnMkf/oB4V LUMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=zRxOieRXpuRof8QudIvhPIO34VMZGxxjQN6uXN/TT40=; b=GF6M+Etodpc74t1MGCWFaC/1yuEABmz6zot0R1J1ip6tHpscY23bnHgxFL4UqGd4a1 0w4VFs99Fy1a2/8XoEnsO0HQ1SHmKvjXtGj76ylDYbvnWEf0Pb5atfVO6GXdeJ+q5fdJ Z+eIwwxTG9RJs2Jan3QAyQroHHk5uc519TgBKhBr7brPu1C8O69mYqPs3j++2nXAC/9m XIYqNqiFeRhjeqVCubve29XhxhVjrQLH3+7Zge7WL77K7q67lRBbq9yFotWlb504EJ6D uSDfE/XlhhtgbH/LJGjFwHAA9c/Hrd2i1JKZ7PJvkazj9jlyJuTZTKkEbSAVKRefC3Ku rW3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="1/pVOaNh"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t24si9376862plr.56.2019.06.10.05.26.01; Mon, 10 Jun 2019 05:26:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="1/pVOaNh"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id CB4F67E4EB; Mon, 10 Jun 2019 12:25:57 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id 562DF6D409 for ; Mon, 10 Jun 2019 12:25:54 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id v19so324509wmj.5 for ; Mon, 10 Jun 2019 05:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=l0icallKEyoEsY7N9hLEo9fUKPiDcqti832Mz1unyRM=; b=1/pVOaNhGPIaCqZOh5iS0QAR9U2pvkVDlefU0iRWHy4/z+HUJVOFg54hcOigeCm7Qj OzvsqujMZVF6f88dga5gEbhUtkwF3BPyngFVua876RKKuE6g6TwKGibulcmTgem3q0nk XeQI/m1b9hIxNj5OsUA8V54xafyXElw1fCxDuwrU5l+gGQeYMenMRM4Oed7UbuR1bBQb +YbQeenWyslnUBIgkfqwsiJt/sDlYvlqnYwggfm/5vseGGWNw4eiLa0ugqTy4A4ljMDA RquX3QEnnAn3k+nOVQaUQMhV2RNYoYW2epIUwMSF7jB29tumvhTFFjO+/71ut9iCDYA0 sq+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=l0icallKEyoEsY7N9hLEo9fUKPiDcqti832Mz1unyRM=; b=RzR/wRHmPPQ+XkBgs+TBpUkbK39PQ2+/E/M6yCKzl2/ujVH4vceZ+6+jcjN1AUGo28 SHKN38WJCZqx0Vbl1tp1/lbi5zvk5dxf3FAvso+pBVu4p3yDVJlv7b9F/ee74KpSRfth JPEtXO1QZxUJvcYw9XtMUrQpGoOEGlbqEGgVZJQfst0l9c9m+LQGXyROZpBhYs2RsRul JeeT4qOGt2TgSjgue3lABqnI/KvURazpW4fNP3XmPhlBrEcCKmb4KquKqFcnMpTghgtY vySK1OIXkmuz6Ff8pbclXOw0lVH63WYH/28eP9RvFhLFRXnJk6zoTHUqk8XM0j6Q/6/k wALg== X-Gm-Message-State: APjAAAVHLzI3SdQPHx+evwxZOfZlEzUI6QwI7OIbpxTNmUpPSQYdje+G D7Eg7i/BE8I2ka+TpO4QMRntOH2AtOs= X-Received: by 2002:a7b:cae9:: with SMTP id t9mr13223324wml.126.1560169554853; Mon, 10 Jun 2019 05:25:54 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id p3sm11795882wrd.47.2019.06.10.05.25.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 05:25:53 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 10 Jun 2019 13:25:49 +0100 Message-Id: <20190610122549.2144-2-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190610122549.2144-1-ross.burton@intel.com> References: <20190610122549.2144-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 2/2] efibootmgr: add X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This was in meta-oe but EFI is sufficiently wide spread now that we need it in core. Signed-off-by: Ross Burton --- meta/recipes-bsp/efibootmgr/efibootmgr_17.bb | 28 +++++++++++++++++++ .../efibootmgr/files/0001-remove-extra-decl.patch | 31 ++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 meta/recipes-bsp/efibootmgr/efibootmgr_17.bb create mode 100644 meta/recipes-bsp/efibootmgr/files/0001-remove-extra-decl.patch -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-bsp/efibootmgr/efibootmgr_17.bb b/meta/recipes-bsp/efibootmgr/efibootmgr_17.bb new file mode 100644 index 00000000000..4edb2e6644f --- /dev/null +++ b/meta/recipes-bsp/efibootmgr/efibootmgr_17.bb @@ -0,0 +1,28 @@ +DESCRIPTION = "Linux user-space application to modify the EFI Boot Manager." +SUMMARY = "EFI Boot Manager" +HOMEPAGE = "https://github.com/rhinstaller/efibootmgr" +SECTION = "base" + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" + +DEPENDS = "pciutils zlib efivar" + +COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" + +SRCREV = "e067160ecef8208e1944002e5d50b275733211fb" +SRC_URI = "git://github.com/rhinstaller/efibootmgr.git;protocol=https \ + file://0001-remove-extra-decl.patch \ + " +S = "${WORKDIR}/git" + +inherit pkgconfig + +EXTRA_OEMAKE = "'EFIDIR=/' 'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/include `pkg-config --cflags efivar`'" + +CFLAGS_append_toolchain-clang = " -Wno-error" +do_install () { + install -D -p -m0755 ${B}/src/efibootmgr ${D}/${sbindir}/efibootmgr +} + +CLEANBROKEN = "1" diff --git a/meta/recipes-bsp/efibootmgr/files/0001-remove-extra-decl.patch b/meta/recipes-bsp/efibootmgr/files/0001-remove-extra-decl.patch new file mode 100644 index 00000000000..42f3a8182df --- /dev/null +++ b/meta/recipes-bsp/efibootmgr/files/0001-remove-extra-decl.patch @@ -0,0 +1,31 @@ +From 99b578501643377e0b1994b2a068b790d189d5ad Mon Sep 17 00:00:00 2001 +From: Peter Jones +Date: Wed, 13 Jun 2018 09:41:01 -0400 +Subject: [PATCH] remove extra decl + +Signed-off-by: Peter Jones + +Upstream-Status: Backport [git://github.com/rhinstaller/efibootmgr.git] +Signed-off-by: Hongxu Jia + +--- + src/efibootmgr.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/src/efibootmgr.c b/src/efibootmgr.c +index de38f01..4e1a680 100644 +--- a/src/efibootmgr.c ++++ b/src/efibootmgr.c +@@ -1536,9 +1536,6 @@ parse_opts(int argc, char **argv) + "invalid numeric value %s\n", + optarg); + } +- /* XXX efivar-36 accidentally doesn't have a public +- * header for this */ +- extern int efi_set_verbose(int verbosity, FILE *errlog); + efi_set_verbose(opts.verbose - 2, stderr); + break; + case 'V': +-- +2.7.4 +