summaryrefslogtreecommitdiff
path: root/target/device
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-19 23:13:06 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-19 23:13:06 +0000
commitbb92ec0c78bce4e801e3f477841ff3cb77fc74b9 (patch)
treeeaa836df3c64768b4d6c10447c7eeb35caacee49 /target/device
parent88409d04329f5821ccaacef24e25b7e6c14edd05 (diff)
Add kernel patches, if at91 or avr32 is selected
Diffstat (limited to 'target/device')
-rw-r--r--target/device/Atmel/Makefile.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/target/device/Atmel/Makefile.in b/target/device/Atmel/Makefile.in
index e5780988f..4aa557935 100644
--- a/target/device/Atmel/Makefile.in
+++ b/target/device/Atmel/Makefile.in
@@ -44,17 +44,19 @@ LINUX26_BINLOC=$(LINUX26_FORMAT)
LINUX26_COPYTO:=/tftpboot
+ifeq ($(DEFAULT_KERNEL_HEADERS),2.6.22.1)
+KERNEL_HEADERS_PATCH_DIR:=target/device/Atmel/linux/kernel-patches-$(DOWNLOAD_LINUX26_VERSION)
+else
# Patch during kernel header build
ifeq ($(BR2_avr32),y)
-LINUX26_KERNEL_PATCH_DIR:=target/device/Atmel/arch-avr32/kernel-patches-$(DOWNLOAD_LINUX26_VERSION)
+KERNEL_HEADERS_PATCH_DIR:=target/device/Atmel/arch-avr32/kernel-patches-$(DOWNLOAD_LINUX26_VERSION)
endif
-
# Patch during kernel build
ifeq ($(BR2_arm),y)
#LINUX26_PATCH_DIR:=target/device/Atmel/arch-at91/kernel-patches-$(DOWNLOAD_LINUX26_VERSION)
-LINUX26_KERNEL_PATCH_DIR:=target/device/Atmel/arch-at91/kernel-patches-$(DOWNLOAD_LINUX26_VERSION)
+KERNEL_HEADERS_PATCH_DIR:=target/device/Atmel/arch-arm/kernel-patches-$(DOWNLOAD_LINUX26_VERSION)
+endif
endif
-
# The board specific Makefile.in can redefine BOARD_NAME's
LINUX_BOARD_NAME:=$(BOARD_NAME)
@@ -98,6 +100,7 @@ atmel_status:
@echo DOWNLOAD_LINUX26_VERSION=$(DOWNLOAD_LINUX26_VERSION)
@echo LINUX_SOURCE=$(LINUX_SOURCE)
@echo TARGETS=$(TARGETS)
+ @echo LINUX26_HEADERS_PATCH_DIR=$(LINUX26_HEADERS_PATCH_DIR)
#TARGETS+=atmel_status
endif