All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm][PATCH 1/4] change-file-endianess: add recipe
@ 2015-02-04  3:18 b40290
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 2/4] rcw: Added change-file-endianess as DEPENDS b40290
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: b40290 @ 2015-02-04  3:18 UTC (permalink / raw)
  To: meta-freescale

From: Chunrong Guo <B40290@freescale.com>

   *provides the tcl script for endian swap

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 .../change-file-endianess/change-file-endianess.bb | 21 ++++++++++++++++
 .../change-file-endianess/byte_swap.tcl            | 29 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 recipes-bsp/change-file-endianess/change-file-endianess.bb
 create mode 100755 recipes-bsp/change-file-endianess/change-file-endianess/byte_swap.tcl

diff --git a/recipes-bsp/change-file-endianess/change-file-endianess.bb b/recipes-bsp/change-file-endianess/change-file-endianess.bb
new file mode 100644
index 0000000..9e7e868
--- /dev/null
+++ b/recipes-bsp/change-file-endianess/change-file-endianess.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "provides the tcl script for endian swap"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
+                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+
+SRC_URI = "file://byte_swap.tcl"
+
+RDEPENDS += "tcl-native"
+
+inherit native
+
+S = "${WORKDIR}"
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_install () {
+    install -d ${D}/${bindir}
+    install -m 755 ${WORKDIR}/byte_swap.tcl ${D}/${bindir}
+}
diff --git a/recipes-bsp/change-file-endianess/change-file-endianess/byte_swap.tcl b/recipes-bsp/change-file-endianess/change-file-endianess/byte_swap.tcl
new file mode 100755
index 0000000..aca956b
--- /dev/null
+++ b/recipes-bsp/change-file-endianess/change-file-endianess/byte_swap.tcl
@@ -0,0 +1,29 @@
+puts $argv
+set i_file [lindex $argv 0]
+set o_file [lindex $argv 1]
+set num_b  [lindex $argv 2]
+puts ""
+
+set fileid_i [open $i_file "r"]
+set fileid_o [open $o_file "w+"]
+fconfigure $fileid_i -translation {binary binary}
+fconfigure $fileid_o -translation {binary binary}
+
+set old_bin [read $fileid_i]
+set new_bin {}
+for {set i 0} {$i<[string length $old_bin]} {incr i $num_b} {
+        for {set j $num_b} {$j>0} {incr j -1} {
+                append new_bin [string index $old_bin [expr $i+($j-1)]]
+        }
+}
+
+for {set i 0} {$i<[string length $old_bin]} {incr i $num_b} {
+        set binValue [string range $old_bin [expr $i+0] [expr $i+($num_b-1)]]
+        binary scan $binValue H[expr $num_b*2] hexValue
+        
+        set binValue [string range $new_bin [expr $i+0] [expr $i+($num_b-1)]]
+        binary scan $binValue H[expr $num_b*2] hexValue
+}
+
+puts -nonewline $fileid_o $new_bin
+close $fileid_o
-- 
1.9.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-fsl-arm][PATCH 2/4] rcw: Added change-file-endianess as DEPENDS
  2015-02-04  3:18 [meta-fsl-arm][PATCH 1/4] change-file-endianess: add recipe b40290
@ 2015-02-04  3:18 ` b40290
  2015-02-04  4:07   ` zhenhua.luo
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 3/4] u-boot-ls1: " b40290
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 4/4] u-boot-ls1-tools-native: remove recipe b40290
  2 siblings, 1 reply; 6+ messages in thread
From: b40290 @ 2015-02-04  3:18 UTC (permalink / raw)
  To: meta-freescale

From: Chunrong Guo <B40290@freescale.com>

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 recipes-bsp/rcw/rcw_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb
index 0d10548..6f517c9 100644
--- a/recipes-bsp/rcw/rcw_git.bb
+++ b/recipes-bsp/rcw/rcw_git.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Reset Configuration Word - hardware boot-time parameters for the
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://rcw.py;beginline=8;endline=28;md5=9ba0b28922dd187b06b6c8ebcfdd208e"
 
