Add custom rpi-config
authorHugo Villeneuve <hugo@hugovil.com>
Tue, 17 Jan 2023 22:08:25 +0000 (17:08 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 1 Mar 2023 17:10:15 +0000 (12:10 -0500)
raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend [new file with mode: 0644]

diff --git a/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend b/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend
new file mode 100644 (file)
index 0000000..b9f3a50
--- /dev/null
@@ -0,0 +1,7 @@
+do_deploy:append() {
+    # Enable alsa audio support
+    sed -i 's/^#\(dtparam=audio=\).*/\1on/' $CONFIG
+
+    # Force ALSA to use analogue output:
+    sed -i 's/^#\(hdmi_ignore_edid_audio=\).*/\11/' $CONFIG
+}