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