From 7e5a23503adeff4d742b7381bf546e0035587631 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Linus=20L=C3=BCssing?= <linus.luessing@c0d3.blue>
Date: Fri, 10 Nov 2023 05:33:40 +0100
Subject: [PATCH] bcm27xx: switch from ext4 to squashfs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Similar to x86 build images with a squashfs instead of ext4 filesystem
on bcm27xx / for the Raspberry Pi. This allows to use sysupgrade
properly and allows to use the firstboot command.

Runtime tested on a Raspberry Pi 4. Build tested for the Pi 3 / bcm2710.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
---
 targets/bcm27xx.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/targets/bcm27xx.inc b/targets/bcm27xx.inc
index e15988b4d..2898fda4c 100644
--- a/targets/bcm27xx.inc
+++ b/targets/bcm27xx.inc
@@ -1,6 +1,7 @@
+-- We do not use the ext4 images, so we do not want to build them.
+config('TARGET_ROOTFS_EXT4FS', false)
+
 defaults {
-	factory = '-ext4-factory',
 	factory_ext = '.img.gz',
-	sysupgrade = '-ext4-sysupgrade',
 	sysupgrade_ext = '.img.gz',
 }
-- 
GitLab