automated: linux: modules: add platform compatibility detection and smart skipping

Add intelligent platform detection to skip hardware-incompatible modules
and modules with known issues, reducing false positive test failures.

New features:
- Platform compatibility detection for ACPI, device tree, and vendor-specific modules
- Dependency checking before module removal to prevent unload failures
- Smart skipping with proper LAVA test result reporting
- Graceful handling of modules that cannot be safely removed

Platform-specific handling:
- Skip ACPI modules (cppc_cpufreq) on non-ACPI systems
- Skip Allwinner modules (sun*i) on non-Allwinner platforms
- Skip MediaTek modules with known unload issues (mtk-adsp-ipc)
- Check module dependencies before attempting removal

This significantly reduces false positive failures caused by:
1. Hardware compatibility issues (modules requiring missing hardware)
2. Module dependency conflicts during removal
3. Platform-specific driver limitations

The changes maintain backward compatibility while providing more accurate
test results focused on actual functionality rather than hardware availability.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 file changed
tree: 742d0bb93d88719ad0b08e8d347e23ab147508bc
  1. .github/
  2. .reuse/
  3. automated/
  4. docs/
  5. LICENSES/
  6. manual/
  7. mkdocs_plugin/
  8. plans/
  9. test/
  10. .gitignore
  11. .readthedocs.yml
  12. COPYING
  13. COPYRIGHTS
  14. mkdocs.yml
  15. README.md
  16. sanity-check.sh
  17. test.sh
  18. validate.py
README.md

Build Status REUSE Compliance Check

Test Definitions

A set of testing scripts designed to work with LAVA. Also contains test-runner script that allows execution outside LAVA.

More details in docs