From b1d12c1feb88218b3d60dc61a16380ee09be90a2 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 28 Nov 2009 22:17:37 +0000 Subject: [amazon] Add kernel 2.6.30 support The device is booting and Ethernet is working, but nothing more was tested. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18589 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/amazon/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target/linux/amazon/Makefile') diff --git a/target/linux/amazon/Makefile b/target/linux/amazon/Makefile index cca8a415fa..5a5fed598d 100644 --- a/target/linux/amazon/Makefile +++ b/target/linux/amazon/Makefile @@ -18,4 +18,12 @@ 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)) -- cgit v1.2.3