targets: fix remaining targets for initramfs builds
[openwrt/staging/yousong.git] / target / linux / adm5120 / image / rb1xx.mk
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
9 define Image/cmdline/yaffs2
10 root=/dev/mtdblock3 rootfstype=yaffs2
11 endef
12
13 define Image/BuildKernel/RouterBoard
14 $(CP) $(KDIR)/vmlinux-initramfs.elf $(call imgname,kernel-initramfs,rb1xx)
15 $(STAGING_DIR_HOST)/bin/patch-cmdline $(call imgname,kernel-initramfs,rb1xx) \
16 '$(strip $(call Image/cmdline/yaffs2))'
17 endef
18
19 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
20 define Image/BuildKernel
21 $(call Image/BuildKernel/RouterBoard)
22 endef
23 endif
24