summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/qmss-lld/files/init_qmss.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/qmss-lld/files/init_qmss.sh')
-rwxr-xr-xrecipes-bsp/qmss-lld/files/init_qmss.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-bsp/qmss-lld/files/init_qmss.sh b/recipes-bsp/qmss-lld/files/init_qmss.sh
new file mode 100755
index 00000000..af695318
--- /dev/null
+++ b/recipes-bsp/qmss-lld/files/init_qmss.sh
@@ -0,0 +1,47 @@
1#*
2#* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
3#*
4#*
5#* Redistribution and use in source and binary forms, with or without
6#* modification, are permitted provided that the following conditions
7#* are met:
8#*
9#* Redistributions of source code must retain the above copyright
10#* notice, this list of conditions and the following disclaimer.
11#*
12#* Redistributions in binary form must reproduce the above copyright
13#* notice, this list of conditions and the following disclaimer in the
14#* documentation and/or other materials provided with the
15#* distribution.
16#*
17#* Neither the name of Texas Instruments Incorporated nor the names of
18#* its contributors may be used to endorse or promote products derived
19#* from this software without specific prior written permission.
20#*
21
22#! /bin/sh
23compatible=$(cat /proc/device-tree/compatible)
24
25cd /usr/lib
26case "$compatible" in
27 *k2hk*)
28 device=k2hk
29 ln -sf libqmss_k2h.so.1.0.0 libqmss_device.so.1
30 ;;
31 *k2l*)
32 device=k2l
33 ln -sf libqmss_k2l.so.1.0.0 libqmss_device.so.1
34 ;;
35 *k2e*)
36 device=k2e
37 ln -sf libqmss_k2e.so.1.0.0 libqmss_device.so.1
38 ;;
39 *)
40 device=unknown
41 ;;
42esac
43
44if [ $device != unknown ]; then
45 ln -sf libqmss_device.so.1 libqmss_device.so
46 echo qmss library link established for device : $device
47fi