-DEPENDS += "u-boot-ls1-tools-native"
+DEPENDS += "change-file-endianess"
 
 inherit deploy
 
-- 
1.9.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-fsl-arm][PATCH 3/4] u-boot-ls1: Added change-file-endianess as DEPENDS
  2015-02-04  3:18 [meta-fsl-arm][PATCH 1/4] change-file-endianess: add recipe b40290
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 2/4] rcw: Added change-file-endianess as DEPENDS b40290
@ 2015-02-04  3:18 ` b40290
  2015-02-04  4:08   ` zhenhua.luo
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 4/4] u-boot-ls1-tools-native: remove recipe b40290
  2 siblings, 1 reply; 6+ messages in thread
From: b40290 @ 2015-02-04  3:18 UTC (permalink / raw)
  To: meta-freescale

From: Chunrong Guo <B40290@freescale.com>

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 recipes-bsp/u-boot/u-boot-ls1_2014.07.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-bsp/u-boot/u-boot-ls1_2014.07.bb b/recipes-bsp/u-boot/u-boot-ls1_2014.07.bb
index 7b4fb58..1669b8a 100644
--- a/recipes-bsp/u-boot/u-boot-ls1_2014.07.bb
+++ b/recipes-bsp/u-boot/u-boot-ls1_2014.07.bb
@@ -4,7 +4,7 @@ inherit fsl-u-boot-localversion
 
 LOCALVERSION ?= "-${SRCBRANCH}"
 
-DEPENDS += "u-boot-ls1-tools-native"
+DEPENDS += "change-file-endianess"
 PROVIDES += "u-boot"
 
 do_compile_append () {
-- 
1.9.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-fsl-arm][PATCH 4/4] u-boot-ls1-tools-native: remove recipe
  2015-02-04  3:18 [meta-fsl-arm][PATCH 1/4] change-file-endianess: add recipe b40290
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 2/4] rcw: Added change-file-endianess as DEPENDS b40290
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 3/4] u-boot-ls1: " b40290
@ 2015-02-04  3:18 ` b40290
  2 siblings, 0 replies; 6+ messages in thread
From: b40290 @ 2015-02-04  3:18 UTC (permalink / raw)
  To: meta-freescale

From: Chunrong Guo <B40290@freescale.com>

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 recipes-bsp/u-boot/u-boot-ls1-tools-native_2013.10.bb | 16 ----------------
 1 file changed, 16 deletions(-)
 delete mode 100644 recipes-bsp/u-boot/u-boot-ls1-tools-native_2013.10.bb

diff --git a/recipes-bsp/u-boot/u-boot-ls1-tools-native_2013.10.bb b/recipes-bsp/u-boot/u-boot-ls1-tools-native_2013.10.bb
deleted file mode 100644
index 09cf1f7..0000000
--- a/recipes-bsp/u-boot/u-boot-ls1-tools-native_2013.10.bb
+++ /dev/null
@@ -1,16 +0,0 @@
-require u-boot-ls1.inc
-
-SRC_URI = "git://git.freescale.com/layerscape/ls1021a/u-boot.git;branch=LS1-dev"
-SRCREV = "50d684801cd05ed6b77d52d1ca9ed00fefeac469"
-
-RDEPENDS += "tcl-native"
-
-inherit native
-
-do_configure[noexec] = "1"
-do_compile[noexec] = "1"
-
-do_install () {
-    install -d ${D}/${bindir}
-    install -m 755 ${S}/byte_swap.tcl ${D}/${bindir}
-}
-- 
1.9.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [meta-fsl-arm][PATCH 2/4] rcw: Added change-file-endianess as DEPENDS
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 2/4] rcw: Added change-file-endianess as DEPENDS b40290
@ 2015-02-04  4:07   ` zhenhua.luo
  0 siblings, 0 replies; 6+ messages in thread
