Skip to content

RDKEMW-23527 : Inherit extract-sha-cve bbclass for CVE support - Addition of CVE middleware paths - #164

Open
jomothomas wants to merge 17 commits into
developfrom
feature/RDKOSS974Demo
Open

jomothomas wants to merge 17 commits into
developfrom
feature/RDKOSS974Demo

Conversation

@jomothomas

@jomothomas jomothomas commented Aug 11, 2026 •

Copy link
Copy Markdown

This PR adds the CVE feed paths to Middleware which get SHA256 checksums

Changes:

Addition of the CVE feedback paths for middleware artifacts corresponding to IPK feeds
Added CVE_LAYER_COMMON_PATH_MIDDLEWARE for usage in local conf

@jomothomas
jomothomas requested a review from a team as a code owner August 11, 2026 17:28
Copilot AI lite review requested due to automatic review settings August 11, 2026 17:28

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

This PR extends the machine include configuration to add CVE feed artifact URLs alongside existing middleware IPK feed URIs, aiming to expose CVE tarballs for middleware artifacts.

Changes:

  • Appends middleware CVE tarball entries to CVE_LAYER_FEED_PATH for the base middleware feed and the OSS middleware feed.
  • Adds an include of conf/dynamic_sha.inc (presumably to provide per-artifact SHA256 values).

Reviewed changes

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

File Description
conf/machine/include/oss_mw.inc Adds an OSS middleware CVE feed entry and includes conf/dynamic_sha.inc.
conf/machine/include/middleware.inc Adds a middleware CVE feed entry, includes OSS middleware include conditionally, and includes conf/dynamic_sha.inc.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread conf/machine/include/oss_mw.inc Resolved
Comment thread conf/machine/include/oss_mw.inc Resolved
Comment thread conf/machine/include/middleware.inc Resolved
Comment thread conf/machine/include/middleware.inc Resolved
Copilot AI review requested due to automatic review settings August 12, 2026 21:41

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 (4)

conf/machine/include/middleware.inc:19

  • This file includes conf/dynamic_sha.inc, but that file is not present anywhere in the repository, so SHA population (and/or parsing) won’t work as intended. Either add conf/dynamic_sha.inc in this PR (defining the referenced *_SHA256SUM vars), or update the include to point to the correct existing file.
include conf/dynamic_sha.inc

conf/machine/include/oss_mw.inc:11

  • This file includes conf/dynamic_sha.inc, but that file is not present anywhere in the repository. If this include is meant to define MW_OSS_SHA256SUM, it needs to be added in this PR or the include path corrected.
include conf/dynamic_sha.inc

conf/machine/include/oss_mw.inc:8

  • CVE_LAYER_COMMON_PATH_MIDDLEWARE is already set in middleware.inc, so using ?= here means the OSS CVE feed can end up using the non-OSS path. Also, the CVE tarball URL here doesn’t mirror the OSS IPK layout (missing /${MW_OSS}/), and the filename appends -middleware twice because MW_OSS already includes that suffix.
CVE_LAYER_COMMON_PATH_MIDDLEWARE ?= "${MW_OSS_IPK_PATH}"
MW_OSS_IPK_SERVER_PATH = "${RDK_ARTIFACTS_BASE_URL}/${MW_OSS_IPK_PATH}/${RDK_MW_ARCH}/${MW_OSS}/ipks/${BUILD_VARIANT}"
CVE_LAYER_FEED_PATH += " ${MW_OSS}##${RDK_ARTIFACTS_BASE_URL}/${CVE_LAYER_COMMON_PATH_MIDDLEWARE}/${RDK_MW_ARCH}/tarball/cve/debug/${MW_OSS}-middleware.tgz;sha256sum=${MW_OSS_SHA256SUM}"

conf/machine/include/middleware.inc:13

  • MIDDLEWARE_ARCH_SHA256SUM is not defined anywhere in this layer (it only appears in this new reference), so the generated feed entry will likely contain an empty sha256sum= value. If the SHA is optional, it should be conditionally appended; if it’s required, it needs to be defined (e.g., via an included .inc that is actually present).
CVE_LAYER_FEED_PATH += " ${MIDDLEWARE_ARCH}##${RDK_ARTIFACTS_BASE_URL}/${CVE_LAYER_COMMON_PATH_MIDDLEWARE}/${RDK_MW_ARCH}/tarball/cve/debug/${MIDDLEWARE_ARCH}.tgz;sha256sum=${MIDDLEWARE_ARCH_SHA256SUM}"

