-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update libify to support IDF export with symlinks #770
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
78be775
Adds support for updating an openmrnidf repo instead of an android repo.
balazsracz e7b08d8
Adds support for creating relative symlinks to openmrn source tree.
balazsracz 1db8f18
Adds additional toplevel files that OpenMRNIDF needs.
balazsracz 28cc407
Merge branch 'master' into bracz-libify-update
balazsracz 9961871
Fixes comments.
balazsracz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably have
README.md,LICENSE,CONTRIBUTING.md
on the IDF side, perhaps a slightly different version though.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't add contributing.md because you don't have it, and the arduino version references the OpenMRNLite library in the text. So we'd need to first write a new one, but this is really not high priority now.