From 2f11254ac362699b2e5b31d054fda62a324eff01 Mon Sep 17 00:00:00 2001 From: walkingeyerobot Date: Sat, 5 Jul 2025 01:13:42 -0400 Subject: [PATCH 1/2] update versions.json to fix build --- versions.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/versions.json b/versions.json index 4e70eb4..bc85d75 100644 --- a/versions.json +++ b/versions.json @@ -8,6 +8,14 @@ "comment": "tagType can be branch, tag or commithash", "tagType": "branch", "tag": "main" + }, + "llvm-project": { + "tagType": "tag", + "tag": "llvmorg-20.1.0" + }, + "picolibc": { + "tagType": "commithash", + "tag": "e3a4f137d85c5e9" } } } From 0a038956f918d8bf374d4ec54f8f45dab998047f Mon Sep 17 00:00:00 2001 From: walkingeyerobot Date: Mon, 7 Jul 2025 03:39:32 -0400 Subject: [PATCH 2/2] closer --- .gitignore | 1 + CMakeLists.txt | 14 +++++++------- versions.json | 10 +--------- 3 files changed, 9 insertions(+), 16 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d163863 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 5da2d5d..c8399ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,10 +102,10 @@ include(ExternalProject) include(FetchContent) # Read which revisions of the repos to use. -file(READ versions.json VERSIONS_JSON) -function(read_repo_version output_variable_prefix repo) - string(JSON tag GET ${VERSIONS_JSON} "repos" "${repo}" "tag") - string(JSON tagType GET ${VERSIONS_JSON} "repos" "${repo}" "tagType") +file(READ versions.json VERSIONZ_JSON) +function(read_repo_versionz output_variable_prefix repo) + string(JSON tag GET ${VERSIONZ_JSON} "repos" "${repo}" "tag") + string(JSON tagType GET ${VERSIONZ_JSON} "repos" "${repo}" "tagType") if(tagType STREQUAL "commithash") # GIT_SHALLOW doesn't work with commit hashes. set(shallow OFF) @@ -124,10 +124,10 @@ function(read_repo_version output_variable_prefix repo) set(${output_variable_prefix}_TAG "${tag}" PARENT_SCOPE) set(${output_variable_prefix}_SHALLOW "${shallow}" PARENT_SCOPE) endfunction() -read_repo_version(bmt bmt) +read_repo_versionz(bmt bmt) FetchContent_Declare(bmt - GIT_REPOSITORY https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm + GIT_REPOSITORY https://github.com/arm/arm-toolchain GIT_TAG "${bmt_TAG}" GIT_SHALLOW "${bmt_SHALLOW}" GIT_PROGRESS TRUE @@ -211,7 +211,7 @@ set(LLDB_INCLUDE_TESTS OFF CACHE INTERNAL "") set(LLVM_TOOLCHAIN_LIBRARY_VARIANTS armv4t CACHE INTERNAL "") add_subdirectory( - ${bmt_SOURCE_DIR} + ${bmt_SOURCE_DIR}/arm-software/embedded ) install( diff --git a/versions.json b/versions.json index bc85d75..ae2ee4f 100644 --- a/versions.json +++ b/versions.json @@ -7,15 +7,7 @@ "bmt": { "comment": "tagType can be branch, tag or commithash", "tagType": "branch", - "tag": "main" - }, - "llvm-project": { - "tagType": "tag", - "tag": "llvmorg-20.1.0" - }, - "picolibc": { - "tagType": "commithash", - "tag": "e3a4f137d85c5e9" + "tag": "arm-software" } } }