Skip to content

Commit 0f8ab86

Browse files
committed
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.
1 parent 101f234 commit 0f8ab86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg.yml

+5
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ pkg.homepage: "https://github.com/hathach/tinyusb"
55
pkg.keywords:
66
- usb
77

8+
pkg.type: sdk
9+
810
pkg.deps:
911
- "@apache-mynewt-core/kernel/os"
12+
13+
pkg.include_dirs:
14+
- src

0 commit comments

Comments
 (0)