| Message ID | 20260319-bootconfig-v1-3-a4d467c3f0ba@valla.it |
|---|---|
| State | New |
| Headers | show |
| Series | Add support for bootconfig on initramfs and FIT images | expand |
diff --git a/meta-selftest/recipes-test/bootconfig/bootconfig-test.bb b/meta-selftest/recipes-test/bootconfig/bootconfig-test.bb new file mode 100644 index 0000000000000000000000000000000000000000..0cf74fa93652009466220f21001923a81d628a2e --- /dev/null +++ b/meta-selftest/recipes-test/bootconfig/bootconfig-test.bb @@ -0,0 +1,20 @@ +SUMMARY = "Test bootconfig" +DESCRIPTION = "This generates a dummy bootconfig to be used to for testing." +LICENSE = "MIT" + +SRC_URI = "file://bootconfig-test.txt" + +EXCLUDE_FROM_WORLD = "1" + +inherit deploy nopackages + +do_configure[noexec] = "1" +do_compile[noexec] = "1" +deltask do_stash_locale +deltask do_install +deltask do_populate_sysroot + +do_deploy() { + install -m0664 ${UNPACKDIR}/bootconfig-test.txt ${DEPLOYDIR}/bootconfig-test.txt +} +addtask deploy after do_unpack before do_build diff --git a/meta-selftest/recipes-test/bootconfig/bootconfig-test/bootconfig-test.txt b/meta-selftest/recipes-test/bootconfig/bootconfig-test/bootconfig-test.txt new file mode 100644 index 0000000000000000000000000000000000000000..c194018b0bd0e225aaf01a49dff78fcaebe8a7d4 --- /dev/null +++ b/meta-selftest/recipes-test/bootconfig/bootconfig-test/bootconfig-test.txt @@ -0,0 +1,6 @@ +kernel { + root = 01234567-89ab-cdef-0123-456789abcd +} +init { + splash +}
Add a test recipe deploying a fixed bootconfig source file to DEPLOY_DIR_IMAGE, to be used in tests that expect a bootconfig to be available. Signed-off-by: Francesco Valla <francesco@valla.it> --- .../recipes-test/bootconfig/bootconfig-test.bb | 20 ++++++++++++++++++++ .../bootconfig/bootconfig-test/bootconfig-test.txt | 6 ++++++ 2 files changed, 26 insertions(+)