2 # Copyright (C) 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
11 JFFS2OPTS
+= --little-endian
--pagesize
=0x800 --no-cleanmarkers
--pad
14 define Image
/BuildKernel
15 $(CP
) $(LINUX_DIR
)/arch
/arm
/boot
/zImage
$(BIN_DIR
)/$(IMG_PREFIX
)-zImage
16 chmod
0644 $(BIN_DIR
)/$(IMG_PREFIX
)-zImage
19 define Image
/Build
/squashfs
20 $(call prepare_generic_squashfs
,$(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1))
24 $(CP
) $(KDIR
)/root.
$(1) $(BIN_DIR
)/$(IMG_PREFIX
)-root.
$(1)
25 $(call Image
/Build
/$(1),$(1))
29 $(eval
$(call BuildImage
))