-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update libify to support IDF export with symlinks (#770)
Adds two features to libify.sh: - adds support for creating or updating an OpenMRNIDF repository. This means skipping arduino-specific stuff, like examples or OpenMRNLite.h, rpelacing the readme.md and library.properties files with a different one. - Adds support for creating relative symlinks. This allows using OpenMRNIDF that links back to openmrn using relative symlinks -- these can be checked into git for example. - Adds the few toplevel files for OpenMRNIDF like cmakefile === * Adds support for updating an openmrnidf repo instead of an android repo. * Adds support for creating relative symlinks to openmrn source tree. * Adds additional toplevel files that OpenMRNIDF needs. * Fixes comments.
- Loading branch information
1 parent
157139e
commit 7a842f3
Showing
4 changed files
with
122 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
set(SOURCE_DIRS | ||
src/dcc | ||
src/executor | ||
src/freertos_drivers/esp32 | ||
src/freertos_drivers/arduino | ||
src/openlcb | ||
src/os | ||
src/utils | ||
) | ||
|
||
if(CONFIG_ENABLE_ARDUINO_DEPENDS) | ||
list(APPEND SOURCE_DIRS src) | ||
endif() | ||
|
||
set(IDF_DEPS | ||
app_update | ||
bootloader_support | ||
driver | ||
esp_adc | ||
esp_app_format | ||
esp_system | ||
esp_wifi | ||
espcoredump | ||
hal | ||
heap | ||
vfs | ||
mdns) | ||
|
||
idf_component_register(SRC_DIRS "${SOURCE_DIRS}" | ||
INCLUDE_DIRS "src" | ||
REQUIRES "${IDF_DEPS}") | ||
|
||
############################################################################### | ||
# Suppress compilation warnings in OpenMRN | ||
############################################################################### | ||
|
||
target_compile_options(${COMPONENT_LIB} PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-Wno-volatile>) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-type-limits) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-ignored-qualifiers) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-missing-field-initializers) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-class-memaccess>) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-implicit-fallthrough) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-error=nonnull) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-redundant-move>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# OpenMRN Component for ESP-IDF | ||
|
||
This is an exported version of the OpenMRN library for usage as an ESP-IDF | ||
component. | ||
|
||
More information about OpenMRN can be found [here](https://github.com/bakerstu/openmrn). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name=OpenMRNIDF | ||
version=1.0.2 | ||
author=Stuart Baker, Mike Dunston, Balazs Racz | ||
maintainer=Mike Dunston <[email protected]>, Balazs Racz <[email protected]> | ||
includes=OpenMRNLite.h | ||
sentence=Network protocol stack for model railroading: OpenLCB and LCC implementation. | ||
paragraph=This library implements network protocols for model railroading. In the center is the OpenLCB protocol suite (Open Layout Control Bus), which has been adopted by the NMRA and referenced as LCC (Layout Command Control): a high-performance and highly extensible communications protocol suite for model railroad control. OpenMRN is one of the most extensible implementation of this protocol suite. The Lite version has been adapted to work with the programming model and drivers of the Arduino ecosystem. Currently supports esp32 and stm32 cores. | ||
category=Communication | ||
url=http://github.com/atanisoft/OpenMRNIDF | ||
architectures=esp32 | ||
dot_a_linkage=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters