Skip to content

Commit

Permalink
firmware: cs_dsp: Add mock wmfw file generator for KUnit testing
Browse files Browse the repository at this point in the history
Add a mock firmware file that emulates what the firmware build tools
would normally create. This will be used by KUnit tests to generate a
test wmfw file.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20241212143725.1381013-4-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
rfvirgil authored and broonie committed Dec 13, 2024
1 parent 41e78c0 commit 5cf1b7b
Show file tree
Hide file tree
Showing 3 changed files with 508 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/firmware/cirrus/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
cs_dsp_test_utils-objs := \
cs_dsp_mock_mem_maps.o \
cs_dsp_mock_regmap.o \
cs_dsp_mock_utils.o
cs_dsp_mock_utils.o \
cs_dsp_mock_wmfw.o

obj-$(CONFIG_FW_CS_DSP_KUNIT_TEST_UTILS) += cs_dsp_test_utils.o
Loading

0 comments on commit 5cf1b7b

Please sign in to comment.