This patch was suggested to prevent the mali drivers from rebuild
every time the modules are built.  It simply creates symlinks to
sources used by both ump.ko and mali.ko so that their objects are built
in separate directories; otherwise, there is a ping-pong effect between
the ump.ko objects and mali.ko objects overwriting each other.

Signed-off-by: Patrick Wood <[email protected]>
---
 drivers/gpu/mali/ump/Kbuild                   |    2 +-
 drivers/gpu/mali/ump/linux/mali_osk_atomics.c |    1 +
 drivers/gpu/mali/ump/linux/mali_osk_locks.c   |    1 +
 drivers/gpu/mali/ump/linux/mali_osk_math.c    |    1 +
 drivers/gpu/mali/ump/linux/mali_osk_memory.c  |    1 +
 drivers/gpu/mali/ump/linux/mali_osk_misc.c    |    1 +
 6 files changed, 6 insertions(+), 1 deletion(-)
 create mode 120000 drivers/gpu/mali/ump/linux/mali_osk_atomics.c
 create mode 120000 drivers/gpu/mali/ump/linux/mali_osk_locks.c
 create mode 120000 drivers/gpu/mali/ump/linux/mali_osk_math.c
 create mode 120000 drivers/gpu/mali/ump/linux/mali_osk_memory.c
 create mode 120000 drivers/gpu/mali/ump/linux/mali_osk_misc.c

diff --git a/drivers/gpu/mali/ump/Kbuild b/drivers/gpu/mali/ump/Kbuild
index 01355f5..62380fa 100644
--- a/drivers/gpu/mali/ump/Kbuild
+++ b/drivers/gpu/mali/ump/Kbuild
@@ -12,7 +12,7 @@
 # Change this to use a different config.h
 CONFIG ?= os_memory_64m
 
-UDD_FILE_PREFIX = ../mali/
+UDD_FILE_PREFIX = 
 
 # set the SVN_REV to ${MALI_RELEASE_NAME} due to ARM using subversion
 SVN_REV := $(MALI_RELEASE_NAME)
diff --git a/drivers/gpu/mali/ump/linux/mali_osk_atomics.c 
b/drivers/gpu/mali/ump/linux/mali_osk_atomics.c
new file mode 120000
index 0000000..d37aa82
--- /dev/null
+++ b/drivers/gpu/mali/ump/linux/mali_osk_atomics.c
@@ -0,0 +1 @@
+../../mali/linux/mali_osk_atomics.c
\ No newline at end of file
diff --git a/drivers/gpu/mali/ump/linux/mali_osk_locks.c 
b/drivers/gpu/mali/ump/linux/mali_osk_locks.c
new file mode 120000
index 0000000..f4c33be
--- /dev/null
+++ b/drivers/gpu/mali/ump/linux/mali_osk_locks.c
@@ -0,0 +1 @@
+../../mali/linux/mali_osk_locks.c
\ No newline at end of file
diff --git a/drivers/gpu/mali/ump/linux/mali_osk_math.c 
b/drivers/gpu/mali/ump/linux/mali_osk_math.c
new file mode 120000
index 0000000..e8a59cd
--- /dev/null
+++ b/drivers/gpu/mali/ump/linux/mali_osk_math.c
@@ -0,0 +1 @@
+../../mali/linux/mali_osk_math.c
\ No newline at end of file
diff --git a/drivers/gpu/mali/ump/linux/mali_osk_memory.c 
b/drivers/gpu/mali/ump/linux/mali_osk_memory.c
new file mode 120000
index 0000000..0e5e8c8
--- /dev/null
+++ b/drivers/gpu/mali/ump/linux/mali_osk_memory.c
@@ -0,0 +1 @@
+../../mali/linux/mali_osk_memory.c
\ No newline at end of file
diff --git a/drivers/gpu/mali/ump/linux/mali_osk_misc.c 
b/drivers/gpu/mali/ump/linux/mali_osk_misc.c
new file mode 120000
index 0000000..750aa9d
--- /dev/null
+++ b/drivers/gpu/mali/ump/linux/mali_osk_misc.c
@@ -0,0 +1 @@
+../../mali/linux/mali_osk_misc.c
\ No newline at end of file
-- 
1.7.9.5

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to