qoriq: add /etc/board.d/05_fix-compat-version
authorStijn Tintel <stijn@linux-ipv6.be>
Thu, 16 Jun 2022 20:48:14 +0000 (23:48 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 8 Feb 2023 15:18:04 +0000 (17:18 +0200)
This file is needed to increase compat_version in /etc/config/system so
that it matches BOARD_COMPAT_VERSION in the device profile.

Fixes: c4b499bc03ab ("qoriq: use FIT uImage for Firebox M300 kernel")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/qoriq/base-files/etc/board.d/05_fix-compat-version [new file with mode: 0644]

diff --git a/target/linux/qoriq/base-files/etc/board.d/05_fix-compat-version b/target/linux/qoriq/base-files/etc/board.d/05_fix-compat-version
new file mode 100644 (file)
index 0000000..1c24a97
--- /dev/null
@@ -0,0 +1,10 @@
+. /lib/functions.sh
+
+case "$(board_name)" in
+watchguard,firebox-m300)
+       uci set system.@system[0].compat_version="1.1"
+       uci commit system
+       ;;
+esac
+
+exit 0