Skip to content

Commit dbffce3

Browse files
committed
Make initramfs alias for cpio, and make rootfs also call cpio target
1 parent 82d34ee commit dbffce3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,14 @@ ext4: | $(ROOTFS_DIR)
267267
qemu-img convert -O $(ROOTFS_FORMAT) $(ROOTFS) $(ROOTFS).tmp
268268
mv $(ROOTFS).tmp $(ROOTFS)
269269

270-
.PHONY: cpio
271-
cpio: | $(INITRAMFS_DIR)
270+
.PHONY: cpio initramfs
271+
initramfs cpio: | $(INITRAMFS_DIR)
272272
cd $(INITRAMFS_DIR) && find . -print0 \
273273
| cpio --null --create --verbose --format=newc \
274274
| gzip --best > $(CPIO_FILE)
275275

276276
.PHONY: rootfs
277-
rootfs: ext4
277+
rootfs: ext4 cpio
278278

279279
.PHONY: rootfs-mount
280280
rootfs-mount:

0 commit comments

Comments
 (0)