Skip to content

Commit

Permalink
Add portduino-buildroot variant
Browse files Browse the repository at this point in the history
  • Loading branch information
vidplace7 committed Dec 10, 2024
1 parent f3850ee commit 4347888
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions variants/portduino-buildroot/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[env:buildroot]
extends = portduino_base
; The pkg-config commands below optionally add link flags.
; the || : is just a "or run the null command" to avoid returning an error code
build_flags = ${portduino_base.build_flags} -O0 -I variants/portduino-buildroot
!pkg-config --libs libulfius --silence-errors || :
!pkg-config --libs openssl --silence-errors || :
board = buildroot
lib_deps = ${portduino_base.lib_deps}
build_src_filter = ${portduino_base.build_src_filter}
5 changes: 5 additions & 0 deletions variants/portduino-buildroot/variant.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define HAS_SCREEN 1
#define CANNED_MESSAGE_MODULE_ENABLE 1
#define HAS_GPS 1
#define MAX_RX_TOPHONE settingsMap[maxtophone]
#define MAX_NUM_NODES settingsMap[maxnodes]

0 comments on commit 4347888

Please sign in to comment.