From patchwork Wed Jun 12 20:35:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 166594 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4127970ilk; Wed, 12 Jun 2019 13:35:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrOSybXtNrQ2Wr/thL+6w6fjG7bc9BYb+UnYQikbrMZdvpLVjeZXnhoV2VQEdjRMjEvLPx X-Received: by 2002:a17:90a:3ae8:: with SMTP id b95mr1044369pjc.68.1560371748494; Wed, 12 Jun 2019 13:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560371748; cv=none; d=google.com; s=arc-20160816; b=FOW8vD3C76tb5oPY61WQHxB2rSSv2vR+lqFNmqjVWQosmNs+uJ+F5R8TK5I8uJkKYS ejh6w1w8O8lQkDgChFMegVJtmlL6EQBmy5b/a5OQAqSMiscGAFaRVcnHlORn0VvYYoW7 AhgV4zFLP3frhGFlQMDMOuwS9AWSoRM8WeYMEFZwFCt+raShcJz4hnZblVghoMZunOv9 P6aBc8kTqruhyH3PqCEjgR3URsI9EmWZ5jX2QtI1I2sX2Xnikvhdbn8U8pSsbH9ajdkq e+lINQcW/vAPOWfNW1UTfg77dluPlivp+C+k9EbyJK1oeWx5JsXKdDE81oR7Cuu56nbU GjLQ== 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=3msfW4b21Ygzu38wpUwj8eIuIQZRUMlKm/uMdf5n3mc=; b=ATNo7h1Sl9PF632lerJcLCl5o9i611p1A/K+4st3R9/FD1ki+G7zkNQbjJ4P4k0zQ7 0GkbTsJxY3y8HFB5xcVv1eACybU/RngKrLFSPyhB/sz3nR2Lr8m6tBEl4WzAJsym2yyk OMxiTNH7YF/2z2PJrCoEM6yhTycbb+Wo2Sv/Sb2zilMlnKTDTP1XPrcAvZN09hqGhroB 3rDvvusBt2H7qKIh9gp92kL9K1hJXtv6zLgRHEBWxGAjsJeI+xAc9KNr3lL6k8IbY+cK BsH8g9c11uzE8AvjpaiL0La0nVduOD2BPrISrQ4tE9EBTuTNVkMk2X8q59GTxjVbI737 Ceug== 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="GQ9wZE/N"; 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 76si697609pgc.16.2019.06.12.13.35.47; Wed, 12 Jun 2019 13:35:48 -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="GQ9wZE/N"; 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 822A97E760; Wed, 12 Jun 2019 20:35:43 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by mail.openembedded.org (Postfix) with ESMTP id 232967E588 for ; Wed, 12 Jun 2019 20:35:40 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id 207so10364wma.1 for ; Wed, 12 Jun 2019 13:35:42 -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=tvqjCwepKNgmTmQeUp65FL5sZ7UnnkEwxIFOrg3hOwE=; b=GQ9wZE/NEKfAQu27M5ZudH/M8YZkwy/zxkWT1mwdVuiR7VHSJUEibpnFtZgovWFKU2 HveWSw2KxEBW4EoQjDrk2BombVDul0/C7S0UHxyd6WQJ48nD4UQ+F2zdu6/k6k8EgXeZ BedNoGiPjtBLcBsqQb585fDzswy2G6VWEiT9Ue7RRFk3oemi1TDxXyUoRVxF+Z8rWyIK rKC39cLXhceKdwTsjmsP/89exBSsguNg0KvDFSLk/+5kG1/7QWvqZNr7z3LI0tz2jthu U86IKSztQY4AWlPVI8EGQpCMK6HzjZAZXbzMComqW89Aeq6hD3gebb74x2visWDqGhfv CG+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; bh=tvqjCwepKNgmTmQeUp65FL5sZ7UnnkEwxIFOrg3hOwE=; b=MS0QDciSVRhm+mLJdTNsZPLkMWTh1qTce6p70/4rrVNa+1DpfQVV5l2wVa0H0vF32Z DryGymQ20xnROXw+O78ykyLMEN5rwI18R8WgSGClLfQv1/IvWUuo2Dj8HMXv419MZceM ai+8HP79mV0VBrvjP0uaCeDAiBkFF6VJhxB4L0+GR1n+AhMIZNWPjJU8gGxjalnVvGd4 Xxv1rFyHBhlborKalGxeHma1weAvQx/E5eW/MCrhAmTkHKl9daNM0nU3VD5/LlfBNHGh iLfGxagNYjYxtMSdYK8tzjje8/BN3GLlFsUNZOvGfh63l4f8mKJI+3wTcIjDIkqEsJ+c VKJg== X-Gm-Message-State: APjAAAW/4TTVeu8D7ovzA/wEtc8Q4hdYCnUEZmmUtP3xkBACazp9O9J7 kHpDsZx7VoTRQ738Wh9nEP3d0C0apZ8= X-Received: by 2002:a7b:c356:: with SMTP id l22mr690256wmj.97.1560371741321; Wed, 12 Jun 2019 13:35:41 -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 j189sm1156818wmb.48.2019.06.12.13.35.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jun 2019 13:35:39 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 12 Jun 2019 21:35:35 +0100 Message-Id: <20190612203536.32162-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH v2 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. The recipe is based on the one in meta-oe but with several updates. Signed-off-by: Ross Burton --- meta/recipes-bsp/efivar/efivar/no-werror.patch | 18 +++++++++++++ meta/recipes-bsp/efivar/efivar_37.bb | 37 ++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 meta/recipes-bsp/efivar/efivar/no-werror.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/no-werror.patch b/meta/recipes-bsp/efivar/efivar/no-werror.patch new file mode 100644 index 00000000000..50a0b1023a5 --- /dev/null +++ b/meta/recipes-bsp/efivar/efivar/no-werror.patch @@ -0,0 +1,18 @@ +Don't use -Werror because newer compilers introduce newer warnings. + +Upstream-Status: Inappropriate [https://github.com/rhboot/efivar/issues/131] +Signed-off-by: Ross Burton + +diff --git a/gcc.specs b/gcc.specs +index 45d43d1..1baf11a 100644 +--- a/gcc.specs ++++ b/gcc.specs +@@ -2,7 +2,7 @@ + + -D_GNU_SOURCE + + *efivar_cpp_options: +- -Werror -Wall -std=gnu11 -Wextra ++ -Wall -std=gnu11 -Wextra + + *cpp_options: + + %(efivar_cpp_options) diff --git a/meta/recipes-bsp/efivar/efivar_37.bb b/meta/recipes-bsp/efivar/efivar_37.bb new file mode 100644 index 00000000000..c4254c70d91 --- /dev/null +++ b/meta/recipes-bsp/efivar/efivar_37.bb @@ -0,0 +1,37 @@ +SUMMARY = "Tools to manipulate UEFI variables" +DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility" +HOMEPAGE = "https://github.com/rhboot/efivar" + +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393" + +COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" + +SRC_URI = "git://github.com/rhinstaller/efivar.git \ + file://no-werror.patch" +SRCREV = "c1d6b10e1ed4ba2be07f385eae5bceb694478a10" + +S = "${WORKDIR}/git" + +inherit pkgconfig + +export CCLD_FOR_BUILD = "${BUILD_CCLD}" + +# Upstream uses --add-needed in gcc.specs which gold doesn't support, so +# enforce BFD. +LDFLAGS += "-fuse-ld=bfd" + +do_compile_prepend() { + # Remove when https://github.com/rhboot/efivar/issues/130 is fixed + oe_runmake CFLAGS="${BUILD_CFLAGS}" -C src makeguids +} + +do_install() { + oe_runmake install DESTDIR=${D} +} + +BBCLASSEXTEND = "native" + +RRECOMMENDS_${PN}_class-target = "kernel-module-efivarfs" + +CLEANBROKEN = "1"