]> code.ossystems Code Review - meta-freescale.git/commitdiff
change-file-endianess: Rework recipe completely
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 9 Mar 2017 14:34:11 +0000 (11:34 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 9 Mar 2017 20:14:12 +0000 (17:14 -0300)
The recipe was mixing different concepts. It is intended to provide a
TCL script to change the endianess of files and the recipe was
conceptually wrong.

The use of the deploy class is wrong as it is not an artifact that is
going to be used to install a board but a tool required for
development (so the need of native and nativesdk variants).

Change-Id: I5ebb063fa1c57a8c7c307314ac6322abfa88d33c
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/change-file-endianess/change-file-endianess.bb

index 9cf2212eb5d1dcd3a2722fd1fe971d078eabe16b..fc98b01568c9f9590d790e10939b0e4ff44b1eed 100644 (file)
@@ -5,10 +5,6 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d
 
 SRC_URI = "file://byte_swap.tcl"
 
-RDEPENDS += "tcl-native"
-
-inherit native deploy
-
 S = "${WORKDIR}"
 
 do_configure[noexec] = "1"
@@ -19,14 +15,6 @@ do_install () {
     install -m 755 ${WORKDIR}/byte_swap.tcl ${D}/${bindir}
 }
 
-do_deploy () {
-    :
-}
-
-do_deploy_class-native () {
-    install -d ${DEPLOYDIR}
-    cp -f ${S}/byte_swap.tcl ${DEPLOYDIR}/
-}
-addtask deploy before do_build after do_populate_sysroot
+RDEPENDS_${PN} += "tcl"
 
 BBCLASSEXTEND = "native nativesdk"