From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 11 Jul 2024 13:01:50 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sRrYc-003jY2-30 for lore@lore.pengutronix.de; Thu, 11 Jul 2024 13:01:50 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sRrYc-0001s0-EO; Thu, 11 Jul 2024 13:01:50 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sRrYX-0001q0-3C; Thu, 11 Jul 2024 13:01:45 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRrYW-008kHS-N7; Thu, 11 Jul 2024 13:01:44 +0200 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1sRrYW-001yQ6-1y; Thu, 11 Jul 2024 13:01:44 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Thu, 11 Jul 2024 13:01:43 +0200 Message-Id: <20240711110143.470379-4-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240711110143.470379-1-a.fatoum@pengutronix.de> References: <20240711110143.470379-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 4/4] v7a: barebox: am335x-mlo: document some unusual kconfig options X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false While we generally prefer ARM-optimized string/memory routines and support of GPT in barebox, the MLO configuration is special: It's size constrained by having to run from on-chip SRAM and it need only worry about loading barebox from the same partition the MLO came from. Therefore leave the configuration as-is, but explain the choices made. Signed-off-by: Ahmad Fatoum --- configs/bsp.ref | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/configs/bsp.ref b/configs/bsp.ref index b7077411c2dd..5b5b4a763b15 100644 --- a/configs/bsp.ref +++ b/configs/bsp.ref @@ -45,6 +45,32 @@ optee_disabled_features: - CFG_ENABLE_EMBEDDED_TESTS - CFG_TEE_CORE_TA_TRACE +barebox_arm_optimized_string_functions: + description: | + The use of assembler optimized memcpy / memset functions improves + throughput at the cost of an increase in binary size. + The am335x-mlo configuration is very size constrained, because it + needs to fit into on-chip SRAM to be able to set up DRAM and thus + we use the smaller C implementation instead. + variants: + - condition: kconfig.BareboxConfig()['ARCH_OMAP'] and kconfig.BareboxConfig()['SHELL_NONE'] + value: False + - value: True + +barebox_gpt_support: + description: | + The am335x boot ROM expects SD/MMC media to be formatted as MBR + and loads the first stage bootloader from the BOOT.BIN file from the + first vfat partition. As the MLO + + As the am335x-mlo configuration's only function is to chainload + barebox, we only need GPT support later on in the second stage + barebox-am335x configuration. + variants: + - condition: kconfig.BareboxConfig()['ARCH_OMAP'] and kconfig.BareboxConfig()['SHELL_NONE'] + value: False + - value: True + rootfs_unused_libraries: description: | - libatomic is needed on mips and rpi1 by libcrypto, but for simplicity ship it on all platforms -- 2.39.2