aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-03-04 09:54:51 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2011-03-08 09:18:41 +0100
commit0b3ba3ff4119ab4f77de738b4a29f4c7a553163f (patch)
treebe7650c096a16b297c9d011976071b479ec9ac4c
parent87e10a778024c206dc4727cd4389e8a7e7bb099f (diff)
downloadopenembedded-0b3ba3ff4119ab4f77de738b4a29f4c7a553163f.zip
openembedded-0b3ba3ff4119ab4f77de738b4a29f4c7a553163f.tar.gz
openembedded-0b3ba3ff4119ab4f77de738b4a29f4c7a553163f.tar.bz2
linux-kexecboot_git: add patch for fixed build without swap
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--recipes/linux/linux-kexecboot/0001-arm-include-asm-tlb.h-fix-CONFIG_SWAP-n-build-for-AR.patch37
-rw-r--r--recipes/linux/linux-kexecboot_git.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/recipes/linux/linux-kexecboot/0001-arm-include-asm-tlb.h-fix-CONFIG_SWAP-n-build-for-AR.patch b/recipes/linux/linux-kexecboot/0001-arm-include-asm-tlb.h-fix-CONFIG_SWAP-n-build-for-AR.patch
new file mode 100644
index 0000000..77b699b
--- /dev/null
+++ b/recipes/linux/linux-kexecboot/0001-arm-include-asm-tlb.h-fix-CONFIG_SWAP-n-build-for-AR.patch
@@ -0,0 +1,37 @@
+From c1f96af4fba5ce05a2f090491f3646192041b491 Mon Sep 17 00:00:00 2001
+From: Martin Jansa <Martin.Jansa@gmail.com>
+Date: Fri, 4 Mar 2011 09:51:04 +0100
+Subject: [PATCH] arm/include/asm/tlb.h: fix CONFIG_SWAP=n build for ARM
+
+* similar fix to f95ba941d1bee594d536cdcbf879a0865381b903
+| In file included from arch/arm/mm/init.c:27:0:
+| arch/arm/include/asm/tlb.h: In function 'tlb_flush_mmu':
+| arch/arm/include/asm/tlb.h:104:3: error: implicit declaration of function 'release_pages'
+| arch/arm/include/asm/tlb.h: In function 'tlb_remove_page':
+| arch/arm/include/asm/tlb.h:168:3: error: implicit declaration of function 'page_cache_release'
+
+Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
+---
+ arch/arm/include/asm/tlb.h | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/include/asm/tlb.h b/arch/arm/include/asm/tlb.h
+index 82dfe5d..e442a6a 100644
+--- a/arch/arm/include/asm/tlb.h
++++ b/arch/arm/include/asm/tlb.h
+@@ -19,10 +19,10 @@
+
+ #include <asm/cacheflush.h>
+
+-#ifndef CONFIG_MMU
+-
+ #include <linux/pagemap.h>
+
++#ifndef CONFIG_MMU
++
+ #define tlb_flush(tlb) ((void) tlb)
+
+ #include <asm-generic/tlb.h>
+--
+1.7.4.1
+
diff --git a/recipes/linux/linux-kexecboot_git.bb b/recipes/linux/linux-kexecboot_git.bb
index 2847974..8c34a87 100644
--- a/recipes/linux/linux-kexecboot_git.bb
+++ b/recipes/linux/linux-kexecboot_git.bb
@@ -7,6 +7,7 @@ PV = "${OLD_KERNEL_RELEASE}+${KERNEL_RELEASE}+gitr${SRCPV}"
SRCREV = "a5abba989deceb731047425812d268daf7536575"
SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;branch=master \
+ file://0001-arm-include-asm-tlb.h-fix-CONFIG_SWAP-n-build-for-AR.patch \
file://defconfig"
S = "${WORKDIR}/git"