From 43478883d5df8323a37d9001a37e9fa78579fd63 Mon Sep 17 00:00:00 2001 From: vidplace7 Date: Mon, 9 Dec 2024 19:54:24 -0500 Subject: [PATCH] Add portduino-buildroot variant --- variants/portduino-buildroot/platformio.ini | 10 ++++++++++ variants/portduino-buildroot/variant.h | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 variants/portduino-buildroot/platformio.ini create mode 100644 variants/portduino-buildroot/variant.h diff --git a/variants/portduino-buildroot/platformio.ini b/variants/portduino-buildroot/platformio.ini new file mode 100644 index 0000000000..8ef183ef34 --- /dev/null +++ b/variants/portduino-buildroot/platformio.ini @@ -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} diff --git a/variants/portduino-buildroot/variant.h b/variants/portduino-buildroot/variant.h new file mode 100644 index 0000000000..b7b39d6e84 --- /dev/null +++ b/variants/portduino-buildroot/variant.h @@ -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] \ No newline at end of file