Copilot AI review requested due to automatic review settings August 13, 2026 19:32

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 (3)

conf/machine/include/middleware.inc:13

  • This layer currently has no conf/dynamic_sha.inc (and there are no other definitions of *_SHA256SUM variables in this repo), but the new CVE feed URL appends ;sha256sum=${MIDDLEWARE_ARCH_SHA256SUM}. Unless another layer in the build provides conf/dynamic_sha.inc and defines these variables, the checksum parameter will expand empty, which can break CVE feed consumers. Ensure the checksum include file is actually provided (or define the SHA256SUM variables in this layer) and consider using require if the file is mandatory.
CVE_LAYER_FEED_PATH += " ${MIDDLEWARE_ARCH}##${RDK_ARTIFACTS_BASE_URL}/${CVE_LAYER_COMMON_PATH_MIDDLEWARE}/${RDK_MW_ARCH}/tarball/cve/debug/${MIDDLEWARE_ARCH}.tgz;sha256sum=${MIDDLEWARE_ARCH_SHA256SUM}"

conf/machine/include/oss_mw.inc:8

  • CVE_LAYER_COMMON_PATH_MIDDLEWARE is also set in middleware.inc (line 11) with ?=; when oss_mw.inc is included from middleware.inc, this ?= will not override it. As a result, overriding MW_OSS_IPK_PATH will not affect the OSS CVE feed URL here (it will keep using the non-OSS path). Use a distinct variable for the OSS CVE common path (or an override) and reference that in CVE_LAYER_FEED_PATH.
CVE_LAYER_COMMON_PATH_MIDDLEWARE ?= "${MW_OSS_IPK_PATH}"
MW_OSS_IPK_SERVER_PATH = "${RDK_ARTIFACTS_BASE_URL}/${MW_OSS_IPK_PATH}/${RDK_MW_ARCH}/${MW_OSS}/ipks/${BUILD_VARIANT}"
CVE_LAYER_FEED_PATH += " ${MW_OSS}##${RDK_ARTIFACTS_BASE_URL}/${CVE_LAYER_COMMON_PATH_MIDDLEWARE}/${RDK_MW_ARCH}/tarball/cve/debug/${MW_OSS}.tgz;sha256sum=${MW_OSS_SHA256SUM}"

conf/machine/include/oss_mw.inc:11

  • oss_mw.inc is only included from middleware.inc in this layer, and middleware.inc already includes conf/dynamic_sha.inc (line 19). Including it again here causes the file to be parsed twice and risks duplicate/overriding variable definitions; keep the include in one place.
include conf/dynamic_sha.inc

@jomothomas jomothomas changed the title Feature/rdkoss974 demo RDKOSS-954: Auto generated CVE reports-Addition of CVE middleware paths and customizable middleware CVE folder Aug 14, 2026
@jomothomas jomothomas changed the title RDKOSS-954: Auto generated CVE reports-Addition of CVE middleware paths and customizable middleware CVE folder RDKEMW-23527 : Inherit extract-sha-cve bbclass for CVE support - Addition of CVE middleware paths Aug 14, 2026
Copilot AI review requested due to automatic review settings September 10, 2026 11:02

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.

🟡 Changes recommended

The shared CVE_LAYER_COMMON_PATH_MIDDLEWARE defaulting is order-dependent between includes and can yield incorrect CVE feed URLs when middleware and OSS paths diverge.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (2)

