From dcd0aa0716b62bfb9ef8195ef665436118f3eaf9 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 12 Oct 2024 13:21:11 -0700 Subject: [PATCH 1/6] contrib: Show actual default build dir in linux_build_toolchain.sh Need to use BUILD_DIR instead of WORKSPACE as the latter hasn't been set at this point. Signed-off-by: Keith Packard --- contrib/linux_build_toolchain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 contrib/linux_build_toolchain.sh diff --git a/contrib/linux_build_toolchain.sh b/contrib/linux_build_toolchain.sh old mode 100644 new mode 100755 index d8fdeacf..1f72c6fa --- a/contrib/linux_build_toolchain.sh +++ b/contrib/linux_build_toolchain.sh @@ -21,7 +21,7 @@ function usage() echo " Default is ${SDK_DIR}" echo "" echo " -o Build directory, for building artifacts and final output. Optional." - echo " Default is ${WORKSPACE}" + echo " Default is ${BUILD_DIR}" echo "" echo " -h This help." echo "" From 1109992f4ec5ac878417bc578de1d638da462711 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 14 Oct 2024 14:08:40 -0700 Subject: [PATCH 2/6] contrib: Error out if ct-ng build fails Make sure we catch build failures. Signed-off-by: Keith Packard --- contrib/linux_build_toolchain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/linux_build_toolchain.sh b/contrib/linux_build_toolchain.sh index 1f72c6fa..5a5a9991 100755 --- a/contrib/linux_build_toolchain.sh +++ b/contrib/linux_build_toolchain.sh @@ -129,7 +129,7 @@ EOF "${CT_NG}" distclean "${CT_NG}" defconfig DEFCONFIG=build.config -"${CT_NG}" build +"${CT_NG}" build || exit 1 chmod -R u+w "${TOOLCHAIN_OUTPUT_DIR}" From 054bbe30a269876cf7c01856bfc94bbbf7cc255a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 13 Oct 2024 19:37:41 -0700 Subject: [PATCH 3/6] gcc: Add -enable-multilib-space support Merge GCC version with multilib-space support which adds -Os versions of every multilib configuration. Signed-off-by: Keith Packard --- gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc b/gcc index 428d8d7b..322a3214 160000 --- a/gcc +++ b/gcc @@ -1 +1 @@ -Subproject commit 428d8d7b0542338244ca41ac06a5f3fa4f29bb6d +Subproject commit 322a3214acb72428a324d73bc2c9baead21d5d58 From 773d25e13d7cab6bc1c098c8e6e2360cea9e3198 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 20 Oct 2024 15:39:47 -0700 Subject: [PATCH 4/6] picolibc: Pull in arc strchr fix Make sure arc builds in -O2 mode successfully. Signed-off-by: Keith Packard --- picolibc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picolibc b/picolibc index d492d5fa..1c73900b 160000 --- a/picolibc +++ b/picolibc @@ -1 +1 @@ -Subproject commit d492d5fa7c96918e37653f303028346bb0dd51a2 +Subproject commit 1c73900b79dbc02b80d09f5d637382249158e1ec From 1ef3344183049f215837f460c0d99048ae405515 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 13 Oct 2024 19:38:43 -0700 Subject: [PATCH 5/6] crosstool-ng: Add CT_MULTILIB_SPACE support This option passes --enable-multilib-space to gcc so that we get -Os versions of every multilib configuration. Signed-off-by: Keith Packard --- crosstool-ng | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crosstool-ng b/crosstool-ng index 53b5327d..299c9d07 160000 --- a/crosstool-ng +++ b/crosstool-ng @@ -1 +1 @@ -Subproject commit 53b5327d821a6b6949fa455f14a9631146af897c +Subproject commit 299c9d071cf396dfb8e1d2d426d5b4319c4f91ed From f68d9f5e7bcf397a30a7d5e082be022724976180 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 13 Oct 2024 19:39:44 -0700 Subject: [PATCH 6/6] Add CT_MULTILIB_SPACE=y to common.config This provides -Os versions of every toolchain library. Signed-off-by: Keith Packard --- configs/common.config | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/common.config b/configs/common.config index 9c317655..ae00e57b 100644 --- a/configs/common.config +++ b/configs/common.config @@ -17,6 +17,7 @@ CT_GCC_SRC_CUSTOM=y CT_GCC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gcc" CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array" CT_CC_LANG_CXX=y +CT_MULTILIB_SPACE=y # Newlib CT_NEWLIB_SRC_CUSTOM=y