Files
pruefwerk/fixtures/nightly/firmware
Sharang ParnerkarandClaude Opus 5.5 e2e95e636b
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 10m32s
feat(yocto): recipes an image recipe installs are marked as in the image (declared)
The recipe helper now also reads the image recipes (inherit core-image/image,
or *-image*.bb / an image bbappend that declares installs), local.conf.sample
and distro configurations: IMAGE_INSTALL and CORE_IMAGE_EXTRA_INSTALL with
=, ?=, +=, :append, the old _append and :remove, and IMAGE_FEATURES /
EXTRA_IMAGE_FEATURES. Package groups in the tree are read with their
RDEPENDS/RRECOMMENDS per package, and each recipe with the packages its
PACKAGES names. Still oelint-parser, nothing executed; the recipe inventory
itself is unchanged (checked against Poky's meta: 834 identical recipes).

The agent maps the declared names to recipes (recipe name, PACKAGES,
default -dev/-dbg/... packages), expands package groups one level and maps
IMAGE_FEATURES to OE-Core's FEATURE_PACKAGES groups only where they are in
the tree. Components get SbomEntry.in_image {basis: declared, images}, an
evidence line, a CycloneDX property pruefwerk:component:in_image and the
SPDX package comment. Names not in the tree are listed on the run
(image_install, SkipCode::NotInTree); no component is invented.

The SBOM list sorts in-image components first and filters by in_image; the
dashboard shows an "Im Image (deklariert)" badge and filter whose tooltip
says it is read from the recipes, not resolved by bitbake.

The nightly fixture's image installs a package group (packagegroup-pump ->
pump-web-ui of pump-web); pump-fw stays in no image. Baseline updated; the
nine recipe-lint findings are unchanged. Drops the .pyc committed by #551.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-09 19:45:52 +02:00
..

Firmware fixtures for the nightly scan regression (#313)

Each directory is uploaded as a source archive (the harness zips it) and exercises one Firmwerk build-system provider. Most are copied from Firmwerk's own provider tests (crates/firmwerk-core/tests/fixtures, Firmwerk v0.4.2), extended with the manifests a real project carries (marked "+"), which the SBOM reads as declared dependencies (#317):

Directory Firmwerk fixture Provider
make make Make
cmake cmake CMake with a toolchain file
arduino arduino Arduino (sketch.yaml)
platformio platformio-real PlatformIO (pinned platform, + lib_deps)
cargo-embedded cargo_embedded embedded Rust (+ pinned rust-toolchain.toml)
espidf espidf ESP-IDF (+ main/idf_component.yml)
zephyr-pinned zephyr-pinned Zephyr (west.yml, pinned revision, + module imports)
freertos-cmake (ours) CMake pulling the FreeRTOS kernel with FetchContent at a pinned tag
freertos-lostbuild lostbuild source archaeology: no build system, FreeRTOS found from its headers
c-sensor-node (ours) Make; C/C++ SAST (#334): planted flaws in Core/, a vendored HAL in Drivers/ that must not be reported
embedded-libs (ours) Make; FreeRTOS 10.3.1, lwIP 2.1.2 and Mbed TLS 2.16.2 vendored as source: versions read from their headers, CVEs matched in NVD by CPE. The headers hold only the version defines
yocto-layer (ours) none: detected as a BitBake layer tree (build_system = bitbake); the recipe lint reports the image's debug-tweaks and allow-empty-password, a password hash in EXTRA_USERS_PARAMS, an http:// fetch without a checksum, a task with network access, AUTOREV, PermitRootLogin yes and a distro without security_flags.inc; the recipe inventory lists the recipes (BusyBox 1.35.0 and libmodbus 3.1.6 with NVD CVEs; BusyBox carries a CVE_STATUS, a CVE_STATUS_GROUPS entry in a .bbappend and a CVE: patch) and marks four of them as in pump-image (declared: three in IMAGE_INSTALL, pump-web through packagegroup-pump by its package pump-web-ui), pump-fw in no image

make is also onboarded as a backend service (fw-make-onboarded-as-service): the firmware SBOM follows detection, not the type picked in the wizard.

When Firmwerk's detection changes on purpose, refresh the copy and re-bless.

The baselines record what each manifest declares (library:zephyr@v3.6.0, library:espressif/led_strip@2.5.3) and, where a manifest gives a range instead of a version, the row carries the requirement rather than a version a CVE could be matched against.