2 # Copyright (C) 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
/arm
/boot
/uImage
$(KDIR
)/uImage
16 define Image
/BuildKernel
17 # do mach-id fixup here, if needed
18 cp
$(KDIR
)/uImage
$(BIN_DIR
)/openwrt-
$(BOARD
)-uImage
22 $(call Image
/Build
/$(1),$(1))
25 define Image
/Build
/jffs2-128k
27 dd if
=$(KDIR
)/uImage bs
=4096k conv
=sync
; \
28 dd if
=$(KDIR
)/root.
$(1) bs
=128k conv
=sync
; \
29 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img
32 define Image
/Build
/squashfs
33 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
35 dd if
=$(KDIR
)/uImage bs
=4096k conv
=sync
; \
36 dd if
=$(KDIR
)/root.
$(1) bs
=128k conv
=sync
; \
37 ) > $(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img
40 $(eval
$(call BuildImage
))