sof/smex
Marc Herbert ee58fef921 smex/cmake: move -Wl,EL option to target_linker_options() for clang
-Wl,EL is a linker option, not a compiler option and clang does not
like it at compilation time; it fails like this:
```
cd smex
cmake -B build -DCMAKE_C_COMPILER=clang
make -C build

clang-15: error: -Wl,-EL: 'linker' input unused
          [-Werror,-Wunused-command-line-argument]
```

Reported by @andyross in https://github.com/google/oss-fuzz/pull/10342

oss-fuzz does not need smex at all but this one-line fix is just
faster and simpler than a bigger CMake re-architecture just for
oss-fuzz.

Also simplify this for clang compatibility:
```
error: unknown warning option '-Wimplicit-fallthrough=3'; did you mean
     '-Wimplicit-fallthrough'? [-Werror,-Wunknown-warning-option]
```

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2023-05-22 15:06:41 +03:00
..
CMakeLists.txt smex/cmake: move -Wl,EL option to target_linker_options() for clang 2023-05-22 15:06:41 +03:00
README.md smex: Create new tool to build ldc file 2020-04-03 16:27:04 +01:00
elf.c smex: use strerror() 2021-07-06 13:18:46 +01:00
elf.h smex: Create new tool to build ldc file 2020-04-03 16:27:04 +01:00
elf_defs.h cleanup: remove double blanks lines. 2021-04-12 16:58:51 +01:00
ldc.c smex: log versions with a dot (3.18.1) instead of a colon (3:18:1) 2021-04-13 21:26:24 +01:00
ldc.h smex/ldc.h: stop including rimage/sof/kernel/fw.h 2021-08-24 13:22:47 +03:00
smex.c smex: change usage() to exit with an error 2021-07-13 15:56:49 +01:00
smex.h smex: Create new tool to build ldc file 2020-04-03 16:27:04 +01:00

README.md

SOF Metadata Extractor

SMEX (SOF Metadata EXtractor) is a tool used to extract needed information from SOF source code and output files and then put then save them in convenient form like logs dictionary file (ldc).