summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/arch-avr32/arch-avr32.mk
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2008-03-29 23:09:46 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2008-03-29 23:09:46 +0000
commitc659b13a2fc07188f716327364f6080e9486f3de (patch)
tree27e7d039a80625c01afa917d831057b2d684a69d /target/device/Atmel/arch-avr32/arch-avr32.mk
parent230723920abcc27128ba271d0b20428e81fc9515 (diff)
downloadbuildroot-novena-c659b13a2fc07188f716327364f6080e9486f3de.tar.gz
buildroot-novena-c659b13a2fc07188f716327364f6080e9486f3de.zip
Remove duplicate AVR32 patches, and add support for ARCH and conditional AVR32 patches
Diffstat (limited to 'target/device/Atmel/arch-avr32/arch-avr32.mk')
-rw-r--r--target/device/Atmel/arch-avr32/arch-avr32.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/device/Atmel/arch-avr32/arch-avr32.mk b/target/device/Atmel/arch-avr32/arch-avr32.mk
new file mode 100644
index 000000000..9fb888622
--- /dev/null
+++ b/target/device/Atmel/arch-avr32/arch-avr32.mk
@@ -0,0 +1,27 @@
+ifeq ($(BR2_avr32),y)
+
+avr32.patched.ac97: $(LINUX26_DIR)/.patched.ac97
+ @echo avr32.patched.ac97
+
+avr32.patched.isi: $(LINUX26_DIR)/.patched.isi
+ @echo avr32.patched.isi
+
+avr32.patched.psif: $(LINUX26_DIR)/.patched.psif
+ @echo avr32.patched.psif
+
+
+$(LINUX26_DIR)/.patched.isi: $(LINUX26_DIR)/.patched.arch
+ toolchain/patch-kernel.sh $(LINUX26_DIR) $(BR2_KERNEL_ARCH_PATCH_DIR) \
+ linux-*-500-v4l-avr32-isi.patch.cond
+ touch $@
+
+$(LINUX26_DIR)/.patched.ac97: $(LINUX26_DIR)/.patched.arch
+ toolchain/patch-kernel.sh $(LINUX26_DIR) $(BR2_KERNEL_ARCH_PATCH_DIR) \
+ linux-*-avr32-ac97-reset.patch.cond
+ touch $@
+
+$(LINUX26_DIR)/.patched.psif: $(LINUX26_DIR)/.patched.arch
+ toolchain/patch-kernel.sh $(LINUX26_DIR) $(BR2_KERNEL_ARCH_PATCH_DIR) \
+ linux-*-avr32-psif-2.patch.cond
+ touch $@
+endif