diff --git a/.ci/check-dtb-install-location.sh b/.ci/check-dtb-install-location.sh new file mode 100755 index 000000000..ba9765753 --- /dev/null +++ b/.ci/check-dtb-install-location.sh @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if grep -r 'INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb'; then + echo 'Please do not install dtbs to /usr/share/dtb!' + echo 'Unless you have a good reason not to, please put them in /boot/dtbs' + exit 1 +fi diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4b564adaa..7ece11967 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,6 +71,7 @@ aports-static: script: - su pmos -c ".ci/run_testcases.sh" - su pmos -c ".ci/check_changed_aports_versions.py" + - su pmos -c ".ci/check-dtb-install-location.sh" artifacts: when: on_failure paths: