-
Notifications
You must be signed in to change notification settings - Fork 1
RDKB-63007 RDKB-63448: Update build_tools_workflows to integrate with submodule change #27
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
Changes from all commits
7b1a278
1e4d6e5
a6008d7
dbc2e60
cb2ebd2
0aadfce
99bbcad
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -55,6 +55,16 @@ clone_repo() { | |||||
| return 1 | ||||||
| fi | ||||||
| ok "$name cloned successfully" | ||||||
|
|
||||||
| if [[ -f "$dest/.gitmodules" ]]; then | ||||||
| git -C "$dest" submodule update --init --recursive --remote || { | ||||||
| err "$name git submodule update failed" | ||||||
| return 1 | ||||||
| } | ||||||
| ok "$name git submodule update done!" | ||||||
| else | ||||||
| ok "$name has no submodules, skipping submodule update" | ||||||
| fi | ||||||
| return 0 | ||||||
| } | ||||||
|
|
||||||
|
|
@@ -69,7 +79,7 @@ copy_headers() { | |||||
|
|
||||||
| if [[ -d "$src" ]]; then | ||||||
| log "Copying headers: $src → $dst" | ||||||
| if ! find "$src" -maxdepth 1 -name "*.h" -exec cp {} "$dst/" \; 2>/dev/null; then | ||||||
| if ! find "$src" -maxdepth 1 -name "*.h*" -exec cp {} "$dst/" \; 2>/dev/null; then | ||||||
|
||||||
| if ! find "$src" -maxdepth 1 -name "*.h*" -exec cp {} "$dst/" \; 2>/dev/null; then | |
| if ! find "$src" -maxdepth 1 \( -name "*.h" -o -name "*.hpp" -o -name "*.hxx" -o -name "*.hh" \) -exec cp {} "$dst/" \; 2>/dev/null; then |
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.
The code now computes COMPONENT_DIR as two directories above SCRIPT_DIR instead of using the second parameter. However, line 60 in common_external_build.sh still passes a second parameter when calling this script. This change breaks the calling convention. Either:
Additionally, the new calculation assumes a specific directory structure (SCRIPT_DIR is two levels deep from component root), which may not always be correct if scripts are called from different locations or if the directory structure changes.