2 obj-y
:= initramfs_data.o
4 host-progs
:= gen_init_cpio
6 clean-files
:= initramfs_data.cpio.gz
8 # initramfs_data.o contains the initramfs_data.cpio.gz image.
9 # The image is included using .incbin, a dependency which is not
10 # tracked automatically.
11 $(obj
)/initramfs_data.o
: $(obj
)/initramfs_data.cpio.gz FORCE
13 # initramfs-y are the programs which will be copied into the CPIO
14 # archive. Currently, the filenames are hardcoded in gen_init_cpio,
15 # but we need the information for the build as well, so it's duplicated
18 # Commented out for now
19 # initramfs-y := $(obj)/root/hello
21 quiet_cmd_cpio
= CPIO
$@
24 $(obj
)/initramfs_data.cpio
: $(obj
)/gen_init_cpio
$(initramfs-y
) FORCE
25 $(call if_changed
,cpio
)
27 targets
+= initramfs_data.cpio
29 $(obj
)/initramfs_data.cpio.gz
: $(obj
)/initramfs_data.cpio FORCE
30 $(call if_changed
,gzip
)
32 targets
+= initramfs_data.cpio.gz