Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8EEE8E009B8; Tue, 27 Oct 2015 11:19:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.94.94.40 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5CBD4E00708 for ; Tue, 27 Oct 2015 11:19:36 -0700 (PDT) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id t9RIJZGc000635 for ; Tue, 27 Oct 2015 13:19:35 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t9RIJZdH031297 for ; Tue, 27 Oct 2015 13:19:35 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Tue, 27 Oct 2015 13:19:35 -0500 Received: from udb0862859.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t9RIJYpB015717; Tue, 27 Oct 2015 13:19:35 -0500 From: Sam Nelson To: Date: Tue, 27 Oct 2015 14:18:09 -0400 Message-ID: <1445969889-11266-1-git-send-email-sam.nelson@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [PATCH] pa-lld: Add missing init script X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 18:19:40 -0000 Content-Type: text/plain - The init script is used to create symbolic link to the right device library Signed-off-by: Sam Nelson --- recipes-bsp/pa-lld/files/init_pa.sh | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 recipes-bsp/pa-lld/files/init_pa.sh diff --git a/recipes-bsp/pa-lld/files/init_pa.sh b/recipes-bsp/pa-lld/files/init_pa.sh new file mode 100755 index 0000000..8f80e35 --- /dev/null +++ b/recipes-bsp/pa-lld/files/init_pa.sh @@ -0,0 +1,47 @@ +#* +#* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ +#* +#* +#* Redistribution and use in source and binary forms, with or without +#* modification, are permitted provided that the following conditions +#* are met: +#* +#* Redistributions of source code must retain the above copyright +#* notice, this list of conditions and the following disclaimer. +#* +#* Redistributions in binary form must reproduce the above copyright +#* notice, this list of conditions and the following disclaimer in the +#* documentation and/or other materials provided with the +#* distribution. +#* +#* Neither the name of Texas Instruments Incorporated nor the names of +#* its contributors may be used to endorse or promote products derived +#* from this software without specific prior written permission. +#* + +#! /bin/sh +compatible=$(cat /proc/device-tree/compatible) + +cd /usr/lib +case "$compatible" in + *k2hk*) + device=k2hk + ln -sf libpa.so.1.0.0 libpa_device.so.1 + ;; + *k2l*) + device=k2l + ln -sf libpa2.so.1.0.0 libpa_device.so.1 + ;; + *k2e*) + device=k2e + ln -sf libpa2.so.1.0.0 libpa_device.so.1 + ;; + *) + device=unknown + ;; +esac + +if [ $device != unknown ]; then + ln -sf libpa_device.so.1 libpa_device.so + echo PA library link established for device : $device +fi -- 1.7.9.5