conf/machine/include/oss_mw.inc:26

  • CVE_LAYER_COMMON_PATH_MIDDLEWARE is being defaulted here based on MW_OSS_IPK_PATH, but it is also defaulted in middleware.inc based on MW_IPK_PATH. Because oss_mw.inc is included from middleware.inc earlier in parse order, whichever file runs first will “win”, which can produce incorrect CVE feed URLs if MW_IPK_PATH and MW_OSS_IPK_PATH are ever set differently. Consider setting this default in only one place, or using separate variables (e.g., CVE_LAYER_COMMON_PATH_MIDDLEWARE and CVE_LAYER_COMMON_PATH_MWOSS).
    if d.getVar("CVE_CHECK_ENABLED") == "1":
        if not d.getVar("CVE_LAYER_COMMON_PATH_MIDDLEWARE"):
            d.setVar("CVE_LAYER_COMMON_PATH_MIDDLEWARE", "${MW_OSS_IPK_PATH}")

        d.setVar("CVE_FEED_URL_MWOSS", "${MW_OSS}##${RDK_ARTIFACTS_BASE_URL}/${CVE_LAYER_COMMON_PATH_MIDDLEWARE}/${RDK_MW_ARCH}/tarball/cve/${BUILD_VARIANT}/${MW_OSS}.tgz")
        d.appendVar("CVE_LAYER_FEED_PATH", " ${CVE_FEED_URL_MWOSS};sha256sum=${MW_OSS_SHA256SUM}")

conf/machine/include/middleware.inc:34

  • CVE_LAYER_COMMON_PATH_MIDDLEWARE is defaulted here from MW_IPK_PATH, but it is also defaulted in oss_mw.inc from MW_OSS_IPK_PATH. Since oss_mw.inc is included earlier in this file, its defaulting can take precedence, leading to an unexpected CVE feed path for the non-OSS middleware feed when these paths diverge. Consider defaulting the shared path in a single place, or use distinct override variables per feed.
    if d.getVar("CVE_CHECK_ENABLED") == "1":
        if not d.getVar("CVE_LAYER_COMMON_PATH_MIDDLEWARE"):
            d.setVar("CVE_LAYER_COMMON_PATH_MIDDLEWARE", "${MW_IPK_PATH}")

        d.setVar("CVE_FEED_URL_MIDDLEWARE", "${MIDDLEWARE_ARCH}##${RDK_ARTIFACTS_BASE_URL}/${CVE_LAYER_COMMON_PATH_MIDDLEWARE}/${RDK_MW_ARCH}/tarball/cve/${BUILD_VARIANT}/${MIDDLEWARE_ARCH}.tgz")
        d.appendVar("CVE_LAYER_FEED_PATH", " ${CVE_FEED_URL_MIDDLEWARE};sha256sum=${MIDDLEWARE_ARCH_SHA256SUM}")
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread conf/machine/include/middleware.inc Resolved
Comment thread conf/machine/include/oss_mw.inc Resolved
Copilot AI review requested due to automatic review settings September 11, 2026 16:47

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.

🔵 Needs a closer look

Moderate issues remain around duplicate inclusion and the undeclared dynamic SHA provider dependency.

Review details

Suppressed comments (3)

conf/machine/include/middleware.inc:25

  • When STACK_LAYER_OSS_SUPPORT is enabled, middleware.inc includes oss_mw.inc at line 16, so conf/dynamic_sha.inc is included once from oss_mw.inc and then included again here. BitBake does not deduplicate include directives; any anonymous Python, task, or variable side effects in that externally supplied file can therefore be applied twice and duplicate the SHA/feed setup. Keep this include in one common location (or explicitly guard the second include) so OSS configurations parse it only once.
CVE_CONF_INCLUDE = "${@bb.utils.contains('CVE_CHECK_ENABLED', '1', 'conf/dynamic_sha.inc', '', d)}"
include ${CVE_CONF_INCLUDE}

conf/machine/include/middleware.inc:25

  • When CVE checking is enabled, this include relies on conf/dynamic_sha.inc being supplied by the external auxiliary layer, but this layer's conf/layer.conf still declares only core in LAYERDEPENDS_middleware-release. A consumer can therefore enable this layer and cve-check without the provider, leaving the checksum variables unavailable and the CVE feed configuration broken. Add the provider to the layer dependency (or otherwise make that dependency explicit) with this change.
CVE_CONF_INCLUDE = "${@bb.utils.contains('CVE_CHECK_ENABLED', '1', 'conf/dynamic_sha.inc', '', d)}"
include ${CVE_CONF_INCLUDE}

conf/machine/include/oss_mw.inc:17

  • This CVE-enabled path also depends on conf/dynamic_sha.inc from the external auxiliary layer, while conf/layer.conf declares only core in LAYERDEPENDS_middleware-release. Without the provider layer, the checksum variable used below is unavailable and the OSS CVE feed is invalid. Add the provider to the layer dependency or make that dependency explicit.
