mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
0a8adf5847
This provides a simple interface to trigger the firmware_class loader to test built-in, filesystem, and user helper modes. Additionally adds tests via the new interface to the selftests tree. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
28 lines
655 B
Makefile
28 lines
655 B
Makefile
# Makefile for firmware loading selftests
|
|
|
|
# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
|
|
all:
|
|
|
|
fw_filesystem:
|
|
@if /bin/sh ./fw_filesystem.sh ; then \
|
|
echo "fw_filesystem: ok"; \
|
|
else \
|
|
echo "fw_filesystem: [FAIL]"; \
|
|
exit 1; \
|
|
fi
|
|
|
|
fw_userhelper:
|
|
@if /bin/sh ./fw_userhelper.sh ; then \
|
|
echo "fw_userhelper: ok"; \
|
|
else \
|
|
echo "fw_userhelper: [FAIL]"; \
|
|
exit 1; \
|
|
fi
|
|
|
|
run_tests: all fw_filesystem fw_userhelper
|
|
|
|
# Nothing to clean up.
|
|
clean:
|
|
|
|
.PHONY: all clean run_tests fw_filesystem fw_userhelper
|