File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ ext4.img:
80
80
$(Q ) dd if=/dev/zero of=$@ bs=4k count=600
81
81
$(Q )$(MKFS_EXT4 ) -F $@
82
82
83
- check : $(BIN ) minimal.dtb $(KERNEL_DATA ) $(DISKIMG_FILE )
83
+ check : $(BIN ) minimal.dtb $(KERNEL_DATA ) $(INITRD_DATA ) $( DISKIMG_FILE )
84
84
@$(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 )
86
86
87
87
build-image :
88
88
scripts/build-image.sh
92
92
93
93
distclean : clean
94
94
$(Q )$(RM ) minimal.dtb
95
- $(Q )$(RM ) Image
95
+ $(Q )$(RM ) Image rootfs.cpio
96
96
$(Q )$(RM ) ext4.img
97
97
98
98
-include $(deps )
Original file line number Diff line number Diff line change 6
6
# kernel
7
7
KERNEL_DATA_URL = https://github.com/jserv/semu/raw/blob/Image.bz2
8
8
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
10
15
11
16
define download
12
17
$($(T ) _DATA) :
@@ -16,5 +21,5 @@ $($(T)_DATA):
16
21
$(Q ) bunzip2 $$@ .bz2
17
22
endef
18
23
19
- EXTERNAL_DATA = KERNEL
24
+ EXTERNAL_DATA = KERNEL INITRD
20
25
$(foreach T,$(EXTERNAL_DATA),$(eval $(download)))
You can’t perform that action at this time.
0 commit comments