Revert 8353, can cause more bad than good
[openwrt.git] / target / linux / rdc-2.6 / Makefile
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
9 ARCH:=i386
10 BOARD:=rdc
11 BOARDNAME:=RDC x86
12 FEATURES:=squashfs jffs2 broken
13
14 LINUX_VERSION:=2.6.22.1
15
16 define Target/Description
17 Build firmware images for RDC3211 based routers
18 (e.g. Airlink101 AR525W, Linksys WRT54R)
19 endef
20
21 include $(INCLUDE_DIR)/kernel-build.mk
22
23 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
24 define Kernel/SetInitramfs
25 echo "r6040 parent=wlan0" > $(BUILD_DIR)/root/etc/modules.d/99-r6040
26 rm -f $(BUILD_DIR)/root/sbin/init
27 ln -s /etc/preinit $(BUILD_DIR)/root/sbin/init
28 sed -i 's,exec /sbin/init,exec /bin/busybox init,g' $(BUILD_DIR)/root/etc/preinit
29 sed -i 's,/sbin/init,/bin/busybox init,g' $(BUILD_DIR)/root/init
30 sed -i 's,eth0,eth1,g' $(BUILD_DIR)/root/etc/config/network
31 endef
32 endif
33
34 # include the profiles
35 -include profiles/*.mk
36
37 $(eval $(call BuildKernel))
This page took 0.042333 seconds and 5 git commands to generate.