summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/Makefile
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
committerRoman Yeryomin <roman@advem.lv>2012-12-03 00:13:21 +0200
commit5deb3317cb51ac52de922bb55f8492624018906d (patch)
treec2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/Makefile
parent0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff)
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/Makefile')
-rw-r--r--target/linux/realtek/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/realtek/Makefile b/target/linux/realtek/Makefile
new file mode 100644
index 000000000..5c77fbff3
--- /dev/null
+++ b/target/linux/realtek/Makefile
@@ -0,0 +1,35 @@
+#
+# Copyright (C) 2006-2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+
+ARCH:=lexra
+BOARD:=realtek
+BOARDNAME:=Realtek RTL8xxx
+FEATURES:=squashfs jffs2
+
+LINUX_VERSION:=2.6.30.9
+
+include $(INCLUDE_DIR)/target.mk
+DEFAULT_PACKAGES += libopenssl librtk-inband hostapd hostapd-rtk wpa-supplicant-rtk kmod-cfg80211
+
+DEFAULT_CFLAGS=-Os -pipe -fno-caller-saves -march=rlx4181
+
+define Target/Description
+ Build firmware images for RTL8xxx based routers
+endef
+
+define Kernel/CompileImage/Default
+ $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),,rm -f $(TARGET_DIR)/init)
+ +$(MAKE) $(KERNEL_MAKEOPTS) $(KERNELNAME)
+ $(MAKE) $(KERNEL_MAKEOPTS) -C rtkload
+ $(KERNEL_CROSS)objcopy -O binary $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL)
+ $(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux.elf
+endef
+
+
+$(eval $(call BuildTarget))
+