aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/amazon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/amazon/Makefile')
-rw-r--r--target/linux/amazon/Makefile8
1 files changed, 8 insertions, 0 deletions
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))