Signed-off-by: Ting Liu <ting.liu@nxp.com>
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
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
+inherit native deploy
S = "${WORKDIR}"
install -m 755 ${WORKDIR}/byte_swap.tcl ${D}/${bindir}
}
+do_deploy () {
+ :
+}
+
+do_deploy_class-native () {
+ install -d ${DEPLOYDIR}
+ cp -f ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${DEPLOYDIR}/
+}
+addtask deploy before do_build after do_populate_sysroot
+
BBCLASSEXTEND = "native nativesdk"
append old_bin y
}
}
-for {set i 0} {$i<[string length $old_bin]} {incr i $num_b} {
+for {set i 0} {$i<[expr $old_length-8]} {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 j 0} {$j<8} {incr j 1} {
+ append new_bin [string index $old_bin [expr $i+$j]]
+}
+
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