Skip to content

Commit 84534e4

Browse files
committed
Add uncpio target
1 parent dbffce3 commit 84534e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ initramfs cpio: | $(INITRAMFS_DIR)
273273
| cpio --null --create --verbose --format=newc \
274274
| gzip --best > $(CPIO_FILE)
275275

276+
.PHONY: uncpio
277+
uncpio:
278+
mkdir -p $(INITRAMFS_DIR)
279+
cd $(INITRAMFS_DIR) && zcat ../$(CPIO_FILE) | cpio --extract --make-directories --format=newc --no-absolute-filenames
280+
276281
.PHONY: rootfs
277282
rootfs: ext4 cpio
278283

0 commit comments

Comments
 (0)