Patchwork ti-wifi-utils: install calibrator ini files to rootfs

login
register
mail settings
Submitter Eyal Reizer
Date June 5, 2011, 3:32 p.m.
Message ID <1307287954-21084-1-git-send-email-eyalr@ti.com>
Download mbox | patch
Permalink /patch/5395/
State Superseded
Delegated to: Koen Kooi
Headers show

Comments

Eyal Reizer - June 5, 2011, 3:32 p.m.
In order to perform wifi calibration the calibrator needs to be
provided as input with a reference NVS file that matches the wifi chip 
and the radio mudule that is being used.

This patch install these ini files to the root file system so they can 
be used when performing the calibration.

Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
 recipes/ti/ti-wifi-utils_git.bb |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
Koen Kooi - June 5, 2011, 6:13 p.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05-06-11 17:32, Eyal Reizer wrote:
> In order to perform wifi calibration the calibrator needs to be
> provided as input with a reference NVS file that matches the wifi chip 
> and the radio mudule that is being used.
> 
> This patch install these ini files to the root file system so they can 
> be used when performing the calibration.
> 
> Signed-off-by: Eyal Reizer <eyalr@ti.com>
> ---
>  recipes/ti/ti-wifi-utils_git.bb |   13 ++++++++++++-
>  1 files changed, 12 insertions(+), 1 deletions(-)
> 
> diff --git a/recipes/ti/ti-wifi-utils_git.bb b/recipes/ti/ti-wifi-utils_git.bb
> index 8d10051..d5e548b 100644
> --- a/recipes/ti/ti-wifi-utils_git.bb
> +++ b/recipes/ti/ti-wifi-utils_git.bb
> @@ -3,7 +3,7 @@ LICENSE = "TI-BSD"
>  
>  DEPENDS = "libnl"
>  
> -PR ="r2"
> +PR ="r3"
>  PV ="0.0"
>  PR_append = "+gitr${SRCPV}"
>  
> @@ -17,5 +17,16 @@ CFLAGS += " -DCONFIG_LIBNL20"
>  
>  do_install() {
>  	install -d ${D}${bindir}
> +	install -d ${D}${bindir}/ti-wifi-utils/ini_files/127x
> +	install -d ${D}${bindir}/ti-wifi-utils/ini_files/128x

Ini files belong somewhere in /usr/share or maybe /etc, but not in /usr/bin.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFN68dlMkyGM64RGpERAlxuAJ9c1xagnhFBj1zwfDMKan1zsQcKPgCfTpeP
eSyrjfcImfSInu3hdgkkoEk=
=n6ml
-----END PGP SIGNATURE-----

Patch

diff --git a/recipes/ti/ti-wifi-utils_git.bb b/recipes/ti/ti-wifi-utils_git.bb
index 8d10051..d5e548b 100644
--- a/recipes/ti/ti-wifi-utils_git.bb
+++ b/recipes/ti/ti-wifi-utils_git.bb
@@ -3,7 +3,7 @@  LICENSE = "TI-BSD"
 
 DEPENDS = "libnl"
 
-PR ="r2"
+PR ="r3"
 PV ="0.0"
 PR_append = "+gitr${SRCPV}"
 
@@ -17,5 +17,16 @@  CFLAGS += " -DCONFIG_LIBNL20"
 
 do_install() {
 	install -d ${D}${bindir}
+	install -d ${D}${bindir}/ti-wifi-utils/ini_files/127x
+	install -d ${D}${bindir}/ti-wifi-utils/ini_files/128x
+
 	install -m 0755 calibrator ${D}${bindir}/	
+	install -m 0755 ${S}/ini_files/127x/* ${D}${bindir}/ti-wifi-utils/ini_files/127x
+	install -m 0755 ${S}/ini_files/128x/* ${D}${bindir}/ti-wifi-utils/ini_files/128x
 }
+
+FILES_${PN} +=" \
+	${bindir}/ti-wifi-utils/ini_files/127x \
+	${bindir}/ti-wifi-utils/ini_files/128x \
+	"
+