Patchwork [meta-fsl-ppc] testfloat: mark do_{compile, install} as fslmachine only

login
register
mail settings
Submitter Ting Liu
Date July 3, 2013, 9:23 a.m.
Message ID <1372843403-14656-1-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/52873/
State Superseded
Headers show

Comments

Ting Liu - July 3, 2013, 9:23 a.m.
From: Ting Liu <b28495@freescale.com>

The customized do_{compile,install} tasks are only available after
the three patches were applied.

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 recipes-test/testfloat/testfloat_2a.bb |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
Otavio Salvador - July 3, 2013, 12:52 p.m.
On Wed, Jul 3, 2013 at 6:23 AM,  <b28495@freescale.com> wrote:
> From: Ting Liu <b28495@freescale.com>
>
> The customized do_{compile,install} tasks are only available after
> the three patches were applied.
>
> Signed-off-by: Ting Liu <b28495@freescale.com>

Add a compatible machine match here, as done by Khem, so you can avoid
the :todo constructs.

--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

Patch

diff --git a/recipes-test/testfloat/testfloat_2a.bb b/recipes-test/testfloat/testfloat_2a.bb
index 8db41b8..597b324 100644
--- a/recipes-test/testfloat/testfloat_2a.bb
+++ b/recipes-test/testfloat/testfloat_2a.bb
@@ -6,10 +6,10 @@  LIC_FILES_CHKSUM = "file://testfloat/testfloat.txt;beginline=87;endline=95;md5=b
 
 SRC_URI = " http://www.jhauser.us/arithmetic/TestFloat-2a.tar.Z;name=TestFloat \
             http://www.jhauser.us/arithmetic/SoftFloat-2b.tar.Z;name=SoftFloat \
-            file://Yocto-replace-COMPILE_PREFIX-gcc.patch \
           "
 SRC_URI_append_fslmachine = " file://SoftFloat-powerpc-1.patch \
                               file://TestFloat-powerpc-E500v2-SPE-1.patch \
+                              file://Yocto-replace-COMPILE_PREFIX-gcc.patch \
                             "
 SRC_URI[TestFloat.md5sum] = "4dc889319ae1e0c5381ec511f784553a"
 SRC_URI[TestFloat.sha256sum] = "84d14aa42adefbda2ec9708b42946f7fa59f93689b042684bd027863481f8e4e"
@@ -32,10 +32,17 @@  do_unpack2(){
 addtask do_unpack2 after do_unpack before do_patch
 
 do_compile(){
+    :todo
+}
+
+do_compile_fslmachine(){
     oe_runmake -C testfloat/powerpc-linux-gcc/ CC="${CC}" EXTRA_CFLAGS="-DTEST_KERNEL_EMU"
 }
 
 do_install(){
+    :todo
+}
+do_install_fslmachine(){
     install -d ${D}/${bindir}
     install testfloat/powerpc-linux-gcc/testfloat ${D}/${bindir}
     install testfloat/powerpc-linux-gcc/testsoftfloat ${D}/${bindir}