Skip to content

RDKEMW-21356: Set Build type to signedlab for signedlab builds - #174

Open
KTirumalaSrihari wants to merge 2 commits into
developfrom
topic/signed2
Open

RDKEMW-21356: Set Build type to signedlab for signedlab builds#174
KTirumalaSrihari wants to merge 2 commits into
developfrom
topic/signed2

Conversation

@KTirumalaSrihari

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 9, 2026 15:42
@KTirumalaSrihari
KTirumalaSrihari requested review from a team as code owners July 9, 2026 15:42

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 the rootfs post-processing hooks to mark signedlab images as BUILD_TYPE=signedlab in /etc/device.properties, aligning the device property with the signedlab build variant.

Changes:

  • In the signedlab post-rootfs hook, update device.properties to switch BUILD_TYPE from prod to signedlab when LABSIGNED_ENABLED is enabled.

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

Comment on lines 45 to 48
if [ -f "${R}/etc/device.properties" ]; then
sed -i 's/^LABSIGNED_ENABLED=false/LABSIGNED_ENABLED=true/g' ${R}/etc/device.properties
sed -i 's/BUILD_TYPE=prod/BUILD_TYPE=signedlab/g' ${R}/etc/device.properties
fi
Copilot AI review requested due to automatic review settings July 19, 2026 06:20

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.

Comments suppressed due to low confidence (1)

classes/post-rootfs-hooks.bbclass:47

  • The sed pattern is not anchored, so it can also rewrite occurrences like FOO_BUILD_TYPE=prod or BUILD_TYPE=prodlog if they appear in device.properties. Anchor the key to the beginning of the line (and ideally the whole line) to ensure only the intended property is changed; also quote the path for consistency with other checks.
        sed -i 's/BUILD_TYPE=prod/BUILD_TYPE=signedlab/g' ${R}/etc/device.properties

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.

2 participants