Makefile 392 B

123456789101112131415161718192021
  1. PY3 = $(shell which python3 2>/dev/null)
  2. ifneq ($(PY3),)
  3. TEST_PROGS := test_unprobed_devices.sh
  4. TEST_GEN_FILES := compatible_list
  5. TEST_FILES := compatible_ignore_list
  6. include ../lib.mk
  7. $(OUTPUT)/compatible_list:
  8. $(top_srcdir)/scripts/dtc/dt-extract-compatibles -d $(top_srcdir) > $@
  9. else
  10. all: no_py3_warning
  11. no_py3_warning:
  12. @echo "Missing python3. This test will be skipped."
  13. endif