summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/hyplnk-lld/files/init_hyplnk.sh
diff options
context:
space:
mode:
authorSam Nelson <sam.nelson@ti.com>2015-04-11 03:52:27 +0000
committerDenys Dmytriyenko <denys@ti.com>2015-04-10 18:08:41 -0400
commit3a17af114edc5c0e1178ce90789a8afabad056fb (patch)
tree9cf988276e59f4cee4bb82af3132cee7d9e716b0 /recipes-bsp/hyplnk-lld/files/init_hyplnk.sh
parent79945047c74dc914073d0cd7f157a271259076e7 (diff)
downloadmeta-ti-3a17af114edc5c0e1178ce90789a8afabad056fb.tar.gz
hyplnk-lld: Update to new version 2.1.0.2
- Add init script to add symbolic link for generic device library - remove unused CHOICELIST Signed-off-by: Sam Nelson <sam.nelson@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/hyplnk-lld/files/init_hyplnk.sh')
-rwxr-xr-xrecipes-bsp/hyplnk-lld/files/init_hyplnk.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-bsp/hyplnk-lld/files/init_hyplnk.sh b/recipes-bsp/hyplnk-lld/files/init_hyplnk.sh
new file mode 100755
index 00000000..fb650575
--- /dev/null
+++ b/recipes-bsp/hyplnk-lld/files/init_hyplnk.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 libhyplnk_k2h.so.1.0.0 libhyplnk_device.so.1
30 ;;
31 *k2l*)
32 device=k2l
33 ln -sf libhyplnk_k2l.so.1.0.0 libhyplnk_device.so.1
34 ;;
35 *k2e*)
36 device=k2e
37 ln -sf libhyplnk_k2e.so.1.0.0 libhyplnk_device.so.1
38 ;;
39 *)
40 device=unknown
41 ;;
42esac
43
44if [ $device != unknown ]; then
45 ln -sf libhyplnk_device.so.1 libhyplnk_device.so
46 echo hyplnk library link established for device : $device
47fi