Prechádzať zdrojové kódy

tegra: add 6.12 as testing kernel

Introduce LED migration script as the names have changed.

Signed-off-by: Tomasz Maciej Nowak <[email protected]>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/[email protected]/
Signed-off-by: Hauke Mehrtens <[email protected]>
Tomasz Maciej Nowak 6 mesiacov pred
rodič
commit
1d3cfe8eb0

+ 1 - 0
target/linux/tegra/Makefile

@@ -13,6 +13,7 @@ CPU_SUBTYPE := vfpv3-d16
 SUBTARGETS := generic
 
 KERNEL_PATCHVER := 6.6
+KERNEL_TESTING_PATCHVER := 6.12
 
 include $(INCLUDE_DIR)/target.mk
 

+ 16 - 0
target/linux/tegra/base-files/etc/uci-defaults/04_led_migration

@@ -0,0 +1,16 @@
+. /lib/functions.sh
+. /lib/functions/migrations.sh
+
+board=$(board_name)
+
+case "$board" in
+compulab,trimslice)
+	migrate_leds "trimslice:green:right=green:indicator-2" "trimslice:green:left=green:indicator-3"
+	;;
+esac
+
+remove_devicename_leds
+
+migrations_apply system
+
+exit 0