CVE_CONF_INCLUDE = "${@bb.utils.contains('CVE_CHECK_ENABLED', '1', 'conf/dynamic_sha.inc', '', d)}"
include ${CVE_CONF_INCLUDE}
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 13, 2026 21:21

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.

Copilot review overview

🔵 Needs a closer look

Resolve the middleware CVE path initialization issue before approval.

Review effort: Lite
Findings: 2 Low severity

Open (2)

goruklu
goruklu previously approved these changes Sep 24, 2026

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.

Copilot review overview

🔵 Needs a closer look

Moderate issues remain with shared path initialization and duplicate configuration inclusion.

Review effort: Lite
Findings: 2 Low severity

Open (2)

Copilot AI review requested due to automatic review settings September 29, 2026 11:09

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.

Copilot review overview

🔵 Needs a closer look

Parse-time include gating and OSS path initialization can leave checksum data missing or construct feed URLs from the wrong path.

Review effort: Lite
Findings: 2 Low severity

Open (2)

@jomothomas

Copy link
Copy Markdown
Author

The code set is able to get the expected dynamic_sha.inc if Vendor and Middleware artifacts are available.
Middleware
2026-09-28T09:33:30.4514596Z NOTE: /home/ubuntu/builds/rdk-e/rdk-yocto-gha-jobs/rdke/middleware/generic/meta-middleware-generic-support/recipes-core/images/middleware-test-image.bb: extract-sha256-cve: generating CVE feed SHA256 checksums -> /home/ubuntu/builds/rdk-e/rdk-yocto-gha-jobs/build-xione-uk/conf/dynamic_sha.inc

Image assembler
2026-10-01T21:50:31.9987969Z NOTE: /home/ubuntu/builds/rdk-e/rdk-yocto-gha-jobs/rdke/image-assembler/meta-rdk-images/recipes-images/rdk-fullstack-image.bb: extract-sha256-cve: generating CVE feed SHA256 checksums -> /home/ubuntu/builds/rdk-e/rdk-yocto-gha-jobs/build-xione-alpaca-de/conf/dynamic_sha.inc

@jomothomas

Copy link
Copy Markdown
Author

Please find the resolved paths after running bitbake -e for 2 platforms

Realtek XIONE

