2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
10 define Image
/BuildKernel
11 cp
$(KDIR
)/vmlinuz
$(BIN_DIR
)/$(IMG_PREFIX
)-zImage
15 cp
$(LINUX_DIR
)/arch
/cris
/boot
/zImage
$(KDIR
)/vmlinuz
16 $(MAKE
) -C e100boot compile
17 $(MAKE
) -C mkfimage compile
18 $(INSTALL_BIN
) .
/boot_linux
$(BIN_DIR
)
21 define Image
/Build
/generic
22 mkfimage
$(KDIR
)/vmlinuz
$(KDIR
)/vmlinuz.tmp
23 cat
$(KDIR
)/vmlinuz.tmp
$(KDIR
)/root.
$(1) > $(KDIR
)/fimage.
$(1).tmp
24 dd if
=$(KDIR
)/fimage.
$(1).tmp of
=$(KDIR
)/fimage.
$(1) bs
=$(2) conv
=sync
25 cp
$(KDIR
)/fimage.
$(1) $(BIN_DIR
)/$(IMG_PREFIX
)-$(1)-fimage
28 define Image
/Build
/jffs2-64k
29 $(call prepare_generic_jffs-64k
,$(KDIR
)/root.jff2-64k
)
30 $(call Image
/Build
/generic
,$(1),4194304)
33 define Image
/Build
/squashfs
34 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
35 $(call Image
/Build
/generic
,$(1),4194304)
39 $(call Image
/Build
/$(1),$(1))
42 $(eval
$(call BuildImage
))