[amazon] Add kernel 2.6.30 support
[openwrt.git] / target / linux / amazon / 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:=mips
10 BOARD:=amazon
11 BOARDNAME:=Infineon Amazon
12 FEATURES:=squashfs jffs2 broken
13 LINUX_VERSION:=2.6.21.7
14
15 include $(INCLUDE_DIR)/target.mk
16
17 define Target/Description
18 Build firmware images for Infineon Amazon boards
19 endef
20
21 ifeq ($(KERNEL_PATCHVER),2.6.30)
22 define Kernel/Prepare
23 $(call Kernel/Prepare/Default)
24 mv $(LINUX_DIR)/include/asm-mips/mach-amazon $(LINUX_DIR)/arch/mips/include/asm/mach-amazon
25 mv $(LINUX_DIR)/drivers/char/watchdog/amazon_wdt.c $(LINUX_DIR)/drivers/watchdog/amazon_wdt.c
26 endef
27 endif
28
29 $(eval $(call BuildTarget))
This page took 0.063262 seconds and 5 git commands to generate.