Skip to content

Commit c2773ea

Browse files
committed
Support initrd for 'check' target
1 parent 61cea98 commit c2773ea

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ ext4.img:
8080
$(Q)dd if=/dev/zero of=$@ bs=4k count=600
8181
$(Q)$(MKFS_EXT4) -F $@
8282

83-
check: $(BIN) minimal.dtb $(KERNEL_DATA) $(DISKIMG_FILE)
83+
check: $(BIN) minimal.dtb $(KERNEL_DATA) $(INITRD_DATA) $(DISKIMG_FILE)
8484
@$(call notice, Ready to launch Linux kernel. Please be patient.)
85-
$(Q)./$(BIN) -k $(KERNEL_DATA) -b minimal.dtb -i rootfs.cpio $(OPTS)
85+
$(Q)./$(BIN) -k $(KERNEL_DATA) -b minimal.dtb -i $(INITRD_DATA) $(OPTS)
8686

8787
build-image:
8888
scripts/build-image.sh
@@ -92,7 +92,7 @@ clean:
9292

9393
distclean: clean
9494
$(Q)$(RM) minimal.dtb
95-
$(Q)$(RM) Image
95+
$(Q)$(RM) Image rootfs.cpio
9696
$(Q)$(RM) ext4.img
9797

9898
-include $(deps)

mk/external.mk

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
# kernel
77
KERNEL_DATA_URL = https://github.com/jserv/semu/raw/blob/Image.bz2
88
KERNEL_DATA = Image
9-
KERNEL_DATA_SHA1 = 2583315c6fe4591344fdba4f318a695553b00b20
9+
KERNEL_DATA_SHA1 = 36d770efe97beac85204f1f50f8de81e3e529d84
10+
11+
# initrd
12+
INITRD_DATA_URL = https://github.com/jserv/semu/raw/blob/rootfs.cpio.bz2
13+
INITRD_DATA = rootfs.cpio
14+
INITRD_DATA_SHA1 = fad749d0a9eb33178525f961d6b82e7c0ce917a7
1015

1116
define download
1217
$($(T)_DATA):
@@ -16,5 +21,5 @@ $($(T)_DATA):
1621
$(Q)bunzip2 $$@.bz2
1722
endef
1823

19-
EXTERNAL_DATA = KERNEL
24+
EXTERNAL_DATA = KERNEL INITRD
2025
$(foreach T,$(EXTERNAL_DATA),$(eval $(download)))

0 commit comments

Comments
 (0)