Skip to content

Commit

Permalink
Look in include dir too for config files like funconfig.h etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Feb 9, 2025
1 parent 8af7925 commit 349fa5a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions builder/frameworks/ch32v003fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
CPPPATH=[
join(FRAMEWORK_DIR, "ch32v003fun"),
join(FRAMEWORK_DIR, "extralibs"),
# user will likely have the funconfig.h located in the main source directory, so include it for the build too
"$PROJECT_SRC_DIR"
# user will likely have the funconfig.h located in the src/ or include/ directory, so include it for the build too
"$PROJECT_SRC_DIR",
"$PROJECT_INCLUDE_DIR"
],
CPPDEFINES=[
# not yet used for anything, just identification
Expand Down
3 changes: 2 additions & 1 deletion builder/frameworks/freertos.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
join(FRAMEWORK_DIR, freertos_subseries, "portable", "MemMang"),
join(FRAMEWORK_DIR, freertos_subseries),
# user will likely have the FreeRTOSConfig.h located in the main source directory, so include it for the build too
"$PROJECT_SRC_DIR"
"$PROJECT_SRC_DIR",
"$PROJECT_INCLUDE_DIR"
],
CPPDEFINES=[
# the startup.S file needs very nifty different code if FreeRTOS is running
Expand Down
3 changes: 2 additions & 1 deletion builder/frameworks/harmony_liteos.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
join(FRAMEWORK_DIR, liteos_subseries, "third_party", "bounds_checking_function", "include"),
join(FRAMEWORK_DIR, liteos_subseries, "third_party", "bounds_checking_function", "src"),
# user will likely have the target_config.h located in the main source directory, so include it for the build too
"$PROJECT_SRC_DIR"
"$PROJECT_SRC_DIR",
"$PROJECT_INCLUDE_DIR"
],
CPPDEFINES=[
# the startup.S file needs very nifty different code if Harmony LiteOS is running
Expand Down
3 changes: 2 additions & 1 deletion builder/frameworks/rt_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
join(FRAMEWORK_DIR, rtthread_subseries, "components", "finsh"),
# ch32v_it.h is mandatory for RT-Thread to build, this will likely be included
# in the user's directory.
"$PROJECT_SRC_DIR"
"$PROJECT_SRC_DIR",
"$PROJECT_INCLUDE_DIR"
],
CPPDEFINES=[
# the startup.S file needs very nifty different code if Harmony LiteOS is running
Expand Down
3 changes: 2 additions & 1 deletion builder/frameworks/tencent_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
join(FRAMEWORK_DIR, tencent_subseries, "TOS_CONFIG"),
# ch32v_it.h is mandatory for TencentOS to build, this will likely be included
# in the user's directory.
"$PROJECT_SRC_DIR"
"$PROJECT_SRC_DIR",
"$PROJECT_INCLUDE_DIR"
],
CPPDEFINES=[
# the startup.S file needs very nifty different code if Harmony LiteOS is running
Expand Down

0 comments on commit 349fa5a

Please sign in to comment.