]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
CI: Add a check for pre-schema driver model tags
authorSimon Glass <sjg@chromium.org>
Mon, 13 Feb 2023 15:56:39 +0000 (08:56 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 14 Feb 2023 16:43:27 +0000 (09:43 -0700)
These should not be used anymore. Add a check to ensure they don't creek
back into U-Boot. Use bootph-... instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
.azure-pipelines.yml
.gitlab-ci.yml

index 947c400f8d3d3400de4bebc3aad42da983a198cf..8327edf87aa14434cfa55ffc8132ccbd2f1fbc45 100644 (file)
@@ -213,6 +213,18 @@ stages:
           export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
           make pylint_err
 
+  - job: check_for_pre_schema_tags
+    displayName: 'Check for pre-schema driver model tags'
+    pool:
+      vmImage: $(ubuntu_vm)
+    container:
+      image: $(ci_runner_image)
+      options: $(container_option)
+    steps:
+      # If grep succeeds and finds a match the test fails as we should
+      # have no matches.
+      - script: git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
+
 - stage: test_py
   jobs:
   - job: test_py
index 272d69e2206f845538c31b9a02ed3bdccf07849c..c3ceca2974d3753be10a7806d89ddeaa39f8d4fd 100644 (file)
@@ -235,6 +235,15 @@ Run pylint:
     - export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
     - make pylint_err
 
+# Check for pre-schema driver model tags
+Check for pre-schema tags:
+  stage: testsuites
+  script:
+    - git config --global --add safe.directory "${CI_PROJECT_DIR}";
+    # If grep succeeds and finds a match the test fails as we should
+    # have no matches.
+    - git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
+
 # Test sandbox with test.py
 sandbox test.py:
   variables: