summaryrefslogtreecommitdiff
path: root/pkg.yml
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2020-05-07 09:51:17 +0200
committerJerzy Kasenberg <[email protected]>2020-05-07 10:11:58 +0200
commit0f8ab86bee0153c27a691ff9bcc9692e07cd0e7f (patch)
tree7baedbfc0312532cb6c413aeb5e7471ef5d710b3 /pkg.yml
parent101f234a1637b995e771b4999afdf4793ffdc86e (diff)
Change mynewt package type to sdk
For normal mynewt packages newt tool wants to have specific folder structure. It wants to have src and include directories, and only include (and arch related) directory is added to compiler include search list. Since TinyUSB has different folder structure newt tool will not add anything to -I directives and those would need to be specified as pkg.cflags: "-I@tinyusb/src" Recent change to newt tool allowed to add specific include directories for external (sdk) packages so just including package will add necessary -I to build commands. This commit changes package type to sdk and specifies src as include root for TinyUSB. For older newt tool adding sdk and include_dirs does not break build.
Diffstat (limited to 'pkg.yml')
-rw-r--r--pkg.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg.yml b/pkg.yml
index 3b3e10796..331445024 100644
--- a/pkg.yml
+++ b/pkg.yml
@@ -5,5 +5,10 @@ pkg.homepage: "https://github.com/hathach/tinyusb"
pkg.keywords:
- usb
+pkg.type: sdk
+
pkg.deps:
- "@apache-mynewt-core/kernel/os"
+
+pkg.include_dirs:
+ - src