summary refs log tree commit diff
path: root/host/initramfs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'host/initramfs/Makefile')
-rw-r--r--host/initramfs/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/initramfs/Makefile b/host/initramfs/Makefile
index 6f8dac0..620b8be 100644
--- a/host/initramfs/Makefile
+++ b/host/initramfs/Makefile
@@ -11,8 +11,9 @@ CPIOFLAGS = --reproducible -R +0:+0 -H newc
 SCRIPTS = ../../scripts
 VERITYSETUP = veritysetup
 
-build/initramfs: build/local.cpio $(PACKAGES_CPIO)
-	cat build/local.cpio $(PACKAGES_CPIO) | gzip -9n > $@
+build/initramfs: $(MICROCODE) build/local.cpio $(PACKAGES_CPIO)
+	cat $(MICROCODE) > $@
+	cat build/local.cpio $(PACKAGES_CPIO) | gzip -9n >> $@
 
 # etc/init isn't included in ETC_FILES, because it gets installed to
 # the root.