From 817eadbdf0e7083e1175feb1aba926b2cc75ee7f Mon Sep 17 00:00:00 2001 From: Maximilian Gerhardt Date: Sat, 23 Sep 2023 14:00:40 +0200 Subject: [PATCH] Add files via upload --- libraries/Bluefruit52Lib/extra_script.py | 12 ++++++++++++ libraries/Bluefruit52Lib/library.json | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 libraries/Bluefruit52Lib/extra_script.py create mode 100644 libraries/Bluefruit52Lib/library.json diff --git a/libraries/Bluefruit52Lib/extra_script.py b/libraries/Bluefruit52Lib/extra_script.py new file mode 100644 index 0000000..f551c5b --- /dev/null +++ b/libraries/Bluefruit52Lib/extra_script.py @@ -0,0 +1,12 @@ +import os + +Import("env") + +# The only purpose of this extra script is to set the `NRF_CRYPTOCELL` macro for the +# nrf52840 series because the original `NRF_CRYPTOCELL` macro is set in the framework +# sources and not visible when PlatformIO LDF resolves dependencies. +if env.BoardConfig().get("build.mcu", "").startswith("nrf5284"): + env.Append( + CPPDEFINES=[("NRF_CRYPTOCELL", "((NRF_CRYPTOCELL_Type*) NRF_CRYPTOCELL_BASE)")], + + ) diff --git a/libraries/Bluefruit52Lib/library.json b/libraries/Bluefruit52Lib/library.json new file mode 100644 index 0000000..0e43d74 --- /dev/null +++ b/libraries/Bluefruit52Lib/library.json @@ -0,0 +1,7 @@ +{ + "name": "Adafruit Bluefruit nRF52 Libraries", + "build": { + "libLDFMode": "chain+", + "extraScript": "extra_script.py" + } +} \ No newline at end of file