Makefile 965 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. ARCH:=i386
  9. BOARD:=rdc
  10. BOARDNAME:=RDC 321x
  11. FEATURES:=squashfs jffs2 pci
  12. LINUX_VERSION:=2.6.25.9
  13. include $(INCLUDE_DIR)/target.mk
  14. define Target/Description
  15. Build firmware images for RDC321x based routers
  16. (e.g. Airlink101 AR525W, Linksys WRT54R, Sitecom WL-153)
  17. endef
  18. ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
  19. define Kernel/SetInitramfs
  20. echo "r6040 parent=wlan0" > $(TARGET_DIR)/etc/modules.d/99-r6040
  21. $(RM) $(TARGET_DIR)/sbin/init
  22. ln -s /etc/preinit $(TARGET_DIR)/sbin/init
  23. sed -i 's,exec /sbin/init,exec /bin/busybox init,g' $(TARGET_DIR)/etc/preinit
  24. sed -i 's,/sbin/init,/bin/busybox init,g' $(TARGET_DIR)/init
  25. mv $(TARGET_DIR)/init $(TARGET_DIR)/linuxrc
  26. sed -i 's,eth0,eth1,g' $(TARGET_DIR)/etc/config/network
  27. endef
  28. endif
  29. $(eval $(call BuildTarget))