2 obj-y := initramfs_data.o
4 host-progs := gen_init_cpio
6 clean-files := initramfs_data.cpio.gz
8 LDFLAGS_initramfs_data.o := $(LDFLAGS_BLOB) -r -T
10 $(obj)/initramfs_data.o: $(src)/initramfs_data.scr \
11 $(obj)/initramfs_data.cpio.gz FORCE
14 # initramfs-y are the programs which will be copied into the CPIO
15 # archive. Currently, the filenames are hardcoded in gen_init_cpio,
16 # but we need the information for the build as well, so it's duplicated
19 # Commented out for now
20 # initramfs-y := $(obj)/root/hello
22 quiet_cmd_cpio = CPIO $@
25 $(obj)/initramfs_data.cpio: $(obj)/gen_init_cpio $(initramfs-y) FORCE
26 $(call if_changed,cpio)
28 targets += $(obj)/initramfs_data.cpio
30 $(obj)/initramfs_data.cpio.gz: $(obj)/initramfs_data.cpio FORCE
31 $(call if_changed,gzip)
33 targets += $(obj)/initramfs_data.cpio.gz