2026-10-08T13:36:59.9798715Z # $CVE_LAYER_FEED_PATH [5 operations]
2026-10-08T13:36:59.9800427Z # append vendor.inc:63 [__anon_70__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_vendor_meta_vendor_release_conf_machine_include_vendor_inc]
2026-10-08T13:36:59.9801529Z # " ${CVE_FEED_URL_COMMON};sha256sum=${VENDOR_COMMON_LAYER_EXTENSION_SHA256SUM}"
2026-10-08T13:36:59.9803082Z # append vendor.inc:66 [__anon_70__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_vendor_meta_vendor_release_conf_machine_include_vendor_inc]
2026-10-08T13:36:59.9804144Z # " ${CVE_FEED_URL_VENDOR};sha256sum=${VENDOR_LAYER_EXTENSION_SHA256SUM}"
2026-10-08T13:36:59.9805678Z # append vendor.inc:69 [__anon_70__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_vendor_meta_vendor_release_conf_machine_include_vendor_inc]
2026-10-08T13:36:59.9806596Z # " ${CVE_FEED_URL_OSS};sha256sum=${VENDOR_OSS_SHA256SUM}"
2026-10-08T13:36:59.9808183Z # append oss_mw.inc:26 [__anon_28__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_middleware_meta_middleware_release_conf_machine_include_oss_mw_inc]
2026-10-08T13:36:59.9809079Z # " ${CVE_FEED_URL_MWOSS};sha256sum=${MW_OSS_SHA256SUM}"
2026-10-08T13:36:59.9810850Z # append middleware.inc:34 [__anon_36__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_middleware_meta_middleware_release_conf_machine_include_middleware_inc]
2026-10-08T13:36:59.9812148Z # " ${CVE_FEED_URL_MIDDLEWARE};sha256sum=${MIDDLEWARE_ARCH_SHA256SUM}"
2026-10-08T13:36:59.9812909Z # pre-expansion value:
2026-10-08T13:36:59.9815779Z # " ${CVE_FEED_URL_COMMON};sha256sum=${VENDOR_COMMON_LAYER_EXTENSION_SHA256SUM} ${CVE_FEED_URL_VENDOR};sha256sum=${VENDOR_LAYER_EXTENSION_SHA256SUM} ${CVE_FEED_URL_OSS};sha256sum=${VENDOR_OSS_SHA256SUM} ${CVE_FEED_URL_MWOSS};sha256sum=${MW_OSS_SHA256SUM} ${CVE_FEED_URL_MIDDLEWARE};sha256sum=${MIDDLEWARE_ARCH_SHA256SUM}"
2026-10-08T13:36:59.9825910Z CVE_LAYER_FEED_PATH=" xione-rtk-common-vendor##https://partners.artifactory.comcast.com/artifactory/xione-uk-dbg/RDKOSS-1139/xione-uk/tarball/cve/debug/xione-rtk-common-vendor.tgz;sha256sum=64f563e7b1505ecc099f1afd9e44c3677bbe5577f6cedafcd48e1c345b148844 xione-uk-vendor##https://partners.artifactory.comcast.com/artifactory/xione-uk-dbg/RDKOSS-1139/xione-uk/tarball/cve/debug/xione-uk-vendor.tgz;sha256sum=d56ecafd16b9917533c73b8de4cba3fd2cc4869d7904938ac64379e00f62c49a rdk-arm7ve-oss-vendor##https://partners.artifactory.comcast.com/artifactory/xione-uk-dbg/RDKOSS-1139/xione-uk/tarball/cve/debug/rdk-arm7ve-oss-vendor.tgz;sha256sum=75b37d5d4dc624fe08f6310d81fa0937c8cfbb82e1cbc2f7ae594b66e42edac2 rdk-arm7ve-oss-middleware##https://partners.artifactory.comcast.com/artifactory/middleware-dbg/RDKOSS-1139-MW/rdkstb-armv7ve/tarball/cve/debug/rdk-arm7ve-oss-middleware.tgz;sha256sum=37b68b3907990e2d45fc157e1e1a16e360be3f33b8e68d96eb6e501656a4b0a6 rdkstb-armv7ve-middleware##https://partners.artifactory.comcast.com/artifactory/middleware-dbg/RDKOSS-1139-MW/rdkstb-armv7ve/tarball/cve/debug/rdkstb-armv7ve-middleware.tgz;sha256sum=049214ba3fa36cc38615633e1927fc8b50e3701f868235b498d68475d658be1c"
2026-10-08T13:36:59.9826684Z #

LLAMA

2026-10-08T13:38:31.3987673Z # $CVE_LAYER_FEED_PATH [4 operations]
2026-10-08T13:38:31.3988697Z # append oss_mw.inc:26 [__anon_28__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_middleware_meta_middleware_release_conf_machine_include_oss_mw_inc]
2026-10-08T13:38:31.3989376Z # " ${CVE_FEED_URL_MWOSS};sha256sum=${MW_OSS_SHA256SUM}"
2026-10-08T13:38:31.3990417Z # append middleware.inc:34 [__anon_36__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_middleware_meta_middleware_release_conf_machine_include_middleware_inc]
2026-10-08T13:38:31.3991148Z # " ${CVE_FEED_URL_MIDDLEWARE};sha256sum=${MIDDLEWARE_ARCH_SHA256SUM}"
2026-10-08T13:38:31.3992313Z # append vendor.inc:55 [__anon_59__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_vendor_meta_vendor_release_conf_machine_include_vendor_inc]
2026-10-08T13:38:31.3993071Z # " ${CVE_FEED_URL_VENDOR};sha256sum=${VENDOR_LAYER_EXTENSION_SHA256SUM}"
2026-10-08T13:38:31.3994037Z # append vendor.inc:58 [__anon_59__home_ubuntu_builds_rdk_e_rdk_yocto_gha_jobs_rdke_vendor_meta_vendor_release_conf_machine_include_vendor_inc]
2026-10-08T13:38:31.3994705Z # " ${CVE_FEED_URL_OSS};sha256sum=${VENDOR_OSS_SHA256SUM}"
2026-10-08T13:38:31.3995274Z # pre-expansion value:
2026-10-08T13:38:31.3996849Z # " ${CVE_FEED_URL_MWOSS};sha256sum=${MW_OSS_SHA256SUM} ${CVE_FEED_URL_MIDDLEWARE};sha256sum=${MIDDLEWARE_ARCH_SHA256SUM} ${CVE_FEED_URL_VENDOR};sha256sum=${VENDOR_LAYER_EXTENSION_SHA256SUM} ${CVE_FEED_URL_OSS};sha256sum=${VENDOR_OSS_SHA256SUM}"
2026-10-08T13:38:31.4001952Z CVE_LAYER_FEED_PATH=" rdk-arm7a-oss-middleware##https://partners.artifactory.comcast.com/artifactory/middleware-dbg/RDKOSS-1139G2-MWR1/rdktv-uk-armv7a/tarball/cve/debug/rdk-arm7a-oss-middleware.tgz;sha256sum=4a1a58d6c2751e9e9c031f7f2a0aa60d891a29c908b64637d493003368fd4d02 rdktv-uk-armv7a-middleware##https://partners.artifactory.comcast.com/artifactory/middleware-dbg/RDKOSS-1139G2-MWR1/rdktv-uk-armv7a/tarball/cve/debug/rdktv-uk-armv7a-middleware.tgz;sha256sum=960718593693f0de50614956e762a20295111556d7704056de0c93c2a58091e6 sky-llama-g2-vendor##https://partners.artifactory.comcast.com/artifactory/sky-llama-g2-dbg/RDKOSS-1139-LlamaG2VL/sky-llama-g2/tarball/cve/debug/sky-llama-g2-vendor.tgz;sha256sum=50b2758688d9d4784bb972100d07b29708f14181a3085e8756dcdb21c1ab8969 rdk-arm7a-oss-vendor##https://partners.artifactory.comcast.com/artifactory/sky-llama-g2-dbg/RDKOSS-1139-LlamaG2VL/sky-llama-g2/tarball/cve/debug/rdk-arm7a-oss-vendor.tgz;sha256sum=8e0ad77ba424033d4488e6e82ef2edb35b057bafac96aa0179fb230da91f4c9c"

