Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt authored Sep 23, 2023
1 parent 547e46c commit 758aff9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libraries/Adafruit_nRFCrypto/extra_script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os

Import("env")

# An extra script is required to properly handle extra link flags set in
# the `library.properties` file
if env.BoardConfig().get("build.mcu", "").startswith("nrf5284"):
env.Append(
LIBPATH=[os.path.realpath("src/cortex-m4/fpv4-sp-d16-hard")],
LIBS=["nrf_cc310_0.9.13-no-interrupts"]
)
6 changes: 6 additions & 0 deletions libraries/Adafruit_nRFCrypto/library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Adafruit nRFCrypto",
"build": {
"extraScript": "extra_script.py"
}
}

0 comments on commit 758aff9

Please sign in to comment.