On 04/06/2016 12:45 PM, Dengke Du wrote:
The function of do_install_append_class-native for class-native
had alread exist,so exclude the class-native in function
do_install_append.

Signed-off-by: Dengke Du <dengke...@windriver.com>
---
  meta/recipes-core/coreutils/coreutils_8.25.bb | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/meta/recipes-core/coreutils/coreutils_8.25.bb 
b/meta/recipes-core/coreutils/coreutils_8.25.bb
index 419a693..e8e269a 100644
--- a/meta/recipes-core/coreutils/coreutils_8.25.bb
+++ b/meta/recipes-core/coreutils/coreutils_8.25.bb
@@ -70,6 +70,10 @@ do_compile_prepend () {
  }

  do_install_append() {
+       if [ "${CLASSOVERRIDE}" = "class-native" ]; then
+               return
+       fi
+

We need this patch, otherwise the tools provided by coreutils-native
are broken, for example, "ln" is "ln.coreutils" in native sysroot,
which can't be used by default.

This patch can fix the problem.

// Robert

        for i in df mktemp base64; do mv ${D}${bindir}/$i 
${D}${bindir}/$i.${BPN}; done

        install -d ${D}${base_bindir}

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to