-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix/do-not-export-headers' into 'main'
Improve the maintainability of the CI See merge request espressif/esp-zigbee-sdk!144
- Loading branch information
Showing
8 changed files
with
42 additions
and
154 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
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
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,40 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
ESP_ZIGBEE_SDK="$(realpath ${SCRIPT_DIR}/../..)" | ||
|
||
declare -A LIB_COMPONENTS=( | ||
["espressif__esp-zigbee-lib"]="${ESP_ZIGBEE_SDK}/components/esp-zigbee-lib" | ||
["espressif__esp-zboss-lib"]="${IDF_PATH}/../esp-zboss-lib" | ||
) | ||
|
||
set -ex | ||
shopt -s globstar # Allow ** for recursive matches | ||
|
||
update_dependency(){ | ||
# Remove the dependencies on managed LIB components. | ||
# for examples in ESP-ZIGBEE-SDK | ||
sed -i "/\besp-zboss-lib\b/d;/\besp-zigbee-lib\b/d" "${ESP_ZIGBEE_SDK}"/examples/**/main/idf_component.yml | ||
# for components in ESP-ZIGBEE-SDK | ||
sed -i "/\besp-zboss-lib\b/d;/\besp-zigbee-lib\b/d" "${ESP_ZIGBEE_SDK}"/components/*/idf_component.yml | ||
|
||
# Link the local LIB components to the components directory of ESP-IDF | ||
for component in "${!LIB_COMPONENTS[@]}"; do | ||
local link_name="${IDF_PATH}/components/${component}" | ||
local link_target="${LIB_COMPONENTS[${component}]}" | ||
if [ ! -e "${link_name}" ]; then | ||
ln -s "${link_target}" "${link_name}" | ||
fi | ||
echo "create link ${link_name} -> ${link_target}" | ||
done | ||
} | ||
|
||
main() { | ||
pushd "$(pwd)" | ||
|
||
update_dependency | ||
|
||
popd | ||
} | ||
|
||
main |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.