From: Alexander Graf Date: Thu, 21 Feb 2019 12:47:04 +0100 Subject: [U-Boot] [PATCH 3/9] SPL: read and store arch property from U-Boot image In-Reply-To: <20190221013034.9099-4-andre.przywara@arm.com> References: <20190221013034.9099-1-andre.przywara@arm.com> <20190221013034.9099-4-andre.przywara@arm.com> Message-ID: <65faab28-99fa-d54f-1bed-a0b6635197e7@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/21/2019 02:30 AM, Andre Przywara wrote: > Read the specified "arch" value from a legacy or FIT U-Boot image and > store it in our SPL data structure. > This allows loaders to take the target architecture in account for > custom loading procedures. > Having the complete string -> arch mapping for FIT based images in the > SPL would be too big, so we leave it up to architectures (or boards) to > overwrite the weak function that does the actual translation, possibly > covering only the required subset there. > > Signed-off-by: Andre Przywara Reviewed-by: Alexander Graf I don't fully buy the argument that the generic mapping would be too big though. Realistically you should be able to get away with 1 or 2 branches per case, no? So that would be maybe 40 instructions? Alex