From patchwork Wed Aug 7 05:52:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chin Huat Ang X-Patchwork-Id: 170713 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp6678182ile; Tue, 6 Aug 2019 22:59:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxE645wLY2k+ahQz9A6E0vYnqo5EJLzVHC+6A6yUoDE5nVKXVENigvq77tdxOKsHMvArdaB X-Received: by 2002:a63:ff0c:: with SMTP id k12mr6025374pgi.186.1565157582529; Tue, 06 Aug 2019 22:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565157582; cv=none; d=google.com; s=arc-20160816; b=ERNHtAEeks268ub4qhX6poXR2HTSRIAOgNdtOremOm2ZDI5rvlzvHQZOFI+luMexfH JxbY+nkRe/F0VzigQF0p9svorfxa3Ul0qLwRwCRt345sGbysMNLTued98yssXyGQOLFS 7P9BtINb0OKNtzCbzETnwclobk6g/evtK3CqA6yyUmdk5d4yoboQNtXjVE8TGS2SE1R8 bJIQqAG/pXklXkcRq7oaUAQmMC+LykKZBJZ7O5b9e97xQXxoFsccA3VGSePC8PTlGxR4 sGYuVun53UAdaay1RO0ObFiDUC0jvfnWnTb9NNbp+QcRwaSVFi+2RI8cuZ+B6rUBAShF OpnA== 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:delivered-to; bh=lcoYGWUyUWQgSP2IO84DgSbkHiMfmW/D2tqIpBFIZxs=; b=bB6F2thngTWg9XGRVHAnEiuGc/GvJQCDWGjcbxYxfythtytTc0dz64L4r31G5Oz71K 9YRzaF2sPKNlYp1RisUR+jda5z3Gqe/TcBJNZ4Gp3MeK43PiIrXxt9IDSa61G9K4f3SS 7CqTYOxGNYCq4B5FNn2OQZ581kLqP5Gqh4jjKMbDL0KyVMGYGiSGyEcbVPWD8J/ARjQS XAc0m/zIrCjh7g5TYuoUJOZIIynvc4ZN4RvITLk0aOKDFC7zoxOsgi/rdjTRnSdK5s3K tt7ZKH2VdOfUKTSLYhd2DBvTtb23liGHNCK/QbTv45Zh68cPQd12zcQCtYhqqBCvUXA1 IHWA== ARC-Authentication-Results: i=1; mx.google.com; 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 g22si48675918pfh.219.2019.08.06.22.59.42; Tue, 06 Aug 2019 22:59:42 -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; 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 708CC7F450; Wed, 7 Aug 2019 05:59:39 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org X-Greylist: delayed 426 seconds by postgrey-1.34 at layers.openembedded.org; Wed, 07 Aug 2019 05:59:37 UTC Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mail.openembedded.org (Postfix) with ESMTP id 9B7937F445 for ; Wed, 7 Aug 2019 05:59:37 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2019 22:52:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,356,1559545200"; d="scan'208";a="168519878" Received: from andromeda02.png.intel.com ([10.221.183.11]) by orsmga008.jf.intel.com with ESMTP; 06 Aug 2019 22:52:31 -0700 From: Chin Huat Ang To: "openembedded-core@lists.openembedded.org" Date: Wed, 7 Aug 2019 13:52:27 +0800 Message-Id: <1565157150-7729-1-git-send-email-chin.huat.ang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [OE-core] [warrior][PATCH 1/4] 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 From: Ross Burton 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. (From OE-Core rev: 53fe0133432f62024850e87456292b044d1280ee) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/conf/distro/include/maintainers.inc | 1 + meta/recipes-bsp/efivar/efivar/no-werror.patch | 18 +++++++++++++ meta/recipes-bsp/efivar/efivar_37.bb | 37 ++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 meta/recipes-bsp/efivar/efivar/no-werror.patch create mode 100644 meta/recipes-bsp/efivar/efivar_37.bb -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 950b8e8..7d31e4f 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -161,6 +161,7 @@ RECIPE_MAINTAINER_pn-dtc = "Alexander Kanavin " RECIPE_MAINTAINER_pn-dwarfsrcfiles = "Alexander Kanavin " RECIPE_MAINTAINER_pn-e2fsprogs = "Robert Yang " RECIPE_MAINTAINER_pn-ed = "Alexander Kanavin " +RECIPE_MAINTAINER_pn-efivar = "Ross Burton " RECIPE_MAINTAINER_pn-eglinfo-fb = "Alexander Kanavin " RECIPE_MAINTAINER_pn-eglinfo-x11 = "Alexander Kanavin " RECIPE_MAINTAINER_pn-eglinfo-wayland = "Alexander Kanavin " 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 0000000..50a0b10 --- /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 0000000..c4254c7 --- /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"