]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Only build microcode when on x86_64
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 23 Jan 2024 15:36:12 +0000 (16:36 +0100)
committerJoerg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 24 Jan 2024 10:07:03 +0000 (11:07 +0100)
mkosi/__init__.py

index 07e6c3184429241ddf4ae10acf6c8a744b2395f8..ed7d3dc6cd2e7e3da281486d6d98af64e0344239 100644 (file)
@@ -1546,6 +1546,9 @@ def build_initrd(context: Context) -> Path:
 
 
 def build_microcode_initrd(context: Context) -> Optional[Path]:
+    if context.config.architecture not in [Architecture.x86, Architecture.x86_64]:
+        return None
+
     microcode = context.workspace / "initrd-microcode.img"
     if microcode.exists():
         return microcode