1# 2# Copyright (C) 2007,2008 OpenWrt.org 3# 4# This is free software, licensed under the GNU General Public License v2. 5# See /LICENSE for more information. 6# 7 8 9define Image/cmdline/yaffs2 10 root=/dev/mtdblock3 rootfstype=yaffs2 11endef 12 13define Image/BuildKernel/RouterBoard 14 $(CP) $(KDIR)/vmlinux.elf $(call imgname,kernel,rb1xx) 15 $(STAGING_DIR_HOST)/bin/patch-cmdline $(call imgname,kernel,rb1xx) \ 16 '$(strip $(call Image/cmdline/yaffs2))' 17endef 18 19ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) 20 define Image/BuildKernel 21 $(call Image/BuildKernel/RouterBoard) 22 endef 23endif 24 25