aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/dma_buf_lock/src/sconscript
diff options
context:
space:
mode:
authorShow Liu <show.liu@linaro.org>2014-05-20 15:55:03 +0800
committerShow Liu <show.liu@linaro.org>2014-05-20 15:55:03 +0800
commit53d47b62620d0e822c848656eec68ea8dd2274d8 (patch)
tree5b3f25b104850771582ccbeecadc8f57c62f6cc6 /drivers/base/dma_buf_lock/src/sconscript
parent23a0ab2467a1b0698fa7048e50c1bcf0cf9ffc61 (diff)
add dma_buf lock driver
Diffstat (limited to 'drivers/base/dma_buf_lock/src/sconscript')
-rwxr-xr-xdrivers/base/dma_buf_lock/src/sconscript36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/base/dma_buf_lock/src/sconscript b/drivers/base/dma_buf_lock/src/sconscript
new file mode 100755
index 00000000000..251c9a6f53d
--- /dev/null
+++ b/drivers/base/dma_buf_lock/src/sconscript
@@ -0,0 +1,36 @@
+#
+# (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved.
+#
+# This program is free software and is provided to you under the terms of the
+# GNU General Public License version 2 as published by the Free Software
+# Foundation, and any use by you of this program is subject to the terms
+# of such GNU licence.
+#
+# A copy of the licence is included with the program, and can also be obtained
+# from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+#
+#
+
+
+import os
+import re
+Import('env')
+
+if env['v'] != '1':
+ env['MAKECOMSTR'] = '[MAKE] ${SOURCE.dir}'
+
+src = [Glob('#kernel/drivers/base/dma_buf_lock/src/*.c'), Glob('#kernel/drivers/base/dma_buf_lock/src/*.h'), Glob('#kernel/drivers/base/dma_buf_lock/src/K*')]
+
+if env.GetOption('clean') :
+ # Clean module
+ env.Execute(Action("make clean", '[CLEAN] dma_buf_lock'))
+ cmd = env.Command('$STATIC_LIB_PATH/dma_buf_lock.ko', src, [])
+ env.ProgTarget('dma_buf_lock', cmd)
+
+else:
+ # Build module
+ makeAction=Action("cd ${SOURCE.dir} && make dma_buf_lock && cp dma_buf_lock.ko $STATIC_LIB_PATH/", '$MAKECOMSTR')
+ cmd = env.Command('$STATIC_LIB_PATH/dma_buf_lock.ko', src, [makeAction])
+ env.ProgTarget('dma_buf_lock', cmd)
+