Skip to content
Snippets Groups Projects
Unverified Commit f895c72c authored by CNLohr's avatar CNLohr Committed by GitHub
Browse files

Merge pull request #198 from maxgerhardt/patch-4

Fix PIO build for funconfig branch
parents f35412d6 827c1017
No related branches found
No related tags found
No related merge requests found
from os.path import join
Import("env", "projenv")
# propagate to all construction environments
for e in env, projenv, DefaultEnvironment():
e.Append(CCFLAGS=[("-I", join("examples", env.subst("$PIOENV")))])
......@@ -15,7 +15,9 @@ extends = fun_base
; for examples that use ch32v003fun as their base
[fun_base]
board_build.ldscript = ch32v003fun/ch32v003fun.ld
build_flags = -flto -Ich32v003fun -I/usr/include/newlib -lgcc -Iextralibs -I"examples/$PIOENV"
build_flags = -flto -Ich32v003fun -I/usr/include/newlib -lgcc -Iextralibs
; dynamically add "examples/$PIOENV" to the include path
extra_scripts = add_include.py
build_src_filter = +<ch32v003fun>
extra_libs_srcs = +<extralibs>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment