2 # Copyright (C) 2008 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
/uImage
$(KDIR
)/uImage
14 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
/jffs2-128k
27 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/uImage bs
=1920k conv
=sync
; \
28 dd if
=$(KDIR
)/openwrt-kilauea.dtb bs
=128k conv
=sync
; \
29 dd if
=$(KDIR
)/root.
$(1) bs
=128k conv
=sync
; \
30 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-jffs2.img
33 define Image
/Build
/squashfs
34 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
36 dd if
=$(LINUX_DIR
)/arch
/powerpc
/boot
/uImage bs
=1920k conv
=sync
; \
37 dd if
=$(KDIR
)/openwrt-kilauea.dtb bs
=128k conv
=sync
; \
38 dd if
=$(KDIR
)/root.
$(1) bs
=128k conv
=sync
; \
39 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img
42 $(eval
$(call BuildImage
))