File project.diff of Package openSUSE-MicroOS

--- _multibuild.orig
+++ _multibuild
@@ -30,4 +30,5 @@
         <flavor>DigitalOcean-Cloud</flavor>
         <flavor>kvm-and-xen-sdboot</flavor>
         <flavor>kvm-and-xen-grub-bls</flavor>
+        <flavor>imx8mm_evk-sdboot</flavor>
 </multibuild>
--- config.sh.orig
+++ config.sh
@@ -144,6 +144,8 @@ sed -i 's/.*rpm.install.excludedocs.*/rp
 serialconsole='console=ttyS0,115200'
 [[ "$kiwi_profiles" == *"RaspberryPi2" ]] && serialconsole='console=ttyAMA0,115200'
 [[ "$kiwi_profiles" == *"Rock64" ]] && serialconsole='console=ttyS2,1500000'
+# XXX: shouldn't the kernel be able to get that from the device tree or something?
+[[ "$kiwi_profiles" == *"imx8mm_evk-sdboot" ]] && serialconsole='console=ttymxc1,115200'
 
 cmdline=('quiet' 'systemd.show_status=yes' "${serialconsole}" 'console=tty0')
 rpm -q wicked && cmdline+=('net.ifnames=0')
@@ -157,7 +159,7 @@ case "${kiwi_profiles}" in
 	*VirtualBox*) ignition_platform='virtualbox' ;;
 	*HyperV*) ignition_platform='metal'
 		  cmdline+=('rootdelay=300') ;;
-	*Pine64*|*RaspberryPi*|*Rock64*|*Vagrant*) ignition_platform='metal' ;;
+	*Pine64*|*RaspberryPi*|*Rock64*|*Vagrant*|*imx8mm_evk-sdboot*) ignition_platform='metal' ;;
 	# Use autodetection on selfinstall. The first boot doesn't use the grub
 	# cmdline anyway, it's started with kexec using kiwi's builtin default.
 	*SelfInstall*) ignition_platform='' ;;
--- openSUSE-MicroOS.changes.orig
+++ openSUSE-MicroOS.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Tue Oct 29 21:29:57 UTC 2024 - Z. Wieback <zwieback66@yahoo.com>
+
+- Add imx8mm_evk flavor 
+
+-------------------------------------------------------------------
 Wed Oct  9 09:15:28 UTC 2024 - Stefan Schubert <schubi@suse.com>
 
 - Added package systemd-repart-dracut to kvm-and-xen-sdboot and
--- openSUSE-MicroOS.kiwi.orig
+++ openSUSE-MicroOS.kiwi
@@ -11,6 +11,7 @@
         <!-- Flavors -->
         <profile name="ContainerHost" description="MicroOS with container runtime (podman)"/>
         <!-- Platforms -->
+        <profile name="imx8mm_evk-sdboot" description="64bit ARM System Ready boards with systemd-boot" arch="aarch64"/>
         <profile name="kvm-and-xen-sdboot" description="kvm-and-xen with systemd-boot" arch="x86_64,aarch64"/>
         <profile name="kvm-and-xen-grub-bls" description="kvm-and-xen with GRUB2 and bootctl" arch="x86_64,aarch64"/>
         <profile name="kvm-and-xen" description="kvm-and-xen" arch="x86_64,aarch64,armv7l"/>
@@ -95,6 +96,37 @@
             <size unit="G">20</size>
         </type>
     </preferences>
+    <preferences profiles="imx8mm_evk-sdboot">
+        <version>16.0.0</version>
+        <packagemanager>zypper</packagemanager>
+        <rpm-excludedocs>true</rpm-excludedocs>
+        <locale>en_US</locale>
+        <type
+            image="oem"
+            filesystem="btrfs"
+            firmware="uefi"
+            bootpartition="false"
+            initrd_system="none"
+            efipartsize="500"
+            bootkernel="custom"
+            editbootinstall="editbootinstall_arm64.sh"
+            disk_start_sector="8192"
+            devicepersistency="by-uuid"
+            btrfs_root_is_snapshot="true"
+            btrfs_root_is_readonly_snapshot="true"
+            btrfs_quota_groups="true"
+        >
+            <bootloader name="custom"/>
+            <systemdisk>
+                <volume name="home"/>
+                <volume name="root"/>
+                <volume name="opt"/>
+                <volume name="srv"/>
+                <volume name="usr/local"/>
+                <volume name="var" copy_on_write="false"/>
+            </systemdisk>
+        </type>
+    </preferences>
     <preferences profiles="kvm-and-xen-grub-bls">
         <version>16.0.0</version>
         <packagemanager>zypper</packagemanager>
@@ -725,7 +757,7 @@
         <package name="growpart-generator"/>
         <package name="patterns-base-bootloader"/>
     </packages>
-    <packages type="image" profiles="kvm-and-xen-sdboot,kvm-and-xen-grub-bls">
+    <packages type="image" profiles="kvm-and-xen-sdboot,kvm-and-xen-grub-bls,imx8mm_evk-sdboot">
         <!-- Needed for initial configuration, except on OpenStack-Cloud, where cloud-init is used -->
         <package name="ignition-dracut"/>
         <package name="combustion &gt;= 1.2"/> <!-- New firstboot mechanism -->
@@ -740,7 +772,7 @@
         <package name="efibootmgr"/>
         <package name="uefi_mbr" arch="x86_64"/>
     </packages>
-    <packages type="image" profiles="kvm-and-xen-sdboot">
+    <packages type="image" profiles="kvm-and-xen-sdboot,imx8mm_evk-sdboot">
         <package name="systemd-boot"/>
     </packages>
     <packages type="image" profiles="kvm-and-xen-grub-bls">
@@ -773,6 +805,11 @@
     <packages type="image" profiles="VirtualBox">
         <package name="virtualbox-guest-tools"/>
     </packages>
+    <packages type="image" profiles="imx8mm_evk-sdboot">
+        <package name="u-boot-imx8mm_evk" arch="aarch64"/>
+        <package name="u-boot-imx8mn_evk" arch="aarch64"/>
+        <package name="kernel-firmware-all"/> <!-- Fix choice between kernel-firmware and kernel-firmware-all -->
+    </packages>
     <packages type="image" profiles="Pine64">
         <package name="u-boot-pine64plus" arch="aarch64"/>
         <package name="dracut-kiwi-oem-repart"/>
openSUSE Build Service is sponsored by