4 Commits
Author SHA1 Message Date
Bjorn Andersson d1fdb7efc5 contents: load selected programmer images
Consumers that only need Sahara programmer images must not also construct
the Firehose operations used for flashing. Add a dedicated loading path
that resolves exactly one contents.xml storage/flavor combination and
returns its programmer images.

Pass the resolved selection through programmer discovery and Sahara XML
payload resolution. This prevents a valid selector from being accepted
while silently selecting a different programmer variant.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
2026-08-18 21:01:27 +00:00
Igor Opaniuk 0122582b1c build: point meson at the new src/ layout
Every source change funnells through the single ~200-line
root meson.build that enumerated the sources for all binaries,
so touching one area means editing a file that mostly described
unrelated code.

Declare the source lists in src/meson.build and the tests in
tests/meson.build and pull them in with subdir(). The root meson.build
is then left to compose (dependencies, version header, targets) while
the list of files to build lives next to the files themselves, so
adding or removing a source is a one-line edit in one obvious place.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
2026-06-20 14:47:46 -05:00
Bjorn Andersson 908e3a78d2 contents: Look for OS-specific path tag
The contents.xml provides two different "root path" tags, one with Linux
and one with Windows path delimiters. Use the Windows tag to avoid
issues related to path traversal.

Extend the tests as necessary.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
2026-05-16 16:36:27 -05:00
Bjorn Andersson ed114a5e3d tests: Introduce test cases for contents XML handling
Introduce two initial set of test cases for the newly introduced
contents.xml handling.

One is used to validate the storage and flavor selector logic, and the
other more broadly the loading of contents.xml files.

Extract the common operation of creating a temporary directory to a new
file that is shared across tests.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
2026-05-14 16:39:30 -05:00