Skip to content

[SKIP SOF-TEST] scripts/fuzz.sh: fix multiple issues with "stub" overlays#8411

Merged
lgirdwood merged 1 commit intothesofproject:mainfrom
marc-hb:fix-fuzz-stubs
Oct 31, 2023
Merged

[SKIP SOF-TEST] scripts/fuzz.sh: fix multiple issues with "stub" overlays#8411
lgirdwood merged 1 commit intothesofproject:mainfrom
marc-hb:fix-fuzz-stubs

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Oct 28, 2023

Fixes commit deed9a8 ("scripts: fuzz: add support for build and overlays")

The main issue was the way fuzz.sh was trying to parse the overlay file. Drop that and just pass it as is to west and cmake instead, they know what to do with it.

Also:

  • Fix invalid syntax in stub_build_all_ipc4.conf
  • Make fuzz.sh shellcheck-clean again. Always use shellcheck.
  • Temporarily disable CONFIG_COMP_SMART_AMP in stub_build_all_ipc3.conf because smart_amp.c does not compile (in any configuration)
sof/src/audio/smart_amp/smart_amp.c:748:9: error:
   no member named 'in_channels' in 'struct smart_amp_data'
   sad->in_channels = audio_stream_get_channels(&source_buffer->stream);

@marc-hb marc-hb changed the title scripts/fuzz.sh: fix multiple issues with "stub" overlays [SKIP SOF-TEST] scripts/fuzz.sh: fix multiple issues with "stub" overlays Oct 28, 2023
Fixes commit deed9a8 ("scripts: fuzz: add support for build and
overlays")

The main issue was the way fuzz.sh was trying to parse the overlay
file. Drop that and just pass it as is to `west` and `cmake` instead,
they know what to do with it.

Also:

- Fix invalid syntax in stub_build_all_ipc4.conf
- Make fuzz.sh shellcheck-clean again. Always use shellcheck.
- Temporarily disable `CONFIG_COMP_SMART_AMP` in
  stub_build_all_ipc3.conf because `smart_amp.c` does not compile (in
  any configuration)

```
sof/src/audio/smart_amp/smart_amp.c:748:9: error:
   no member named 'in_channels' in 'struct smart_amp_data'
   sad->in_channels = audio_stream_get_channels(&source_buffer->stream);
```

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@lgirdwood lgirdwood merged commit 6458f48 into thesofproject:main Oct 31, 2023
@marc-hb marc-hb deleted the fix-fuzz-stubs branch October 31, 2023 14:35
# temporarily disabled until it compiles:
# sof/src/audio/smart_amp/smart_amp.c:748:9: error:
# no member named 'in_channels' in 'struct smart_amp_data'
# sad->in_channels = audio_stream_get_channels(&source_buffer->stream);
Copy link
Collaborator Author

@marc-hb marc-hb Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnylin76 can you fix smart_amp.c compilation and re-enable?

EDIT: good at last?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants