From patchwork Tue Feb 14 06:27:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Moessbauer X-Patchwork-Id: 13139982 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 21AEBC05027 for ; Tue, 14 Feb 2023 12:14:24 +0000 (UTC) Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by mx.groups.io with SMTP id smtpd.web11.924.1676356070969882140 for ; Mon, 13 Feb 2023 22:27:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=felix.moessbauer@siemens.com header.s=fm1 header.b=iEULtFmB; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.227, mailfrom: fm-72506-202302140627493004b8fa6f10304da5-i59aqd@rts-flowmailer.siemens.com) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 202302140627493004b8fa6f10304da5 for ; Tue, 14 Feb 2023 07:27:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=felix.moessbauer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=LmMPfiOEYL382rOy/Flrt2p72Ug5pHJo838aBYFPltw=; b=iEULtFmB4Rok4qWcXO8i8vyPi821nbQUWMAkiX3Cp0fm874z5JzwbyOJ4CuSYDpOQ8316l AxfioJoJN2XGPNsJD5k806BpH888Z077cBoEKsfI1ctQjN4fSvgLqtM/v7PD+W8CH6ZChRxk E6xFqseVLtW9e02rfPmCP3rDNr1wI=; From: Felix Moessbauer To: cip-dev@lists.cip-project.org Cc: daniel.bovensiepen@siemens.com, jan.kiszka@siemens.com, quirin.gylstorff@siemens.com, Felix Moessbauer Subject: [isar-cip-core][PATCH v2 2/3] wic(ebg): add support for riscv64 Date: Tue, 14 Feb 2023 06:27:29 +0000 Message-Id: <20230214062730.1636598-3-felix.moessbauer@siemens.com> In-Reply-To: <20230214062730.1636598-1-felix.moessbauer@siemens.com> References: <20230214062730.1636598-1-felix.moessbauer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-72506:519-21489:flowmailer 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 ; Tue, 14 Feb 2023 12:14:24 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/10698 This patch adds the mapping between the efi architecture and the distro architecture for riscv64. Signed-off-by: Felix Moessbauer --- scripts/lib/wic/plugins/source/efibootguard-boot.py | 6 ++++-- scripts/lib/wic/plugins/source/efibootguard-efi.py | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/lib/wic/plugins/source/efibootguard-boot.py b/scripts/lib/wic/plugins/source/efibootguard-boot.py index 3d6b2d7..0de28ca 100644 --- a/scripts/lib/wic/plugins/source/efibootguard-boot.py +++ b/scripts/lib/wic/plugins/source/efibootguard-boot.py @@ -185,13 +185,15 @@ class EfibootguardBootPlugin(SourcePlugin): "amd64": "x64", "arm64": "aa64", "armhf": "arm", - "i386": "ia32" + "i386": "ia32", + "riscv64" : "riscv64" } distro_to_lib_arch = { "amd64": "x86_64-linux-gnu", "arm64": "aarch64-linux-gnu", "armhf": "arm-linux-gnueabihf", - "i386": "i386-linux-gnu" + "i386": "i386-linux-gnu", + "riscv64": "riscv64-linux-gnu", } rootfs_path = rootfs_dir.get('ROOTFS_DIR') distro_arch = get_bitbake_var("DISTRO_ARCH") diff --git a/scripts/lib/wic/plugins/source/efibootguard-efi.py b/scripts/lib/wic/plugins/source/efibootguard-efi.py index 2d16fe3..d6cdf0f 100644 --- a/scripts/lib/wic/plugins/source/efibootguard-efi.py +++ b/scripts/lib/wic/plugins/source/efibootguard-efi.py @@ -56,14 +56,16 @@ class EfibootguardEFIPlugin(SourcePlugin): "amd64": "x64", "arm64": "aa64", "armhf": "arm", - "i386": "ia32" + "i386": "ia32", + "riscv64" : "riscv64" } distro_to_lib_arch = { "amd64": "x86_64-linux-gnu", "arm64": "aarch64-linux-gnu", "armhf": "arm-linux-gnueabihf", - "i386": "i386-linux-gnu" + "i386": "i386-linux-gnu", + "riscv64": "riscv64-linux-gnu", } distro_arch = get_bitbake_var("DISTRO_ARCH")