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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9CFCC433F5 for ; Fri, 15 Oct 2021 01:53:20 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 072AB611CC for ; Fri, 15 Oct 2021 01:53:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 072AB611CC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DDEA0837D4; Fri, 15 Oct 2021 03:53:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="SmYiaY8H"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="PfkzdPCB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 495B6837E8; Fri, 15 Oct 2021 03:53:15 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2908383774 for ; Fri, 15 Oct 2021 03:53:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E05515C010B; Thu, 14 Oct 2021 21:53:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 14 Oct 2021 21:53:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=ZaL/k9Wyg6d3P3Rn7148hu1OMM O5wQc+8WaBEt+aMxs=; b=SmYiaY8HhxoTMrbidzwoPC1l6Soj3p7Gy2RACocxKZ w2ECXOZC+b2+Iwb4apQlkrKATtAbmbLel6Wig7DxJ70SNLQQ307ifP/2hseQghzX nkph2oMh59U7XZArQDcqG3giQ7RPDZ5Mqj3lLrC7kOyTbzDIp9ULshBaQqIoK6Zd Z5DIAYo55qERss3F6nIqR0rnjUYrdOFt8N5Qr2DNtCn0AXh0XQyV+wTOm2dhyrNt H7Da6SycPpg5mhjd3ZDxltodmxIutqmcbo0E+DQhE3rikGUVWrGEMd89fkNFE5JD sTdZoQg4Yf2Hvpegx48YgApyRePipAJOmrR18yDyfV1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ZaL/k9Wyg6d3P3Rn7 148hu1OMMO5wQc+8WaBEt+aMxs=; b=PfkzdPCB8d6LGtQ+E+g91EofdtJGf124d rMQPJiWCsNLr5TNiD8jm3IajNOh6wm02hMlFqXBFPM+FLku8deCp8U4oCyKwqgFX yMKz4LD2q5U8Rzq8Rwd6rpzdv50jlnbqmYkbyTxF99zqY2YvNaGBejIRdX1NkT6i 2EIZNNeeJyB/8QvszRc52ilYWt7lijAVRYm6zhpFmXa6cCIg/unsshkrF/KigaOF UoEW3fj+847yuu4q8PURnscx/qwZIdDUI8nR6RxBC1e3dV7JvxcFR0iBoElv5ANs g3Sx/XEdRICV8f0qJbfmF83Q1RL50hCr/P6AGP/eByxl850+YJNaA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddufedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Oct 2021 21:53:09 -0400 (EDT) From: Samuel Holland To: u-boot@lists.denx.de, Jagan Teki , Andre Przywara Cc: Icenowy Zheng , Samuel Holland Subject: [PATCH v3 0/4] mkimage: sunxi_egon: add riscv support Date: Thu, 14 Oct 2021 20:53:03 -0500 Message-Id: <20211015015308.65265-1-samuel@sholland.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This patchset updates mkimage -T sunxi_egon to be able to generate an eGON.BT0 image for Allwinner RISC-V SoCs (e.g. D1). In addition, to keep the compatibility, it will still consider the architecture to be ARM when no architecture is specified. This v3 is a minor update to Icenowy's patch series, which I have also tested. Since the TOC0 patch series touches the same lines in Makefile.spl, it depends on this series. Changes in v3: - Factor out an egon_get_arch() function as suggested by Andre Icenowy Zheng (4): mkimage: add a flag to describe whether -A is specified mkimage: sunxi_egon: refactor for multi-architecture support mkimage: sunxi_egon: add support for riscv sunxi: specify architecture when generating SPL boot image scripts/Makefile.spl | 2 +- tools/imagetool.h | 1 + tools/mkimage.c | 1 + tools/sunxi_egon.c | 73 +++++++++++++++++++++++++++++++++++++++----- 4 files changed, 69 insertions(+), 8 deletions(-) -- 2.32.0