From patchwork Wed Aug 9 09:24:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 28575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC54AEB64DD for ; Wed, 9 Aug 2023 09:24:25 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.84305.1691573062157311134 for ; Wed, 09 Aug 2023 02:24:22 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BA2AE139F; Wed, 9 Aug 2023 02:25:03 -0700 (PDT) Received: from oss-tx204.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CFA843F59C; Wed, 9 Aug 2023 02:24:20 -0700 (PDT) From: ross.burton@arm.com To: meta-arm@lists.yoctoproject.org Cc: nd@arm.com Subject: [PATCH] kas/: pass through DISPLAY from environment Date: Wed, 9 Aug 2023 10:24:18 +0100 Message-Id: <20230809092418.2918762-1-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 09 Aug 2023 09:24:25 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/4950 From: Ross Burton If a user does eg "kas shell kas/corstone1000-base.yml" and then calls runfvp, the spawned xterms don't have a valid DISPLAY set. Add DISPLAY to the preserved environment variables and DISPLAY will be passed into the shell, and the xterms will start correctly. Signed-off-by: Ross Burton --- kas/corstone1000-base.yml | 3 +++ kas/corstone500.yml | 3 +++ kas/fvp-baser-aemv8r64-bsp.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/kas/corstone1000-base.yml b/kas/corstone1000-base.yml index 85706dc0..161312fb 100644 --- a/kas/corstone1000-base.yml +++ b/kas/corstone1000-base.yml @@ -1,6 +1,9 @@ header: version: 11 +env: + DISPLAY: "" + distro: poky-tiny defaults: diff --git a/kas/corstone500.yml b/kas/corstone500.yml index d40b59df..c27cb5f5 100644 --- a/kas/corstone500.yml +++ b/kas/corstone500.yml @@ -3,6 +3,9 @@ header: includes: - kas/fvp-eula.yml +env: + DISPLAY: "" + distro: poky-tiny defaults: diff --git a/kas/fvp-baser-aemv8r64-bsp.yml b/kas/fvp-baser-aemv8r64-bsp.yml index 9f16a3f9..366ab87e 100644 --- a/kas/fvp-baser-aemv8r64-bsp.yml +++ b/kas/fvp-baser-aemv8r64-bsp.yml @@ -3,6 +3,9 @@ header: includes: - kas/fvp-eula.yml +env: + DISPLAY: "" + distro: poky machine: fvp-baser-aemv8r64