2 # Copyright (C) 2007 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
12 $(MAKE
) -C u-boot
clean
16 $(MAKE
) -C u-boot compile
20 cp
$(LINUX_DIR
)/arch
/avr32
/boot
/images
/uImage
$(KDIR
)/uImage
23 define Image
/BuildKernel
24 cp
$(KDIR
)/uImage
$(BIN_DIR
)/openwrt-
$(BOARD
)-uImage
28 $(call Image
/Build
/$(1),$(1))
31 define Image
/Build
/squashfs
32 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
34 dd if
=$(KDIR
)/uImage bs
=1024k conv
=sync
; \
35 dd if
=$(KDIR
)/root.
$(1) bs
=64k conv
=sync
; \
36 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img
39 define Image
/Build
/jffs2-64k
41 dd if
=$(KDIR
)/uImage bs
=1024k conv
=sync
; \
42 dd if
=$(KDIR
)/root.
$(1) bs
=64k conv
=sync
; \
43 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img
46 $(eval
$(call BuildImage
))