From patchwork Wed Jul 31 11:53:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 170139 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp3928452ile; Wed, 31 Jul 2019 04:53:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRpkZg+5I/6zIhcHU0Ov6Eg6kWuOH5pgaby7ep9zovxz0YQGGEALJS3wPs+IwlsbPNtFTQ X-Received: by 2002:a17:90a:fa12:: with SMTP id cm18mr2569199pjb.137.1564573991288; Wed, 31 Jul 2019 04:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564573991; cv=none; d=google.com; s=arc-20160816; b=w7z3ynjga5ErN4InkwNDYnaBloMQkqWjE4hymToRHLFa8mI7252JK72XdSgXHFG77I KJBDERcKXCAn8pTWTx0pPAE/osksbhPL7oTTDYwD8n81Co/4duTcg1qLObvzvoaJ9F9B CkiOZTumvpF+nCZnlUZop+Ng2HaNPx6r2wFrRRspdz++6Xb8lX+veY6EFl37xg6xgM04 UDiyi0B59KMiXwGzt62P9PujdAhkxlGJP+uRExPRDAWwS4JB97d8ClvsMhPQEziMY4er BUTZSO254N6+6RLh1Gqk0QC8cHI6yx116T/0Vo6MJw2EKOjz+IM/a82but4UPl+J+0qy 7T0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=xqypO/yrtzTU7Xrw9dVM934gQhIlExKCqwgzse9Di1M=; b=0JOdk63mONiK/7Fg9euZ3rH3rI+X3PJwUteVqEXlfDFOXQvWEKTMjFarxu0LKK2HfO y4HFEIQfs/YEhGn0pu2pUzYBqb2mvT8cw96W+z287EStJVr3LuZmyUv8Bm1ynsBSJ1cT g+MuTSPUkZkHYHNKiR60wd9P46jj8Rx9IfTjfrYD45agTzGYR+nrPEVk8TYiNGHFwp/X xvP7JjogeqSa5R+Ih2YtwjoltWp7Hbm7KABuW8hjZfoUCw780gn4CwrmW568/pyBStgX +lWygmbOWOUMaCcT09wQ/xxgumQ4cDfG/lU6Iclhuy0u61MC7cvZhp6fGjadZGAiGGqx uuhA== 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=avdAriN0; 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 v14si31607570pgb.375.2019.07.31.04.53.10; Wed, 31 Jul 2019 04:53:11 -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=avdAriN0; 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 448D37F3BE; Wed, 31 Jul 2019 11:53:08 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mail.openembedded.org (Postfix) with ESMTP id 4DE717D718 for ; Wed, 31 Jul 2019 11:53:06 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id r1so69330535wrl.7 for ; Wed, 31 Jul 2019 04:53:07 -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:mime-version :content-transfer-encoding; bh=UW+GGkjkgJsj/SIuYFzYuG8x3DNOYSl9e8NhYYp2Kuk=; b=avdAriN0G1rcVAYKodwLtFS+/y1haXF/HHsN5x4yyYire5mi6l+M1/cciW7X1HLJYL Hvo2CwyRXd5DHCl2lck2I5fwiM7xq2YJ9RiiDgK6c1zrMPGyPnamsCcTyDgcYuI2dy+Y 1N/wB+kdLdG1bmdfk+RhdRvxSP6vj3YdO0mQD6Ggw9pTB0iRHXlFBZoaY6XxfZodpExQ c0lAiA8j5X7goeBLp99JLGlQPke0MPoccJvOGVS4NytY4UZ6jXQrJrEDTWkKSGUZujLT g7N4lEoAKlMRA+Babo8L2oh7+07dHTat+bc0cnWa4YUsfIM9/Ed5oXSpwnZyxzHj/GJ+ /FAw== 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:mime-version :content-transfer-encoding; bh=UW+GGkjkgJsj/SIuYFzYuG8x3DNOYSl9e8NhYYp2Kuk=; b=I/OTYZxSY9IyyxgY8OnsmqhEODZaWN91L9plGVCwUjGQhygZbqCtTDSUoQFQP0bEcx syNLnk94W/pe0Y5hDavxshjTWIlWQ2Txd/dWPFU4WyWTbDk5ursnqT9rL2HKlZHBXKp4 syfyfM+jW3kWC8Sl4Iv8DLh+iD/PHVPrirvcT7rDu5/rtQ4LFzHrktxRY5aNOit+/Xfw AUeP3+q9oCNDRGuH7MWeCX8QuFFd9gtGad6tqTnOKDoc1QMYunUk2LZG887p6X8F9lt6 tH6sO85KOuUdeqbN2jIkZQcfBRXTHx1MgYQZWoIV9WwD8iT1uzTarrsYXByzuGdeC3gv op3w== X-Gm-Message-State: APjAAAWli1I0Q9mplUg/GPF2YIhLvPjCSpsx90oG1CtIpfm7+xnrwrwD Gpf3C7FS1uwQ+LZrezzDjm3RqYTsxgQ= X-Received: by 2002:adf:f883:: with SMTP id u3mr133319410wrp.0.1564573986700; Wed, 31 Jul 2019 04:53:06 -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 y16sm69422795wrw.33.2019.07.31.04.53.04 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 04:53:05 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 31 Jul 2019 12:53:02 +0100 Message-Id: <20190731115302.18138-1-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] fortran-helloworld: neaten recipe 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Use ${FC} instead of constructing the fortran name/arguments explictly, and clean up installation. Signed-off-by: Ross Burton --- meta-selftest/recipes-test/fortran/fortran-helloworld.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb index 97313d7e249..3a464044775 100644 --- a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb +++ b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb @@ -11,15 +11,14 @@ SECURITY_CFLAGS = "" SECURITY_LDFLAGS = "" do_compile() { - ${HOST_PREFIX}gfortran ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello + ${FC} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello } do_install() { - install -d ${D}${bindir} - install ${B}/fortran-hello ${D}${bindir} + install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello } python () { if not d.getVar("FORTRAN"): raise bb.parse.SkipRecipe("Fortran isn't enabled") -} \ No newline at end of file +}