From patchwork Wed Aug 7 05:52:28 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: 170714 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp6678263ile; Tue, 6 Aug 2019 22:59:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqE7flfVYxKVQj1U1GEVeT35I70kFkMNG7UAaMEezlQ4YAiYgygYwr7kFnEPOPf9cb2f1B X-Received: by 2002:a17:90a:3344:: with SMTP id m62mr6743490pjb.135.1565157589193; Tue, 06 Aug 2019 22:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565157589; cv=none; d=google.com; s=arc-20160816; b=A7/HSqx/G4dHAgsteszkxuFVTvXWYUBQm59Saj6a8CuAZHwIe/g/nLtWIYOL+NH4pD C/TbgtuXVKXMV+Kx/d0hyyY9X5HogWZ/koChenWGezDhUajfm1PcA+s7n7VobmvRcBKX 9HbIfrDmPXABvP0wDdrEFyHhpgQf8Lawoo4gl6zQzj6qPzBcys/DgzmViVJmG0D/HUKy mlo71Ej7XmNFL7zc5aIcOV7wXa2iNcJOHruV/tB3I1yeFCH+7ZUUiPBddjVvNDbc5pPS 7g2KjYclJgfY7DUs+PM3HTCYtfoJBv6O+n84DSeteQvefnLHR/6AQdfXoLrKn+ZhO785 dNWg== 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:delivered-to; bh=vvSHOcPnVzmvcDTfNZU7aGB2Bz4JCTnN2iTa3UU4FVg=; b=WCrpmts8VdlSV3YrYMPIjwY7fxcVXzpnCvpyz4sw+esDfFWp2xwl6uSOpBbsb+/cm+ yggYpHlZ6d4jPSMpVugLoF3+d1sobhT4zD49oYVi4wpacSWeJPqnUM6cHjfKOOdVtM+4 MukUTqTJsDtEt7ZL1zmBPDczUrd4oqsqQmCEQ85/c4gwpDP+mPi8jwlEsOJH/hjw08n5 RapXCbRUhohgHodoTti6Z0Be0jOdxsQpS5iXy/zoWLAYn8lNno1CtTeaFaE+J8Yrl0JX 6s5Kesn70YxnBCAkO14Q93q9/GHr5owNvosXch7qOZCk1/ugBukEcfqe1HDO6IjFYjvO Q5NQ== 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 v16si50099141pfi.142.2019.08.06.22.59.48; Tue, 06 Aug 2019 22:59:49 -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 B477A7F461; Wed, 7 Aug 2019 05:59:45 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mail.openembedded.org (Postfix) with ESMTP id B14547F450 for ; Wed, 7 Aug 2019 05:59:38 +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:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,356,1559545200"; d="scan'208";a="168519884" Received: from andromeda02.png.intel.com ([10.221.183.11]) by orsmga008.jf.intel.com with ESMTP; 06 Aug 2019 22:52:33 -0700 From: Chin Huat Ang To: "openembedded-core@lists.openembedded.org" Date: Wed, 7 Aug 2019 13:52:28 +0800 Message-Id: <1565157150-7729-2-git-send-email-chin.huat.ang@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1565157150-7729-1-git-send-email-chin.huat.ang@intel.com> References: <1565157150-7729-1-git-send-email-chin.huat.ang@intel.com> Subject: [OE-core] [warrior][PATCH 2/4] efivar: ensure that target security flags are not used to build native code 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 Also set LDFLAGS=BUILD_LDFLAGS when compiling makeguids to ensure that any target compiler flags are not passed to the native compiler. [ YOCTO #13423 ] (From OE-Core rev: f61e0676aabba9e006c32f0e53c69426368cd4f0) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-bsp/efivar/efivar_37.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.7.4 -- _______________________________________________ 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_37.bb b/meta/recipes-bsp/efivar/efivar_37.bb index c4254c7..9b95721 100644 --- a/meta/recipes-bsp/efivar/efivar_37.bb +++ b/meta/recipes-bsp/efivar/efivar_37.bb @@ -23,7 +23,10 @@ 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 + oe_runmake \ + CFLAGS="${BUILD_CFLAGS}" \ + LDFLAGS="${BUILD_LDFLAGS}" \ + -C src makeguids } do_install() {