aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/amazon/Makefile
blob: 826937a5fed2bae912c3e6009e21fbfc94068726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk

ARCH:=mips
BOARD:=amazon
BOARDNAME:=Infineon Amazon
FEATURES:=squashfs jffs2 broken
LINUX_VERSION:=2.6.30.10

include $(INCLUDE_DIR)/target.mk

define Target/Description
	Build firmware images for Infineon Amazon boards
endef

ifeq ($(KERNEL_PATCHVER),2.6.30)
  define Kernel/Prepare
	$(call Kernel/Prepare/Default)
	mv $(LINUX_DIR)/include/asm-mips/mach-amazon $(LINUX_DIR)/arch/mips/include/asm/mach-amazon
	mv $(LINUX_DIR)/drivers/char/watchdog/amazon_wdt.c $(LINUX_DIR)/drivers/watchdog/amazon_wdt.c
  endef
endif

$(eval $(call BuildTarget))