rb1xx.mk 599 B

123456789101112131415161718192021222324
  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. define Image/cmdline/yaffs2
  8. root=/dev/mtdblock3 rootfstype=yaffs2
  9. endef
  10. define Image/BuildKernel/RouterBoard
  11. $(CP) $(KDIR)/vmlinux-initramfs.elf $(call imgname,kernel-initramfs,rb1xx)
  12. $(STAGING_DIR_HOST)/bin/patch-cmdline $(call imgname,kernel-initramfs,rb1xx) \
  13. '$(strip $(call Image/cmdline/yaffs2))'
  14. endef
  15. ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
  16. define Image/BuildKernel
  17. $(call Image/BuildKernel/RouterBoard)
  18. endef
  19. endif