-
Notifications
You must be signed in to change notification settings - Fork 178
[mosq]: Add support for linux build #977
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e | ||
|
|
||
| BROKER_PATH=components/mosquitto/examples/broker | ||
| SCRIPT_DIR=$(dirname $0) | ||
| cp ${SCRIPT_DIR}/sdkconfig.broker ${BROKER_PATH}/sdkconfig.broker | ||
| idf.py -B build -DSDKCONFIG=sdkconfig.broker -C ${BROKER_PATH} build | ||
|
|
||
| ./build/broker.elf & | ||
| export MOSQ_PID=$! | ||
| echo "Broker started with PID ${MOSQ_PID}" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| CONFIG_IDF_TARGET="linux" | ||
| CONFIG_EXAMPLE_BROKER_PORT=1234 | ||
| CONFIG_EXAMPLE_BROKER_RUN_LOCAL_MQTT_CLIENT=n | ||
| CONFIG_EXAMPLE_BROKER_WITH_TLS=n | ||
| CONFIG_ESP_EVENT_POST_FROM_ISR=n |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,6 @@ dependencies: | |
| rules: | ||
| - if: idf_version >=6.0 | ||
| version: ^1.0.0 | ||
| espressif/sock_utils: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we guard to not add it on Linux target build?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wanted to keep this cleaner, but i'll probably make sense in future when component manager becomes more stable and dependency resolution more predictable. |
||
| version: '*' | ||
| override_path: '../../../../sock_utils' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| # CONFIG_ESP_EVENT_POST_FROM_ISR is not set | ||
| CONFIG_BROKER_URL="mqtt://${CI_MQTT_BROKER_URI}" | ||
| CONFIG_BROKER_URL="mqtt://127.0.0.1:1234" |
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.
Isn't cleaner to move this to component manager yml?
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.
Yes, it's probably cleaner, but less practical.
Remember the issues Ondrej had with
#ifdef-in components/version? Plus it'd add one more expansion.