Skip to content

RDKEMW-23121: Use vendor functions if available - #597

Open
rwarier wants to merge 5 commits into
developfrom
feature/RDKEMW-23121
Open

RDKEMW-23121: Use vendor functions if available#597
rwarier wants to merge 5 commits into
developfrom
feature/RDKEMW-23121

Conversation

@rwarier

@rwarier rwarier commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Modified to use device specific overrides. Xi6 devices fetch getEstbMacAddress differently

Modified to use device specific overrides. Xi6 devices fetch getEstbMacAddress differently
Copilot AI review requested due to automatic review settings August 6, 2026 13:15
@rwarier
rwarier requested a review from a team as a code owner August 6, 2026 13:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates lib/rdk/utils.sh to optionally load vendor/device-specific override functions (e.g., Xi6-specific getEstbMacAddress behavior) when available.

Changes:

  • Added conditional sourcing of a vendor override script (utils-vendor.sh) at the end of utils.sh.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/rdk/utils.sh Outdated
Copilot AI review requested due to automatic review settings August 6, 2026 13:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

lib/rdk/utils.sh:290

  • RDK_PATH is unquoted (and not checked for emptiness) in the -f test and when sourcing. If RDK_PATH is empty or contains whitespace/globs, the test can behave unexpectedly and you could end up sourcing the wrong file (e.g., /utils-vendor.sh). Quote the path and guard on RDK_PATH being set.
if [ -f $RDK_PATH/utils-vendor.sh ]; then
    . $RDK_PATH/utils-vendor.sh
fi

Copilot AI review requested due to automatic review settings August 6, 2026 13:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (1)

lib/rdk/utils.sh:290

  • Unquoted $RDK_PATH can be word-split/glob-expanded in the -f test and when sourcing the file, which can cause the vendor overrides to be skipped or (in worst cases) source an unintended path. Quote the path and guard against an empty/unset RDK_PATH.
if [ -f $RDK_PATH/utils-vendor.sh ]; then
    . $RDK_PATH/utils-vendor.sh
fi

@satya200 satya200 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Copilot AI review requested due to automatic review settings August 7, 2026 17:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (1)

lib/rdk/utils.sh:290

  • The vendor override sourcing relies on $RDK_PATH but does not handle it being unset/empty. In that case, this expands to /utils-vendor.sh (and can miss the intended /lib/rdk/utils-vendor.sh when scripts source utils.sh via an absolute path). Also quote the path to avoid word-splitting/globbing issues.
if [ -f $RDK_PATH/utils-vendor.sh ]; then
    . $RDK_PATH/utils-vendor.sh
fi

Copilot AI review requested due to automatic review settings August 7, 2026 17:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines 45 to 47
. /etc/include.properties
. /etc/device.properties
. $RDK_PATH/utils.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants