2 # Copyright (C) 2009-2010 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 JFFS2OPTS_NAND
+= --little-endian
--pagesize
=0x800 --no-cleanmarkers
--pad
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
)/$(IMG_PREFIX
)-uImage
22 $(if
$(Image
/Build
/$(1)), \
23 $(call Image
/Build
/$(1),$(1)), \
24 $(CP
) $(KDIR
)/root.
$(1) $(BIN_DIR
)/$(IMG_PREFIX
)-$(1).img \
28 define Image
/Build
/squashfs
29 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
31 dd if
=$(KDIR
)/uImage bs
=4096k conv
=sync
; \
32 dd if
=$(KDIR
)/root.
$(1) bs
=128k conv
=sync
; \
33 ) > $(BIN_DIR
)/$(IMG_PREFIX
)-$(1).img
36 $(eval
$(call BuildImage
))