Skip to content

Commit cb057a5

Browse files
softwareckikv2019i
authored andcommitted
rimage: manifest: llext: Get uuid from registry & change uuid type
Change the UUID storage type in the module manifest to a sof-compatible structure to enable retrieval of the UUIDs from the registry. Obtain the UUIDs of loadable llext modules from the uuid-registry. Signed-off-by: Adrian Warecki <[email protected]>
1 parent b865bca commit cb057a5

File tree

27 files changed

+43
-105
lines changed

27 files changed

+43
-105
lines changed

lmdk/libraries/dummy/dummy_mtl.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ count = 1
6060

6161
[[module.entry]]
6262
name = "DUMMY"
63-
uuid = "01010101-0101-0101-0101-010101010101"
63+
uuid = "01234567-89AB-CDEF-0102-030405060708"
6464
affinity_mask = "0x1"
6565
instance_count = "15"
6666
domain_types = "0"

lmdk/modules/dummy/dummy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ __attribute__((section(".module")))
1818
const struct sof_man_module_manifest dummy_module_manifest = {
1919
.module = {
2020
.name = "DUMMY",
21-
.uuid = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
21+
.uuid = { 0x01234567, 0x89AB, 0xCDEF, { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
22+
0x08 }},
2223
.entry_point = (uint32_t)dummyPackageEntryPoint,
2324
.type = {
2425
.load_type = SOF_MAN_MOD_TYPE_MODULE,

src/audio/aria/aria.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,10 @@ SOF_MODULE_INIT(aria, sys_comp_module_aria_interface_init);
319319
#include <module/module/llext.h>
320320
#include <rimage/sof/user/manifest.h>
321321

322-
#define UUID_ARIA 0x6D, 0x16, 0xF7, 0x99, 0x2C, 0x37, 0xEF, 0x43, 0xF6, 0x81, \
323-
0x22, 0x00, 0x7A, 0xA1, 0x5F, 0x03
324-
325322
SOF_LLEXT_MOD_ENTRY(aria, &aria_interface);
326323

327324
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
328-
SOF_LLEXT_MODULE_MANIFEST("ARIA", aria_llext_entry, 1, UUID_ARIA, 8);
325+
SOF_LLEXT_MODULE_MANIFEST("ARIA", aria_llext_entry, 1, SOF_REG_UUID(aria), 8);
329326

330327
SOF_LLEXT_BUILDINFO;
331328

src/audio/asrc/asrc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,12 +879,10 @@ SOF_MODULE_INIT(asrc, sys_comp_module_asrc_interface_init);
879879
#include <module/module/llext.h>
880880
#include <rimage/sof/user/manifest.h>
881881

882-
#define UUID_ASRC 0x2d, 0x40, 0xb4, 0x66, 0x68, 0xb4, 0xf2, 0x42, \
883-
0x81, 0xa7, 0xb3, 0x71, 0x21, 0x86, 0x3d, 0xd4
884882
SOF_LLEXT_MOD_ENTRY(asrc, &asrc_interface);
885883

886884
static const struct sof_man_module_manifest mod_manifest[] __section(".module") __used = {
887-
SOF_LLEXT_MODULE_MANIFEST("ASRC", asrc_llext_entry, 1, UUID_ASRC, 2),
885+
SOF_LLEXT_MODULE_MANIFEST("ASRC", asrc_llext_entry, 1, SOF_REG_UUID(asrc4), 2),
888886
};
889887

890888
SOF_LLEXT_BUILDINFO;

src/audio/codec/dts/dts.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,10 @@ SOF_MODULE_INIT(dts, sys_comp_module_dts_interface_init);
478478
#include <module/module/llext.h>
479479
#include <rimage/sof/user/manifest.h>
480480

481-
#define UUID_DTS 0x4F, 0xC3, 0x5F, 0xD9, 0x0F, 0x37, 0xC7, 0x4A, 0x86, 0xBC, \
482-
0xBF, 0xDC, 0x5B, 0xE2, 0x41, 0xE6
483-
484481
SOF_LLEXT_MOD_ENTRY(dts, &dts_interface);
485482

486483
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
487-
SOF_LLEXT_MODULE_MANIFEST("DTS", dts_llext_entry, 1, UUID_DTS, 40);
484+
SOF_LLEXT_MODULE_MANIFEST("DTS", dts_llext_entry, 1, SOF_REG_UUID(dts), 40);
488485

489486
SOF_LLEXT_BUILDINFO;
490487

src/audio/crossover/crossover.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,10 @@ SOF_MODULE_INIT(crossover, sys_comp_module_crossover_interface_init);
639639
#include <module/module/llext.h>
640640
#include <rimage/sof/user/manifest.h>
641641

642-
#define UUID_CROSSOVER 0xD1, 0x9A, 0x8C, 0x94, 0x6A, 0x80, 0x31, 0x41, 0x6C, 0xAD, \
643-
0xB2, 0xBD, 0xA9, 0xE3, 0x5A, 0x9F
644-
645642
SOF_LLEXT_MOD_ENTRY(crossover, &crossover_interface);
646643

647644
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
648-
SOF_LLEXT_MODULE_MANIFEST("XOVER", crossover_llext_entry, 1, UUID_CROSSOVER, 40);
645+
SOF_LLEXT_MODULE_MANIFEST("XOVER", crossover_llext_entry, 1, SOF_REG_UUID(crossover), 40);
649646

650647
SOF_LLEXT_BUILDINFO;
651648

src/audio/dcblock/dcblock.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,10 @@ SOF_MODULE_INIT(dcblock, sys_comp_module_dcblock_interface_init);
264264
#include <module/module/llext.h>
265265
#include <rimage/sof/user/manifest.h>
266266

267-
#define UUID_DCBLOCK 0xAF, 0xEF, 0x09, 0xB8, 0x81, 0x56, 0xB1, 0x42, 0xD6, 0x9E, \
268-
0x04, 0xBB, 0x01, 0x2D, 0xD3, 0x84
269-
270267
SOF_LLEXT_MOD_ENTRY(dcblock, &dcblock_interface);
271268

272269
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
273-
SOF_LLEXT_MODULE_MANIFEST("DCBLOCK", dcblock_llext_entry, 1, UUID_DCBLOCK, 40);
270+
SOF_LLEXT_MODULE_MANIFEST("DCBLOCK", dcblock_llext_entry, 1, SOF_REG_UUID(dcblock), 40);
274271

275272
SOF_LLEXT_BUILDINFO;
276273

src/audio/drc/drc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,10 @@ SOF_MODULE_INIT(drc, sys_comp_module_drc_interface_init);
410410
#include <module/module/api_ver.h>
411411
#include <rimage/sof/user/manifest.h>
412412

413-
#define UUID_DRC 0xda, 0xe4, 0x6e, 0xb3, 0x6f, 0x00, 0xf9, 0x47, \
414-
0xa0, 0x6d, 0xfe, 0xcb, 0xe2, 0xd8, 0xb6, 0xce
415-
416413
SOF_LLEXT_MOD_ENTRY(drc, &drc_interface);
417414

418415
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
419-
SOF_LLEXT_MODULE_MANIFEST("DRC", drc_llext_entry, 1, UUID_DRC, 40);
416+
SOF_LLEXT_MODULE_MANIFEST("DRC", drc_llext_entry, 1, SOF_REG_UUID(drc), 40);
420417

421418
SOF_LLEXT_BUILDINFO;
422419

src/audio/eq_fir/eq_fir.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,10 @@ SOF_MODULE_INIT(eq_fir, sys_comp_module_eq_fir_interface_init);
488488
#include <module/module/llext.h>
489489
#include <rimage/sof/user/manifest.h>
490490

491-
#define UUID_EQFIR 0xe7, 0x0c, 0xa9, 0x43, 0xa5, 0xf3, 0xdf, 0x41, \
492-
0xac, 0x06, 0xba, 0x98, 0x65, 0x1a, 0xe6, 0xa3
493-
494491
SOF_LLEXT_MOD_ENTRY(eq_fir, &eq_fir_interface);
495492

496493
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
497-
SOF_LLEXT_MODULE_MANIFEST("EQFIR", eq_fir_llext_entry, 1, UUID_EQFIR, 40);
494+
SOF_LLEXT_MODULE_MANIFEST("EQFIR", eq_fir_llext_entry, 1, SOF_REG_UUID(eq_fir), 40);
498495

499496
SOF_LLEXT_BUILDINFO;
500497

src/audio/eq_iir/eq_iir.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,10 @@ SOF_MODULE_INIT(eq_iir, sys_comp_module_eq_iir_interface_init);
258258
#include <module/module/llext.h>
259259
#include <rimage/sof/user/manifest.h>
260260

261-
#define UUID_EQIIR 0xE6, 0xC0, 0x50, 0x51, 0xF9, 0x27, 0xC8, 0x4E, \
262-
0x83, 0x51, 0xC7, 0x05, 0xB6, 0x42, 0xD1, 0x2F
263-
264261
SOF_LLEXT_MOD_ENTRY(eq_iir, &eq_iir_interface);
265262

266263
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
267-
SOF_LLEXT_MODULE_MANIFEST("EQIIR", eq_iir_llext_entry, 1, UUID_EQIIR, 40);
264+
SOF_LLEXT_MODULE_MANIFEST("EQIIR", eq_iir_llext_entry, 1, SOF_REG_UUID(eq_iir), 40);
268265

269266
SOF_LLEXT_BUILDINFO;
270267

0 commit comments

Comments
 (0)