2 # Copyright (C) 2007-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
13 cp
$(LINUX_DIR
)/arch
/powerpc
/boot
/cuImage.taishan
$(KDIR
)/uImage
14 $(LINUX_DIR
)/scripts
/dtc
/dtc
-O dtb
-R
4 -S
0x20000 $(LINUX_DIR
)/arch
/powerpc
/boot
/dts
/canyonlands.dts
> $(KDIR
)/openwrt-canyonlands.dtb
17 define Image
/BuildKernel
18 cp
$(KDIR
)/uImage
$(BIN_DIR
)/openwrt-
$(BOARD
)-uImage
22 $(call Image
/Build
/$(1),$(1))
25 define Image
/Build
/jffs2-256k
27 dd if
=$(KDIR
)/uImage bs
=2048k conv
=sync
; \
28 dd if
=$(KDIR
)/root.
$(1) bs
=256k conv
=sync
; \
29 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-jffs2.img
32 define Image
/Build
/squashfs
33 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
35 dd if
=$(KDIR
)/uImage bs
=2048k conv
=sync
; \
36 dd if
=$(KDIR
)/root.
$(1) bs
=256k conv
=sync
; \
37 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-taishan-
$(1).img
39 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/uImage bs
=1920k conv
=sync
; \
40 dd if
=$(KDIR
)/openwrt-canyonlands.dtb bs
=128k conv
=sync
; \
41 dd if
=$(KDIR
)/root.
$(1) bs
=256k conv
=sync
; \
42 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-canyonlands-
$(1).img
45 $(eval
$(call BuildImage
))