X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/17c7b6c3fdc48301e50d22cc6138ede16bd1be24..22947061278d3eba96d0a332be7176546d275a77:/target/linux/amazon/Makefile diff --git a/target/linux/amazon/Makefile b/target/linux/amazon/Makefile index 1967d52f4..826937a5f 100644 --- a/target/linux/amazon/Makefile +++ b/target/linux/amazon/Makefile @@ -10,16 +10,20 @@ 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 -KERNELNAME:="uImage" - -include $(INCLUDE_DIR)/kernel-build.mk - -# include the profiles --include profiles/*.mk +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 BuildKernel)) +$(eval $(call BuildTarget))