Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ch32v003fun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Horn
ch32v003fun
Commits
ffec7917
Unverified
Commit
ffec7917
authored
2 years ago
by
Maximilian Gerhardt
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Refactor platformio.ini to accomodate ch32v003evt and ch32v003fun based builds
parent
d120981a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platformio.ini
+19
-5
19 additions, 5 deletions
platformio.ini
with
19 additions
and
5 deletions
platformio.ini
+
19
−
5
View file @
ffec7917
...
...
@@ -8,19 +8,33 @@ platform = https://github.com/Community-PIO-CH32V/platform-ch32v.git
; or genericCH32V003A4M6 or whatever, see platform link
board
=
ch32v003f4p6_evt_r0
monitor_speed
=
115200
; use a source filter to only build certain folders / files
; for examples that use ch32v003evt as their base
[evt_base]
board_build.ldscript
=
ch32v003evt/ch32v003.ld
build_flags
=
-flto -Ich32v003evt -lgcc
; use a source filter to only build certain folders / files
build_src_filter
=
+<ch32v003evt>
; 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
build_src_filter
=
+<ch32v003fun>
[env:blink]
build_src_filter
=
+<ch32v003evt> +<examples/blink>
extends
=
fun_base
build_src_filter
=
${fun_base.build_src_filter} +<examples/blink>
[env:fulldemo]
build_src_filter
=
+<ch32v003evt> +<examples/fulldemo>
extends
=
evt_base
build_src_filter
=
${evt_base.build_src_filter} +<examples/fulldemo>
; sandbox demo does currently not compile (undefined reference to `__get_dscratch0')
;[env:sandbox]
;build_src_filter = +<ch32v003evt> +<examples/sandbox>
;extends = evt_base
;build_src_filter = ${evt_base.build_src_filter} +<examples/sandbox>
[env:ws2812demo]
build_src_filter
=
+<ch32v003evt> +<examples/ws2812demo>
extends
=
evt_base
build_src_filter
=
${evt_base.build_src_filter} +<examples/ws2812demo>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment