Skip to content

Commit 6a47561

Browse files
committed
manifest: Make ArduinoCore-API a downloadable blob
Make the license-incompatible headers and implementations a downloadable blob using `west blobs fetch`. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent 5569c6c commit 6a47561

File tree

5 files changed

+550
-40
lines changed

5 files changed

+550
-40
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ if (CONFIG_ARDUINO_API)
8080
add_library(arduinocore_api_rust STATIC IMPORTED GLOBAL)
8181
set_target_properties(arduinocore_api_rust PROPERTIES IMPORTED_LOCATION ${RUST_LIB})
8282
zephyr_link_libraries(arduinocore_api_rust)
83+
else()
84+
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR}/zephyr/blobs/ArduinoCore-API/)
8385
endif()
8486

8587
endif()

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,11 @@ The **Arduino Core API** module for zephyr leverages the power of Zephyr under a
2626
west update
2727
```
2828

29-
* **Note:** For ***Linux users only*** there exists an ``install.sh`` script in this project that can be run to quickly link the ArduinoCore-API to this module.
30-
If you are able to run that script successfully then you can skip the next steps.
29+
* And also, you need to get ArduinoCore-API sources following command.
3130

32-
* To "complete" the core you need to copy or symlink the api folder from the [ArduinoCore-API](https://github.com/arduino/ArduinoCore-API.git) repo to the target's ``cores/arduino`` folder:
3331
```sh
34-
$ git clone git@github.com:arduino/ArduinoCore-API # Any location
35-
$ ln -s /<your>/<location>/ArduinoCore-API/api cores/arduino/.
32+
west blobs fetch arduinocore-zephyr
3633
```
37-
The `cores` folder can be found at `~/zephyrproject/modules/lib/Arduino-Zephyr-API/cores`.
38-
39-
**Known Bug(s):**
40-
41-
__NOTE:__ You can skip this step as well if you ran ``install.sh``.
4234

4335
**Maintainers**:
4436
- [DhruvaG2000](https://github.com/DhruvaG2000)

install.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)