Skip to content

Commit 629717c

Browse files
committed
fix cmake build
1 parent 5e023fa commit 629717c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
File renamed without changes.

hw/bsp/imxrt/family.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# toolchain set up
22
set(CMAKE_SYSTEM_PROCESSOR cortex-m7 CACHE INTERNAL "System Processor")
3-
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../../../cmake/toolchain/arm_${TOOLCHAIN}.cmake)
3+
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/../../../examples/cmake/toolchain/arm_${TOOLCHAIN}.cmake)
44

55
function(family_configure_target TARGET)
66
if (NOT BOARD)

tools/build_family.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ def build_family(example, family, make_option):
4141

4242
# If examples are not specified in arguments, build all
4343
all_examples = []
44-
for dir1 in os.scandir("examples"):
45-
if dir1.is_dir() and 'cmake-build' not in dir1.name:
46-
for entry in os.scandir(dir1.path):
44+
for d in os.scandir("examples"):
45+
if d.is_dir() and 'cmake-build' not in d.name and 'cmake' not in d.name:
46+
for entry in os.scandir(d.path):
4747
if entry.is_dir():
48-
all_examples.append(dir1.name + '/' + entry.name)
48+
all_examples.append(d.name + '/' + entry.name)
4949
filter_with_input(all_examples)
5050
all_examples.sort()
5151

0 commit comments

Comments
 (0)