-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplatformio.ini
More file actions
93 lines (86 loc) · 3.08 KB
/
Copy pathplatformio.ini
File metadata and controls
93 lines (86 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
; PlatformIO Project Configuration File
; CDC Badge OS
[platformio]
src_dir = main
default_envs = cdc_badge_usb
[env:cdc_badge_usb]
platform = espressif32@6.12.0
board = cdc-badge-usb
framework = espidf
board_build.partitions = partitions.csv
board_build.flash_size = 16MB
board_build.psram = enabled
board_build.sdkconfig_defaults = sdkconfig.defaults
platform_packages =
framework-espidf @ ~3.50500.0
toolchain-xtensa-esp32s3 @ 12.2.0+20230208
build_flags =
-std=gnu++17
-D BUILD_TIME=__TIME__
-D BUILD_DATE=__DATE__
-D APP_NAME=\"CDCBos\"
-D APP_VERSION=\"0.8.1\"
; TinyUSB configuration
-D CONFIG_TINYUSB_ENABLED=1
-D CONFIG_TINYUSB_CDC_ENABLED=1
-D CONFIG_TINYUSB_CDC_RX_BUFSIZE=256
-D CONFIG_TINYUSB_CDC_TX_BUFSIZE=256
; libtropic helpers
-DLT_HELPERS
; TROPIC01 pairing key for the secure session. Default: production key, slot 0.
; For a chip provisioned with a custom key, copy
; components/cdc_hal/include/cdc_hal/pairing_key_custom.h.example to
; pairing_key_custom.h, fill in the key, and add:
; -DCDC_PAIRING_KEY=CDC_PAIRING_KEY_CUSTOM
lib_deps =
build_unflags =
-std=gnu++2b
-std=gnu++23
extra_scripts =
pre:tools/pio_python_deps.py
pre:tools/pio_submodules.py
pre:tools/pio_component_manager.py
#upload_port = /dev/cu.usbmodem1101
monitor_port = /dev/cu.usbmodem1020BA59B7481
monitor_speed = 115200
; host/* tests are native-only
test_ignore = host/*
; Production lockdown build for tools/provision.py. OPT-IN ONLY - never the
; default. DANGER: this bootloader self-enables secure boot + flash encryption
; (burns eFuses!) on first boot of an UNLOCKED chip. Do not upload it manually;
; provision.py signs, encrypts, and flashes it only after the eFuses were
; burned externally. See website docs: dev/production-hardening.
[env:cdc_badge_release]
extends = env:cdc_badge_usb
; Encrypted-nvs_keys partition table (adds a 4 KB nvs_keys partition for NVS
; Encryption). Isolated to this env so dev badges keep partitions.csv.
board_build.partitions = partitions.release.csv
build_flags =
${env:cdc_badge_usb.build_flags}
-D DEBUG_MODE=0
; Guard FIRST: refuses to build without CDC_PROVISION_EXPERIMENTAL=1, refuses
; `-t upload` unconditionally (flashing goes through provision.py), and only
; then layers sdkconfig.release (secure boot + flash + NVS encryption) on top of
; the full dev config sdkconfig.cdc_badge_usb via SDKCONFIG_DEFAULTS. The dev env
; cdc_badge_usb never sees those options.
extra_scripts =
pre:tools/pio_release_guard.py
${env:cdc_badge_usb.extra_scripts}
[env:native]
platform = native
test_framework = unity
test_filter = host/*
build_flags =
-std=gnu++17
-I components/mod_gpg/include
-I components/cdc_scard/include
-I components/cdc_log/include
-I components/cdc_image/include
-I components/cdc_views/include
-I test/host/test_gpg_ecdh/shim
-I test/host/test_scard_usb/shim
-I test/host/test_usb_service_manager/shim
-I components/mod_piv/src
-I components/mod_2fa/include
-I components/usb_badge/include
-I components/cdc_core/include