d52974ffae905bc6aa464c3352a2dc77214c268a
[openwrt/staging/chunkeey.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 pci broken
13
14 LINUX_VERSION:=2.6.21.5
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 rm -f $(BUILD_DIR)/root/sbin/init
26 ln -s /etc/preinit $(BUILD_DIR)/root/sbin/init
27 $(CP) $(PLATFORM_DIR)/image/preinit.arch $(BUILD_DIR)/root/etc/
28 endef
29 endif
30
31 # include the profiles
32 -include profiles/*.mk
33
34 $(eval $(call BuildKernel))