@bpunnuru bpunnuru left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good.

Copilot AI lite review requested due to automatic review settings October 15, 2026 22:44
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

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.

Comment thread conf/machine/include/middleware.inc Resolved
@jomothomas

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

🔵 Needs a closer look

Moderate issues remain with path selection and duplicate shared-file inclusion.

2 open findings
1 resolved since last review

🧠 Review effort: Lite

Copilot AI lite review requested due to automatic review settings October 29, 2026 18:02

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.

🟡 Changes recommended

The extractor expands CVE_LAYER_FEED_PATH before parsing, so it cannot identify the SHA-256 output variables and leaves both middleware checksum variables unpopulated.

2 open issues
2 resolved since last review

Review effort: Lite

d.setVar("CVE_LAYER_COMMON_PATH_MIDDLEWARE", "${MW_IPK_PATH}")

d.setVar("CVE_FEED_URL_MIDDLEWARE", "${MIDDLEWARE_ARCH}##${RDK_ARTIFACTS_BASE_URL}/${CVE_LAYER_COMMON_PATH_MIDDLEWARE}/${RDK_MW_ARCH}/tarball/cve/${BUILD_VARIANT}/${MIDDLEWARE_ARCH}.tgz")
d.appendVar("CVE_LAYER_FEED_PATH", " ${CVE_FEED_URL_MIDDLEWARE};sha256sum=${MIDDLEWARE_ARCH_SHA256SUM}")
d.setVar("CVE_LAYER_COMMON_PATH_MIDDLEWARE", "${MW_OSS_IPK_PATH}")

d.setVar("CVE_FEED_URL_MWOSS", "${MW_OSS}##${RDK_ARTIFACTS_BASE_URL}/${CVE_LAYER_COMMON_PATH_MIDDLEWARE}/${RDK_MW_ARCH}/tarball/cve/${BUILD_VARIANT}/${MW_OSS}.tgz")
d.appendVar("CVE_LAYER_FEED_PATH", " ${CVE_FEED_URL_MWOSS};sha256sum=${MW_OSS_SHA256SUM}")
@svc-rdkeportal01

Copy link
Copy Markdown

CCI-Build-Verified +1
sha: 6c7004a

1 similar comment
@svc-rdkeportal01

Copy link
Copy Markdown

CCI-Build-Verified +1
sha: 6c7004a

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.

RDKEMW-23527 : Inherit extract-sha-cve bbclass for CVE support

6 participants