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.
8 JFFS2_BLOCKSIZE := 128k
10 include $(TOPDIR)/rules.mk
11 include $(INCLUDE_DIR)/image.mk
13 define Image/mkfs/jffs2/sub
14 $(STAGING_DIR_HOST)/bin/mkfs.jffs2 --pad --little-endian --pagesize=0x800 --no-cleanmarkers -e $(patsubst %k,%KiB,$(1)) -o $(KDIR)/root.jffs2-$(1) -d $(TARGET_DIR)
15 $(call add_jffs2_mark,$(KDIR)/root.jffs2-$(1))
16 $(call Image/Build,jffs2-$(1))
26 cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
29 define Image/BuildKernel
30 cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
34 cp $(KDIR)/root.jffs2-128k $(BIN_DIR)/openwrt-$(BOARD)-rootfs
37 $(eval $(call BuildImage))