MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / usr / Makefile
blob965759fc16ad2275eccfd186b22c88c9fd1b3d31
2 obj-y := initramfs_data.o
4 hostprogs-y := 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
16 # here.
18 # Commented out for now
19 # initramfs-y := $(obj)/root/hello
21 quiet_cmd_cpio = CPIO $@
22 cmd_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