From 8f882fef12e0dc7fe8de86a11e4507f912c1d760 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 20:26:52 +0900 Subject: [PATCH 01/10] crosstool-ng: Pull in SRC_CUSTOM mutual exclusivity patch This commit pulls in the crosstool-ng patch to make package `SRC_CUSTOM` option mutually exclusive with `SRC_RELEASE` and `SRC_DEVEL`. Signed-off-by: Stephanos Ioannidis --- crosstool-ng | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crosstool-ng b/crosstool-ng index 063fff25..3e76b345 160000 --- a/crosstool-ng +++ b/crosstool-ng @@ -1 +1 @@ -Subproject commit 063fff25ef9b89116eeff2a4d8312e68a0a0acf6 +Subproject commit 3e76b3453b9c68d6d6d6b3ee0155668a2202f34b From 670072379675605db88a2784667725151d107d29 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 18:19:38 +0900 Subject: [PATCH 02/10] configs: Remove CT_LOCAL_TARBALLS_DIR configuration The `CT_LOCAL_TARBALLS_DIR` configuration is build environment-specific and should not be specified as a part of the toolchain configurations. This configuration is specified by the CI script according to the CI build environment. Signed-off-by: Stephanos Ioannidis --- configs/aarch64-zephyr-elf.config | 1 - configs/arc-zephyr-elf.config | 1 - configs/arc64-zephyr-elf.config | 1 - configs/arm-zephyr-eabi.config | 1 - configs/mips-zephyr-elf.config | 1 - configs/nios2-zephyr-elf.config | 1 - configs/riscv64-zephyr-elf.config | 1 - configs/sparc-zephyr-elf.config | 1 - configs/x86_64-zephyr-elf.config | 1 - configs/xtensa-intel_apl_adsp_zephyr-elf.config | 1 - configs/xtensa-intel_bdw_adsp_zephyr-elf.config | 1 - configs/xtensa-intel_byt_adsp_zephyr-elf.config | 1 - configs/xtensa-intel_s1000_zephyr-elf.config | 1 - configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config | 1 - configs/xtensa-nxp_imx_adsp_zephyr-elf.config | 1 - configs/xtensa-sample_controller_zephyr-elf.config | 1 - 16 files changed, 16 deletions(-) diff --git a/configs/aarch64-zephyr-elf.config b/configs/aarch64-zephyr-elf.config index 1f5afd93..67410f5b 100644 --- a/configs/aarch64-zephyr-elf.config +++ b/configs/aarch64-zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_ARM=y diff --git a/configs/arc-zephyr-elf.config b/configs/arc-zephyr-elf.config index 18c8a7eb..28790871 100644 --- a/configs/arc-zephyr-elf.config +++ b/configs/arc-zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_ARC=y diff --git a/configs/arc64-zephyr-elf.config b/configs/arc64-zephyr-elf.config index 7306e29d..82de8367 100644 --- a/configs/arc64-zephyr-elf.config +++ b/configs/arc64-zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set CT_PATCH_BUNDLED_LOCAL=y CT_LOCAL_PATCH_DIR="${CT_TOP_DIR}/../../patches-arc64" diff --git a/configs/arm-zephyr-eabi.config b/configs/arm-zephyr-eabi.config index f2d62c3a..ede30ca7 100644 --- a/configs/arm-zephyr-eabi.config +++ b/configs/arm-zephyr-eabi.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_ARM=y diff --git a/configs/mips-zephyr-elf.config b/configs/mips-zephyr-elf.config index 042b0091..cff89649 100644 --- a/configs/mips-zephyr-elf.config +++ b/configs/mips-zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_MIPS=y diff --git a/configs/nios2-zephyr-elf.config b/configs/nios2-zephyr-elf.config index 154f5792..2f3b40eb 100644 --- a/configs/nios2-zephyr-elf.config +++ b/configs/nios2-zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_NIOS2=y diff --git a/configs/riscv64-zephyr-elf.config b/configs/riscv64-zephyr-elf.config index 6c7cdc41..5371455d 100644 --- a/configs/riscv64-zephyr-elf.config +++ b/configs/riscv64-zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_RISCV=y diff --git a/configs/sparc-zephyr-elf.config b/configs/sparc-zephyr-elf.config index 57ff84fb..11ea9b69 100644 --- a/configs/sparc-zephyr-elf.config +++ b/configs/sparc-zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_SPARC=y diff --git a/configs/x86_64-zephyr-elf.config b/configs/x86_64-zephyr-elf.config index 126cdc3c..7e2f839f 100644 --- a/configs/x86_64-zephyr-elf.config +++ b/configs/x86_64-zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_X86=y diff --git a/configs/xtensa-intel_apl_adsp_zephyr-elf.config b/configs/xtensa-intel_apl_adsp_zephyr-elf.config index 8d9615c2..e5aed5a1 100644 --- a/configs/xtensa-intel_apl_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_apl_adsp_zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_XTENSA=y diff --git a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config index fb384e8a..7b986ef8 100644 --- a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_XTENSA=y diff --git a/configs/xtensa-intel_byt_adsp_zephyr-elf.config b/configs/xtensa-intel_byt_adsp_zephyr-elf.config index 79134d22..0b5e137f 100644 --- a/configs/xtensa-intel_byt_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_byt_adsp_zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_XTENSA=y diff --git a/configs/xtensa-intel_s1000_zephyr-elf.config b/configs/xtensa-intel_s1000_zephyr-elf.config index e5e6bd65..ab3b9dd6 100644 --- a/configs/xtensa-intel_s1000_zephyr-elf.config +++ b/configs/xtensa-intel_s1000_zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_XTENSA=y diff --git a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config index c84a53c0..883a8fc3 100644 --- a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_XTENSA=y diff --git a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config index d083f2cf..f0b2fa04 100644 --- a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_XTENSA=y diff --git a/configs/xtensa-sample_controller_zephyr-elf.config b/configs/xtensa-sample_controller_zephyr-elf.config index 5b213470..78c9c3cf 100644 --- a/configs/xtensa-sample_controller_zephyr-elf.config +++ b/configs/xtensa-sample_controller_zephyr-elf.config @@ -1,6 +1,5 @@ CT_CONFIG_VERSION="3" CT_EXPERIMENTAL=y -CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources" # CT_PREFIX_DIR_RO is not set # CT_LOG_PROGRESS_BAR is not set CT_ARCH_XTENSA=y From 3f073aba367b8ecd40a289b1c7cc0dabadca07a5 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 18:35:56 +0900 Subject: [PATCH 03/10] binutils: Add Git submodule This commit adds a Git submodule for the binutils pointing to the commit c7d30a54fc17c1e9d9b1c39c7623222442c63af8. Signed-off-by: Stephanos Ioannidis --- .gitmodules | 3 +++ binutils | 1 + 2 files changed, 4 insertions(+) create mode 160000 binutils diff --git a/.gitmodules b/.gitmodules index 79324fa8..af0827a5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "crosstool-ng"] path = crosstool-ng url = https://github.com/zephyrproject-rtos/crosstool-ng.git +[submodule "binutils"] + path = binutils + url = https://github.com/zephyrproject-rtos/binutils-gdb.git diff --git a/binutils b/binutils new file mode 160000 index 00000000..c7d30a54 --- /dev/null +++ b/binutils @@ -0,0 +1 @@ +Subproject commit c7d30a54fc17c1e9d9b1c39c7623222442c63af8 From c7339ba8829bc29c95c332269c2c3dea708369c3 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 21:11:26 +0900 Subject: [PATCH 04/10] configs: Switch to binutils Git submodule This commit updates the toolchain configurations to use the binutils Git submodule. Signed-off-by: Stephanos Ioannidis --- configs/aarch64-zephyr-elf.config | 5 ++--- configs/arc-zephyr-elf.config | 5 ++--- configs/arc64-zephyr-elf.config | 6 ++++++ configs/arm-zephyr-eabi.config | 5 ++--- configs/mips-zephyr-elf.config | 5 ++--- configs/nios2-zephyr-elf.config | 5 ++--- configs/riscv64-zephyr-elf.config | 5 ++--- configs/sparc-zephyr-elf.config | 5 ++--- configs/x86_64-zephyr-elf.config | 5 ++--- configs/xtensa-intel_apl_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-intel_bdw_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-intel_byt_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-intel_s1000_zephyr-elf.config | 5 ++--- configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-nxp_imx_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-sample_controller_zephyr-elf.config | 5 ++--- 16 files changed, 36 insertions(+), 45 deletions(-) diff --git a/configs/aarch64-zephyr-elf.config b/configs/aarch64-zephyr-elf.config index 67410f5b..81501464 100644 --- a/configs/aarch64-zephyr-elf.config +++ b/configs/aarch64-zephyr-elf.config @@ -6,9 +6,8 @@ CT_ARCH_ARM=y CT_MULTILIB=y CT_ARCH_64=y CT_TARGET_VENDOR="zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/arc-zephyr-elf.config b/configs/arc-zephyr-elf.config index 28790871..ebd0cd9a 100644 --- a/configs/arc-zephyr-elf.config +++ b/configs/arc-zephyr-elf.config @@ -6,9 +6,8 @@ CT_ARCH_ARC=y CT_MULTILIB=y CT_TARGET_CFLAGS="-mno-sdata" CT_TARGET_VENDOR="zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/arc64-zephyr-elf.config b/configs/arc64-zephyr-elf.config index 82de8367..def9edd3 100644 --- a/configs/arc64-zephyr-elf.config +++ b/configs/arc64-zephyr-elf.config @@ -8,9 +8,15 @@ CT_ARCH_ARC=y CT_MULTILIB=y CT_ARCH_64=y CT_TARGET_VENDOR="zephyr" +# FIXME: ARC64 binutils has a non-global patch (in patches-arc64), so we must +# use SRC_DEVEL to ensure that the patch gets applied. Eventually, the +# ARC64 binutils patch should be reworked so that it can be merged into +# the current Zephyr binutils branch without affecting other archs. CT_BINUTILS_SRC_DEVEL=y CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +# CT_BINUTILS_SRC_CUSTOM=y +# CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/arm-zephyr-eabi.config b/configs/arm-zephyr-eabi.config index ede30ca7..42e346a9 100644 --- a/configs/arm-zephyr-eabi.config +++ b/configs/arm-zephyr-eabi.config @@ -6,9 +6,8 @@ CT_ARCH_ARM=y CT_ARCH_ARM_INTERWORKING=y CT_MULTILIB=y CT_TARGET_VENDOR="zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/mips-zephyr-elf.config b/configs/mips-zephyr-elf.config index cff89649..dcdbbf1e 100644 --- a/configs/mips-zephyr-elf.config +++ b/configs/mips-zephyr-elf.config @@ -6,9 +6,8 @@ CT_ARCH_MIPS=y CT_MULTILIB=y CT_TARGET_CFLAGS="-G0 -mno-gpopt" CT_TARGET_VENDOR="zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/nios2-zephyr-elf.config b/configs/nios2-zephyr-elf.config index 2f3b40eb..a9b32fc1 100644 --- a/configs/nios2-zephyr-elf.config +++ b/configs/nios2-zephyr-elf.config @@ -6,9 +6,8 @@ CT_ARCH_NIOS2=y CT_MULTILIB=y CT_ARCH_USE_MMU=y CT_TARGET_VENDOR="zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/riscv64-zephyr-elf.config b/configs/riscv64-zephyr-elf.config index 5371455d..7907735b 100644 --- a/configs/riscv64-zephyr-elf.config +++ b/configs/riscv64-zephyr-elf.config @@ -8,9 +8,8 @@ CT_ARCH_64=y CT_ARCH_ARCH="rv32ima" CT_ARCH_ABI="ilp32" CT_TARGET_VENDOR="zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/sparc-zephyr-elf.config b/configs/sparc-zephyr-elf.config index 11ea9b69..aafb6588 100644 --- a/configs/sparc-zephyr-elf.config +++ b/configs/sparc-zephyr-elf.config @@ -5,9 +5,8 @@ CT_EXPERIMENTAL=y CT_ARCH_SPARC=y CT_MULTILIB=y CT_TARGET_VENDOR="zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/x86_64-zephyr-elf.config b/configs/x86_64-zephyr-elf.config index 7e2f839f..ece88fe9 100644 --- a/configs/x86_64-zephyr-elf.config +++ b/configs/x86_64-zephyr-elf.config @@ -6,9 +6,8 @@ CT_ARCH_X86=y CT_MULTILIB=y CT_ARCH_64=y CT_TARGET_VENDOR="zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_BINUTILS_EXTRA_CONFIG_ARRAY="--enable-targets=x86_64-pep" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" diff --git a/configs/xtensa-intel_apl_adsp_zephyr-elf.config b/configs/xtensa-intel_apl_adsp_zephyr-elf.config index e5aed5a1..7c892ff5 100644 --- a/configs/xtensa-intel_apl_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_apl_adsp_zephyr-elf.config @@ -8,9 +8,8 @@ CT_XTENSA_CUSTOM=y CT_OVERLAY_NAME="intel_apl_adsp" CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="intel_apl_adsp_zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config index 7b986ef8..133f7202 100644 --- a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config @@ -8,9 +8,8 @@ CT_XTENSA_CUSTOM=y CT_OVERLAY_NAME="intel_bdw_adsp" CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="intel_bdw_adsp_zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/xtensa-intel_byt_adsp_zephyr-elf.config b/configs/xtensa-intel_byt_adsp_zephyr-elf.config index 0b5e137f..60b0a5b9 100644 --- a/configs/xtensa-intel_byt_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_byt_adsp_zephyr-elf.config @@ -8,9 +8,8 @@ CT_XTENSA_CUSTOM=y CT_OVERLAY_NAME="intel_byt_adsp" CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="intel_byt_adsp_zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/xtensa-intel_s1000_zephyr-elf.config b/configs/xtensa-intel_s1000_zephyr-elf.config index ab3b9dd6..6282435b 100644 --- a/configs/xtensa-intel_s1000_zephyr-elf.config +++ b/configs/xtensa-intel_s1000_zephyr-elf.config @@ -7,9 +7,8 @@ CT_XTENSA_CUSTOM=y CT_OVERLAY_NAME="intel_s1000" CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="intel_s1000_zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config index 883a8fc3..e0f587de 100644 --- a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config @@ -8,9 +8,8 @@ CT_XTENSA_CUSTOM=y CT_OVERLAY_NAME="nxp_imx8m_adsp" CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="nxp_imx8m_adsp_zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config index f0b2fa04..7b85d91d 100644 --- a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config @@ -8,9 +8,8 @@ CT_XTENSA_CUSTOM=y CT_OVERLAY_NAME="nxp_imx_adsp" CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="nxp_imx_adsp_zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" diff --git a/configs/xtensa-sample_controller_zephyr-elf.config b/configs/xtensa-sample_controller_zephyr-elf.config index 78c9c3cf..6311c353 100644 --- a/configs/xtensa-sample_controller_zephyr-elf.config +++ b/configs/xtensa-sample_controller_zephyr-elf.config @@ -7,9 +7,8 @@ CT_XTENSA_CUSTOM=y CT_OVERLAY_NAME="sample_controller" CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="sample_controller_zephyr" -CT_BINUTILS_SRC_DEVEL=y -CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" +CT_BINUTILS_SRC_CUSTOM=y +CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" From 29a1c0cf5377fb589a3c812c7db96c080775e979 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 18:38:11 +0900 Subject: [PATCH 05/10] newlib: Add Git submodule This commit adds a Git submodule for the newlib pointing to the commit 2893dbb10f1fe3bf431a26f89a22e12a5020dc02. Signed-off-by: Stephanos Ioannidis --- .gitmodules | 3 +++ newlib | 1 + 2 files changed, 4 insertions(+) create mode 160000 newlib diff --git a/.gitmodules b/.gitmodules index af0827a5..12a6ec79 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "binutils"] path = binutils url = https://github.com/zephyrproject-rtos/binutils-gdb.git +[submodule "newlib"] + path = newlib + url = https://github.com/zephyrproject-rtos/newlib-cygwin.git diff --git a/newlib b/newlib new file mode 160000 index 00000000..2893dbb1 --- /dev/null +++ b/newlib @@ -0,0 +1 @@ +Subproject commit 2893dbb10f1fe3bf431a26f89a22e12a5020dc02 From dcf5dff4bfb91ad6e68a65a73b19df3530c1d4c5 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 21:13:45 +0900 Subject: [PATCH 06/10] configs: Switch to newlib Git submodule This commit updates the toolchain configurations to use the newlib Git submodule. Signed-off-by: Stephanos Ioannidis --- configs/aarch64-zephyr-elf.config | 10 ++++------ configs/arc-zephyr-elf.config | 10 ++++------ configs/arc64-zephyr-elf.config | 10 ++++------ configs/arm-zephyr-eabi.config | 10 ++++------ configs/mips-zephyr-elf.config | 10 ++++------ configs/nios2-zephyr-elf.config | 10 ++++------ configs/riscv64-zephyr-elf.config | 10 ++++------ configs/sparc-zephyr-elf.config | 10 ++++------ configs/x86_64-zephyr-elf.config | 10 ++++------ configs/xtensa-intel_apl_adsp_zephyr-elf.config | 10 ++++------ configs/xtensa-intel_bdw_adsp_zephyr-elf.config | 10 ++++------ configs/xtensa-intel_byt_adsp_zephyr-elf.config | 10 ++++------ configs/xtensa-intel_s1000_zephyr-elf.config | 10 ++++------ configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config | 10 ++++------ configs/xtensa-nxp_imx_adsp_zephyr-elf.config | 10 ++++------ configs/xtensa-sample_controller_zephyr-elf.config | 10 ++++------ 16 files changed, 64 insertions(+), 96 deletions(-) diff --git a/configs/aarch64-zephyr-elf.config b/configs/aarch64-zephyr-elf.config index 81501464..470962da 100644 --- a/configs/aarch64-zephyr-elf.config +++ b/configs/aarch64-zephyr-elf.config @@ -8,9 +8,8 @@ CT_ARCH_64=y CT_TARGET_VENDOR="zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -38,9 +37,8 @@ CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_GDB_CROSS_EXTRA_CONFIG_ARRAY="--enable-targets=arm-zephyr-eabi" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/arc-zephyr-elf.config b/configs/arc-zephyr-elf.config index ebd0cd9a..9be89fa6 100644 --- a/configs/arc-zephyr-elf.config +++ b/configs/arc-zephyr-elf.config @@ -8,9 +8,8 @@ CT_TARGET_CFLAGS="-mno-sdata" CT_TARGET_VENDOR="zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -37,9 +36,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/arc64-zephyr-elf.config b/configs/arc64-zephyr-elf.config index def9edd3..285660f6 100644 --- a/configs/arc64-zephyr-elf.config +++ b/configs/arc64-zephyr-elf.config @@ -17,9 +17,8 @@ CT_BINUTILS_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_BINUTILS_DEVEL_REVISION="c7d30a54fc17c1e9d9b1c39c7623222442c63af8" # CT_BINUTILS_SRC_CUSTOM=y # CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -43,9 +42,8 @@ CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-arra CT_CC_LANG_CXX=y # CT_DEBUG_GDB is not set CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/arm-zephyr-eabi.config b/configs/arm-zephyr-eabi.config index 42e346a9..40ec4c0d 100644 --- a/configs/arm-zephyr-eabi.config +++ b/configs/arm-zephyr-eabi.config @@ -8,9 +8,8 @@ CT_MULTILIB=y CT_TARGET_VENDOR="zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -38,9 +37,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y CT_LIBC_NEWLIB_NANO_TARGET_CFLAGS="-mthumb-interwork" diff --git a/configs/mips-zephyr-elf.config b/configs/mips-zephyr-elf.config index dcdbbf1e..12deebd9 100644 --- a/configs/mips-zephyr-elf.config +++ b/configs/mips-zephyr-elf.config @@ -8,9 +8,8 @@ CT_TARGET_CFLAGS="-G0 -mno-gpopt" CT_TARGET_VENDOR="zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -37,9 +36,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/nios2-zephyr-elf.config b/configs/nios2-zephyr-elf.config index a9b32fc1..cb40a47e 100644 --- a/configs/nios2-zephyr-elf.config +++ b/configs/nios2-zephyr-elf.config @@ -8,9 +8,8 @@ CT_ARCH_USE_MMU=y CT_TARGET_VENDOR="zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -37,9 +36,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/riscv64-zephyr-elf.config b/configs/riscv64-zephyr-elf.config index 7907735b..240df189 100644 --- a/configs/riscv64-zephyr-elf.config +++ b/configs/riscv64-zephyr-elf.config @@ -10,9 +10,8 @@ CT_ARCH_ABI="ilp32" CT_TARGET_VENDOR="zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -39,9 +38,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/sparc-zephyr-elf.config b/configs/sparc-zephyr-elf.config index aafb6588..1341cb55 100644 --- a/configs/sparc-zephyr-elf.config +++ b/configs/sparc-zephyr-elf.config @@ -7,9 +7,8 @@ CT_MULTILIB=y CT_TARGET_VENDOR="zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -36,9 +35,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/x86_64-zephyr-elf.config b/configs/x86_64-zephyr-elf.config index ece88fe9..5de437ea 100644 --- a/configs/x86_64-zephyr-elf.config +++ b/configs/x86_64-zephyr-elf.config @@ -9,9 +9,8 @@ CT_TARGET_VENDOR="zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" CT_BINUTILS_EXTRA_CONFIG_ARRAY="--enable-targets=x86_64-pep" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -39,9 +38,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/xtensa-intel_apl_adsp_zephyr-elf.config b/configs/xtensa-intel_apl_adsp_zephyr-elf.config index 7c892ff5..0c1a2de2 100644 --- a/configs/xtensa-intel_apl_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_apl_adsp_zephyr-elf.config @@ -10,9 +10,8 @@ CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="intel_apl_adsp_zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -39,9 +38,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config index 133f7202..800d97f0 100644 --- a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config @@ -10,9 +10,8 @@ CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="intel_bdw_adsp_zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -39,9 +38,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/xtensa-intel_byt_adsp_zephyr-elf.config b/configs/xtensa-intel_byt_adsp_zephyr-elf.config index 60b0a5b9..22746631 100644 --- a/configs/xtensa-intel_byt_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_byt_adsp_zephyr-elf.config @@ -10,9 +10,8 @@ CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="intel_byt_adsp_zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -39,9 +38,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/xtensa-intel_s1000_zephyr-elf.config b/configs/xtensa-intel_s1000_zephyr-elf.config index 6282435b..6200538f 100644 --- a/configs/xtensa-intel_s1000_zephyr-elf.config +++ b/configs/xtensa-intel_s1000_zephyr-elf.config @@ -9,9 +9,8 @@ CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="intel_s1000_zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -39,9 +38,8 @@ CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_GDB_CROSS_EXTRA_CONFIG_ARRAY="--enable-xtensa-use-target-regnum --disable-xtensa-remote-g-packet" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config index e0f587de..4228e26f 100644 --- a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config @@ -10,9 +10,8 @@ CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="nxp_imx8m_adsp_zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -39,9 +38,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config index 7b85d91d..f549503c 100644 --- a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config @@ -10,9 +10,8 @@ CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="nxp_imx_adsp_zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -39,9 +38,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set diff --git a/configs/xtensa-sample_controller_zephyr-elf.config b/configs/xtensa-sample_controller_zephyr-elf.config index 6311c353..a9e29b9b 100644 --- a/configs/xtensa-sample_controller_zephyr-elf.config +++ b/configs/xtensa-sample_controller_zephyr-elf.config @@ -9,9 +9,8 @@ CT_OVERLAY_LOCATION="./overlays" CT_TARGET_VENDOR="sample_controller_zephyr" CT_BINUTILS_SRC_CUSTOM=y CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils" -CT_NEWLIB_SRC_DEVEL=y -CT_NEWLIB_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_SRC_CUSTOM=y +CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2" # CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set CT_LIBC_NEWLIB_IO_C99FMT=y @@ -38,9 +37,8 @@ CT_GDB_SRC_DEVEL=y CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" CT_COMP_LIBS_NEWLIB_NANO=y -CT_NEWLIB_NANO_SRC_DEVEL=y -CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.git" -CT_NEWLIB_NANO_DEVEL_REVISION="2893dbb10f1fe3bf431a26f89a22e12a5020dc02" +CT_NEWLIB_NANO_SRC_CUSTOM=y +CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" CT_NEWLIB_NANO_GCC_LIBSTDCXX=y CT_NEWLIB_NANO_INSTALL_IN_TARGET=y # CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set From bf142d77262fb1ae8bdb12e98cb6f65773499bad Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 18:51:13 +0900 Subject: [PATCH 07/10] gcc: Add Git submodule This commit adds a Git submodule for the gcc pointing to the commit 8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf. Signed-off-by: Stephanos Ioannidis --- .gitmodules | 3 +++ gcc | 1 + 2 files changed, 4 insertions(+) create mode 160000 gcc diff --git a/.gitmodules b/.gitmodules index 12a6ec79..83a5495d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "newlib"] path = newlib url = https://github.com/zephyrproject-rtos/newlib-cygwin.git +[submodule "gcc"] + path = gcc + url = https://github.com/zephyrproject-rtos/gcc.git diff --git a/gcc b/gcc new file mode 160000 index 00000000..8c1f3dcc --- /dev/null +++ b/gcc @@ -0,0 +1 @@ +Subproject commit 8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf From f9b50511fadb90ff88cf9964a0d20fffc7fcefc2 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 21:19:15 +0900 Subject: [PATCH 08/10] configs: Switch to gcc Git submodule This commit updates the toolchain configurations to use the gcc Git submodule. Signed-off-by: Stephanos Ioannidis --- configs/aarch64-zephyr-elf.config | 6 ++---- configs/arc-zephyr-elf.config | 6 ++---- configs/arc64-zephyr-elf.config | 6 ++---- configs/arm-zephyr-eabi.config | 6 ++---- configs/mips-zephyr-elf.config | 6 ++---- configs/nios2-zephyr-elf.config | 6 ++---- configs/riscv64-zephyr-elf.config | 6 ++---- configs/sparc-zephyr-elf.config | 6 ++---- configs/x86_64-zephyr-elf.config | 6 ++---- configs/xtensa-intel_apl_adsp_zephyr-elf.config | 6 ++---- configs/xtensa-intel_bdw_adsp_zephyr-elf.config | 6 ++---- configs/xtensa-intel_byt_adsp_zephyr-elf.config | 6 ++---- configs/xtensa-intel_s1000_zephyr-elf.config | 6 ++---- configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config | 6 ++---- configs/xtensa-nxp_imx_adsp_zephyr-elf.config | 6 ++---- configs/xtensa-sample_controller_zephyr-elf.config | 6 ++---- 16 files changed, 32 insertions(+), 64 deletions(-) diff --git a/configs/aarch64-zephyr-elf.config b/configs/aarch64-zephyr-elf.config index 470962da..3628f30c 100644 --- a/configs/aarch64-zephyr-elf.config +++ b/configs/aarch64-zephyr-elf.config @@ -25,10 +25,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/arc-zephyr-elf.config b/configs/arc-zephyr-elf.config index 9be89fa6..dbda4129 100644 --- a/configs/arc-zephyr-elf.config +++ b/configs/arc-zephyr-elf.config @@ -25,10 +25,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/arc64-zephyr-elf.config b/configs/arc64-zephyr-elf.config index 285660f6..108c23fa 100644 --- a/configs/arc64-zephyr-elf.config +++ b/configs/arc64-zephyr-elf.config @@ -34,10 +34,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB is not set diff --git a/configs/arm-zephyr-eabi.config b/configs/arm-zephyr-eabi.config index 40ec4c0d..d9f36231 100644 --- a/configs/arm-zephyr-eabi.config +++ b/configs/arm-zephyr-eabi.config @@ -25,10 +25,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_GCC_MULTILIB_LIST="rmprofile" CT_CC_LANG_CXX=y diff --git a/configs/mips-zephyr-elf.config b/configs/mips-zephyr-elf.config index 12deebd9..911a604c 100644 --- a/configs/mips-zephyr-elf.config +++ b/configs/mips-zephyr-elf.config @@ -25,10 +25,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/nios2-zephyr-elf.config b/configs/nios2-zephyr-elf.config index cb40a47e..279a6e73 100644 --- a/configs/nios2-zephyr-elf.config +++ b/configs/nios2-zephyr-elf.config @@ -25,10 +25,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/riscv64-zephyr-elf.config b/configs/riscv64-zephyr-elf.config index 240df189..f8058537 100644 --- a/configs/riscv64-zephyr-elf.config +++ b/configs/riscv64-zephyr-elf.config @@ -27,10 +27,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/sparc-zephyr-elf.config b/configs/sparc-zephyr-elf.config index 1341cb55..a5f41b13 100644 --- a/configs/sparc-zephyr-elf.config +++ b/configs/sparc-zephyr-elf.config @@ -24,10 +24,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/x86_64-zephyr-elf.config b/configs/x86_64-zephyr-elf.config index 5de437ea..1880b602 100644 --- a/configs/x86_64-zephyr-elf.config +++ b/configs/x86_64-zephyr-elf.config @@ -26,10 +26,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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 --with-cpu-32=i586 --with-arch-32=i586 --with-cpu-64=generic --with-arch-64=x86-64" # CT_CC_GCC_LIBMPX is not set CT_CC_LANG_CXX=y diff --git a/configs/xtensa-intel_apl_adsp_zephyr-elf.config b/configs/xtensa-intel_apl_adsp_zephyr-elf.config index 0c1a2de2..754212b2 100644 --- a/configs/xtensa-intel_apl_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_apl_adsp_zephyr-elf.config @@ -27,10 +27,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config index 800d97f0..ed76cc2d 100644 --- a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config @@ -27,10 +27,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/xtensa-intel_byt_adsp_zephyr-elf.config b/configs/xtensa-intel_byt_adsp_zephyr-elf.config index 22746631..8da30afe 100644 --- a/configs/xtensa-intel_byt_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_byt_adsp_zephyr-elf.config @@ -27,10 +27,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/xtensa-intel_s1000_zephyr-elf.config b/configs/xtensa-intel_s1000_zephyr-elf.config index 6200538f..0b27e11e 100644 --- a/configs/xtensa-intel_s1000_zephyr-elf.config +++ b/configs/xtensa-intel_s1000_zephyr-elf.config @@ -26,10 +26,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config index 4228e26f..57910949 100644 --- a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config @@ -27,10 +27,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config index f549503c..c395eec0 100644 --- a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config @@ -27,10 +27,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y diff --git a/configs/xtensa-sample_controller_zephyr-elf.config b/configs/xtensa-sample_controller_zephyr-elf.config index a9e29b9b..73cb8912 100644 --- a/configs/xtensa-sample_controller_zephyr-elf.config +++ b/configs/xtensa-sample_controller_zephyr-elf.config @@ -26,10 +26,8 @@ CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y # CT_LIBC_NEWLIB_NANO_MALLOC is not set # CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set CT_LIBC_NEWLIB_EXTRA_SECTIONS=y -CT_GCC_SRC_DEVEL=y -CT_GCC_DEVEL_VCS_git=y -CT_GCC_DEVEL_URL="https://github.com/zephyrproject-rtos/gcc.git" -CT_GCC_DEVEL_REVISION="8c1f3dcc6eddf3392d77f56c9bed69e5d6446cdf" +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_DEBUG_GDB=y From f0ffee8e52511a5c555ed6407e91c571d96f0b43 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 18:57:07 +0900 Subject: [PATCH 09/10] gdb: Add Git submodule This commit adds a Git submodule for the gdb pointing to the commit 8dc5ea2c613782deec380bbad4067e846b0f217e. Signed-off-by: Stephanos Ioannidis --- .gitmodules | 3 +++ gdb | 1 + 2 files changed, 4 insertions(+) create mode 160000 gdb diff --git a/.gitmodules b/.gitmodules index 83a5495d..0feddbdf 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "gcc"] path = gcc url = https://github.com/zephyrproject-rtos/gcc.git +[submodule "gdb"] + path = gdb + url = https://github.com/zephyrproject-rtos/binutils-gdb.git diff --git a/gdb b/gdb new file mode 160000 index 00000000..8dc5ea2c --- /dev/null +++ b/gdb @@ -0,0 +1 @@ +Subproject commit 8dc5ea2c613782deec380bbad4067e846b0f217e From 279c9121f5f8be34c7b28be222f5f4f7c5bb9ccb Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 15 Mar 2022 21:21:23 +0900 Subject: [PATCH 10/10] configs: Switch to gdb Git submodule This commit updates the toolchain configurations to use the gdb Git submodule. Signed-off-by: Stephanos Ioannidis --- configs/aarch64-zephyr-elf.config | 5 ++--- configs/arc-zephyr-elf.config | 5 ++--- configs/arm-zephyr-eabi.config | 5 ++--- configs/mips-zephyr-elf.config | 5 ++--- configs/nios2-zephyr-elf.config | 5 ++--- configs/riscv64-zephyr-elf.config | 5 ++--- configs/sparc-zephyr-elf.config | 5 ++--- configs/x86_64-zephyr-elf.config | 5 ++--- configs/xtensa-intel_apl_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-intel_bdw_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-intel_byt_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-intel_s1000_zephyr-elf.config | 5 ++--- configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-nxp_imx_adsp_zephyr-elf.config | 5 ++--- configs/xtensa-sample_controller_zephyr-elf.config | 5 ++--- 15 files changed, 30 insertions(+), 45 deletions(-) diff --git a/configs/aarch64-zephyr-elf.config b/configs/aarch64-zephyr-elf.config index 3628f30c..495960ac 100644 --- a/configs/aarch64-zephyr-elf.config +++ b/configs/aarch64-zephyr-elf.config @@ -30,9 +30,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_GDB_CROSS_EXTRA_CONFIG_ARRAY="--enable-targets=arm-zephyr-eabi" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y diff --git a/configs/arc-zephyr-elf.config b/configs/arc-zephyr-elf.config index dbda4129..01a21cab 100644 --- a/configs/arc-zephyr-elf.config +++ b/configs/arc-zephyr-elf.config @@ -30,9 +30,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/arm-zephyr-eabi.config b/configs/arm-zephyr-eabi.config index d9f36231..1652457e 100644 --- a/configs/arm-zephyr-eabi.config +++ b/configs/arm-zephyr-eabi.config @@ -31,9 +31,8 @@ CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-arra CT_CC_GCC_MULTILIB_LIST="rmprofile" CT_CC_LANG_CXX=y CT_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/mips-zephyr-elf.config b/configs/mips-zephyr-elf.config index 911a604c..9642bca8 100644 --- a/configs/mips-zephyr-elf.config +++ b/configs/mips-zephyr-elf.config @@ -30,9 +30,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/nios2-zephyr-elf.config b/configs/nios2-zephyr-elf.config index 279a6e73..a76f4510 100644 --- a/configs/nios2-zephyr-elf.config +++ b/configs/nios2-zephyr-elf.config @@ -30,9 +30,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/riscv64-zephyr-elf.config b/configs/riscv64-zephyr-elf.config index f8058537..549fc790 100644 --- a/configs/riscv64-zephyr-elf.config +++ b/configs/riscv64-zephyr-elf.config @@ -32,9 +32,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/sparc-zephyr-elf.config b/configs/sparc-zephyr-elf.config index a5f41b13..1554b1cb 100644 --- a/configs/sparc-zephyr-elf.config +++ b/configs/sparc-zephyr-elf.config @@ -29,9 +29,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/x86_64-zephyr-elf.config b/configs/x86_64-zephyr-elf.config index 1880b602..8dd1d527 100644 --- a/configs/x86_64-zephyr-elf.config +++ b/configs/x86_64-zephyr-elf.config @@ -32,9 +32,8 @@ CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-arra # CT_CC_GCC_LIBMPX is not set CT_CC_LANG_CXX=y CT_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/xtensa-intel_apl_adsp_zephyr-elf.config b/configs/xtensa-intel_apl_adsp_zephyr-elf.config index 754212b2..92ead2a9 100644 --- a/configs/xtensa-intel_apl_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_apl_adsp_zephyr-elf.config @@ -32,9 +32,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config index ed76cc2d..540eb333 100644 --- a/configs/xtensa-intel_bdw_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_bdw_adsp_zephyr-elf.config @@ -32,9 +32,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/xtensa-intel_byt_adsp_zephyr-elf.config b/configs/xtensa-intel_byt_adsp_zephyr-elf.config index 8da30afe..7cc9d25a 100644 --- a/configs/xtensa-intel_byt_adsp_zephyr-elf.config +++ b/configs/xtensa-intel_byt_adsp_zephyr-elf.config @@ -32,9 +32,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/xtensa-intel_s1000_zephyr-elf.config b/configs/xtensa-intel_s1000_zephyr-elf.config index 0b27e11e..9ca87acb 100644 --- a/configs/xtensa-intel_s1000_zephyr-elf.config +++ b/configs/xtensa-intel_s1000_zephyr-elf.config @@ -31,9 +31,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_GDB_CROSS_EXTRA_CONFIG_ARRAY="--enable-xtensa-use-target-regnum --disable-xtensa-remote-g-packet" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y diff --git a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config index 57910949..ef350e7b 100644 --- a/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx8m_adsp_zephyr-elf.config @@ -32,9 +32,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config index c395eec0..423f4619 100644 --- a/configs/xtensa-nxp_imx_adsp_zephyr-elf.config +++ b/configs/xtensa-nxp_imx_adsp_zephyr-elf.config @@ -32,9 +32,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib" diff --git a/configs/xtensa-sample_controller_zephyr-elf.config b/configs/xtensa-sample_controller_zephyr-elf.config index 73cb8912..e38b1933 100644 --- a/configs/xtensa-sample_controller_zephyr-elf.config +++ b/configs/xtensa-sample_controller_zephyr-elf.config @@ -31,9 +31,8 @@ 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_DEBUG_GDB=y -CT_GDB_SRC_DEVEL=y -CT_GDB_DEVEL_URL="https://github.com/zephyrproject-rtos/binutils-gdb.git" -CT_GDB_DEVEL_REVISION="8dc5ea2c613782deec380bbad4067e846b0f217e" +CT_GDB_SRC_CUSTOM=y +CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb" CT_COMP_LIBS_NEWLIB_NANO=y CT_NEWLIB_NANO_SRC_CUSTOM=y CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib"