2 # Copyright (C) 2008-2009 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 JFFS2_BLOCKSIZE
=128k
64k
13 cp
$(LINUX_DIR
)/arch
/powerpc
/boot
/uImage
$(KDIR
)/uImage
14 $(LINUX_DIR
)/scripts
/dtc
/dtc
-O dtb
-R
4 -S
0x20000 $(LINUX_DIR
)/arch
/powerpc
/boot
/dts
/kilauea.dts
> $(KDIR
)/openwrt-kilauea.dtb
17 define Image
/BuildKernel
18 cp
$(KDIR
)/uImage
$(BIN_DIR
)/openwrt-
$(BOARD
)-uImage
22 $(call Image
/Build
/$(1),$(1))
25 define Image
/Build
/ext2
26 cp
$(KDIR
)/root.
$(1) $(BIN_DIR
)/openwrt-
$(BOARD
)-ext2.img
29 define Image
/Build
/jffs2-128k
31 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/uImage bs
=1920k conv
=sync
; \
32 dd if
=$(KDIR
)/openwrt-kilauea.dtb bs
=128k conv
=sync
; \
33 dd if
=$(KDIR
)/root.
$(1) bs
=128k conv
=sync
; \
34 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-kilauea-jffs2.img
37 define Image
/Build
/jffs2-64k
39 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/cuImage.magicbox bs
=1280k conv
=sync
; \
40 dd if
=$(KDIR
)/root.
$(1) bs
=64k conv
=sync
; \
41 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-magicbox-jffs2.img
43 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/cuImage.openrb bs
=1280k conv
=sync
; \
44 dd if
=$(KDIR
)/root.
$(1) bs
=64k conv
=sync
; \
45 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-openrb-jffs2.img
48 define Image
/Build
/squashfs
49 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
51 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/uImage bs
=1920k conv
=sync
; \
52 dd if
=$(KDIR
)/openwrt-kilauea.dtb bs
=128k conv
=sync
; \
53 dd if
=$(KDIR
)/root.
$(1) bs
=128k conv
=sync
; \
54 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-kilauea-
$(1).img
56 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/cuImage.magicbox bs
=1280k conv
=sync
; \
57 dd if
=$(KDIR
)/root.
$(1) bs
=64k conv
=sync
; \
58 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-magicbox-
$(1).img
60 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/cuImage.openrb bs
=1280k conv
=sync
; \
61 dd if
=$(KDIR
)/root.
$(1) bs
=64k conv
=sync
; \
62 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-openrb-
$(1).img
65 $(eval
$(call BuildImage
))