diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2016-09-15 14:40:59 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2016-09-16 08:41:01 +0000 |
commit | 4ae75513231a69dc176fdb37c20bcb8c87c2f8c8 (patch) | |
tree | ea8586e56d6988751f5cab9e258b45ec62e5ff98 | |
parent | 5ca24e86886763cd8878490c3375abb570856209 (diff) | |
download | meta-boot2qt-4ae75513231a69dc176fdb37c20bcb8c87c2f8c8.tar.gz |
kontron: patch kernel to support newer vivante drivers
This fixes following error:
galcore: Unknown symbol v7_dma_map_area (err 0)
galcore: Unknown symbol v7_dma_flush_range (err 0)
When using the Vivante GPU module as a module.
Change-Id: I2e84403b9bab5c45386b32716021f55c70938d8e
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
-rw-r--r-- | meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch | 31 | ||||
-rw-r--r-- | meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch b/meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch new file mode 100644 index 0000000..c61a4dc --- /dev/null +++ b/meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 56e321cd19ee4909ca623ce1c351c966904123a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Pantelis Antoniou <panto@antoniou-consulting.com> | ||
3 | Date: Fri, 4 Jan 2013 00:32:33 +0200 | ||
4 | Subject: [PATCH] arm: Export cache flush management symbols when !MULTI_CACHE | ||
5 | |||
6 | When compiling a kernel without CONFIG_MULTI_CACHE enabled the | ||
7 | dma access functions end up not being exported. Fix it. | ||
8 | |||
9 | Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com> | ||
10 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
11 | --- | ||
12 | arch/arm/kernel/setup.c | 9 +++++++++ | ||
13 | 1 file changed, 9 insertions(+) | ||
14 | |||
15 | diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c | ||
16 | index 1e8b030..c6a9a61 100644 | ||
17 | --- a/arch/arm/kernel/setup.c | ||
18 | +++ b/arch/arm/kernel/setup.c | ||
19 | @@ -1080,3 +1080,12 @@ const struct seq_operations cpuinfo_op = { | ||
20 | .stop = c_stop, | ||
21 | .show = c_show | ||
22 | }; | ||
23 | + | ||
24 | +/* export the cache management functions */ | ||
25 | +#ifndef MULTI_CACHE | ||
26 | + | ||
27 | +EXPORT_SYMBOL(__glue(_CACHE,_dma_map_area)); | ||
28 | +EXPORT_SYMBOL(__glue(_CACHE,_dma_unmap_area)); | ||
29 | +EXPORT_SYMBOL(__glue(_CACHE,_dma_flush_range)); | ||
30 | + | ||
31 | +#endif | ||
diff --git a/meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend b/meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend index ea88489..1bcbb80 100644 --- a/meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend +++ b/meta-smx6-extras/recipes/linux/linux-smx6_3.14.28.bbappend | |||
@@ -31,6 +31,7 @@ FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" | |||
31 | SRC_URI += " \ | 31 | SRC_URI += " \ |
32 | file://0001-ARM-8158-1-LLVMLinux-use-static-inline-in-ARM-ftrace.patch \ | 32 | file://0001-ARM-8158-1-LLVMLinux-use-static-inline-in-ARM-ftrace.patch \ |
33 | file://0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline-.patch \ | 33 | file://0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline-.patch \ |
34 | file://0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch \ | ||
34 | " | 35 | " |
35 | 36 | ||
36 | do_configure_prepend() { | 37 | do_configure_prepend() { |