From: zhenhua.luo @ 2015-02-04  4:07 UTC (permalink / raw)
  To: B40290, meta-freescale

> -----Original Message-----
> From: b40290@freescale.com [mailto:b40290@freescale.com]
> Sent: Wednesday, February 04, 2015 11:19 AM
> To: meta-freescale@yoctoproject.org
> Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290
> Subject: [meta-fsl-arm][PATCH 2/4] rcw: Added change-file-endianess as
> DEPENDS
> 
> From: Chunrong Guo <B40290@freescale.com>
> 
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
>  recipes-bsp/rcw/rcw_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb index
> 0d10548..6f517c9 100644
> --- a/recipes-bsp/rcw/rcw_git.bb
> +++ b/recipes-bsp/rcw/rcw_git.bb
> @@ -3,7 +3,7 @@ DESCRIPTION = "Reset Configuration Word - hardware boot-
> time parameters for the  LICENSE = "BSD"
>  LIC_FILES_CHKSUM =
> "file://rcw.py;beginline=8;endline=28;md5=9ba0b28922dd187b06b6c8ebcfdd2
> 08e"
> 
> -DEPENDS += "u-boot-ls1-tools-native"
> +DEPENDS += "change-file-endianess"
[Luo Zhenhua-B19537] The dependency should be change-file-endianess-native. 


Best Regards,

Zhenhua

> 
>  inherit deploy
> 
> --
> 1.9.2



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-fsl-arm][PATCH 3/4] u-boot-ls1: Added change-file-endianess as DEPENDS
  2015-02-04  3:18 ` [meta-fsl-arm][PATCH 3/4] u-boot-ls1: " b40290
@ 2015-02-04  4:08   ` zhenhua.luo
  0 siblings, 0 replies; 6+ messages in thread
From: zhenhua.luo @ 2015-02-04  4:08 UTC (permalink / raw)
  To: B40290, meta-freescale

> -----Original Message-----
> From: b40290@freescale.com [mailto:b40290@freescale.com]
> Sent: Wednesday, February 04, 2015 11:19 AM
> To: meta-freescale@yoctoproject.org
> Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290
> Subject: [meta-fsl-arm][PATCH 3/4] u-boot-ls1: Added change-file-endianess
> as DEPENDS
> 
> From: Chunrong Guo <B40290@freescale.com>
> 
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
>  recipes-bsp/u-boot/u-boot-ls1_2014.07.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/recipes-bsp/u-boot/u-boot-ls1_2014.07.bb b/recipes-bsp/u-boot/u-
> boot-ls1_2014.07.bb
> index 7b4fb58..1669b8a 100644
> --- a/recipes-bsp/u-boot/u-boot-ls1_2014.07.bb
> +++ b/recipes-bsp/u-boot/u-boot-ls1_2014.07.bb
> @@ -4,7 +4,7 @@ inherit fsl-u-boot-localversion
> 
>  LOCALVERSION ?= "-${SRCBRANCH}"
> 
> -DEPENDS += "u-boot-ls1-tools-native"
> +DEPENDS += "change-file-endianess"
 [Luo Zhenhua-B19537] The dependency should be change-file-endianess-native.


Best Regards,

Zhenhua

>  PROVIDES += "u-boot"
> 
>  do_compile_append () {
> --
> 1.9.2



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-04  4:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-04  3:18 [meta-fsl-arm][PATCH 1/4] change-file-endianess: add recipe b40290
2015-02-04  3:18 ` [meta-fsl-arm][PATCH 2/4] rcw: Added change-file-endianess as DEPENDS b40290
2015-02-04  4:07   ` zhenhua.luo
2015-02-04  3:18 ` [meta-fsl-arm][PATCH 3/4] u-boot-ls1: " b40290
2015-02-04  4:08   ` zhenhua.luo
2015-02-04  3:18 ` [meta-fsl-arm][PATCH 4/4] u-boot-ls1-tools-native: remove recipe b40290

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.