summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-05-04 16:38:06 +0700
committerhathach <[email protected]>2023-05-04 16:38:06 +0700
commit629717cd13730fa5f7543ce414ff11b5c175add0 (patch)
tree694d373cb088a5d589fac90946128a0114fb7f56
parent5e023fa2ca4c20f06b6e0dc12f6f044a7d4e14bd (diff)
fix cmake build
-rw-r--r--examples/cmake/cpu/cortex-m7.cmake (renamed from cmake/cpu/cortex-m7.cmake)0
-rw-r--r--examples/cmake/toolchain/arm_gcc.cmake (renamed from cmake/toolchain/arm_gcc.cmake)0
-rw-r--r--examples/cmake/toolchain/set_flags.cmake (renamed from cmake/toolchain/set_flags.cmake)0
-rw-r--r--hw/bsp/imxrt/family.cmake2
-rw-r--r--tools/build_family.py8
5 files changed, 5 insertions, 5 deletions
diff --git a/cmake/cpu/cortex-m7.cmake b/examples/cmake/cpu/cortex-m7.cmake
index 2b258726f..2b258726f 100644
--- a/cmake/cpu/cortex-m7.cmake
+++ b/examples/cmake/cpu/cortex-m7.cmake
diff --git a/cmake/toolchain/arm_gcc.cmake b/examples/cmake/toolchain/arm_gcc.cmake
index c5937192e..c5937192e 100644
--- a/cmake/toolchain/arm_gcc.cmake
+++ b/examples/cmake/toolchain/arm_gcc.cmake
diff --git a/cmake/toolchain/set_flags.cmake b/examples/cmake/toolchain/set_flags.cmake
index da381c254..da381c254 100644
--- a/cmake/toolchain/set_flags.cmake
+++ b/examples/cmake/toolchain/set_flags.cmake
diff --git a/hw/bsp/imxrt/family.cmake b/hw/bsp/imxrt/family.cmake
index e36adaf5a..95c4c0415 100644
--- a/hw/bsp/imxrt/family.cmake
+++ b/hw/bsp/imxrt/family.cmake
@@ -1,6 +1,6 @@
# toolchain set up
set(CMAKE_SYSTEM_PROCESSOR cortex-m7 CACHE INTERNAL "System Processor")
-set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../../../cmake/toolchain/arm_${TOOLCHAIN}.cmake)
+set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/../../../examples/cmake/toolchain/arm_${TOOLCHAIN}.cmake)
function(family_configure_target TARGET)
if (NOT BOARD)
diff --git a/tools/build_family.py b/tools/build_family.py
index f9f7261fe..1fc25907b 100644
--- a/tools/build_family.py
+++ b/tools/build_family.py
@@ -41,11 +41,11 @@ if __name__ == '__main__':
# If examples are not specified in arguments, build all
all_examples = []
- for dir1 in os.scandir("examples"):
- if dir1.is_dir() and 'cmake-build' not in dir1.name:
- for entry in os.scandir(dir1.path):
+ for d in os.scandir("examples"):
+ if d.is_dir() and 'cmake-build' not in d.name and 'cmake' not in d.name:
+ for entry in os.scandir(d.path):
if entry.is_dir():
- all_examples.append(dir1.name + '/' + entry.name)
+ all_examples.append(d.name + '/' + entry.name)
filter_with_input(all_examples)
all_examples.sort()