]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc: print PN when bbwarn
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 13 Jul 2015 10:02:41 +0000 (03:02 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Jul 2015 14:08:43 +0000 (15:08 +0100)
The current warning is:
WARNING: glibc: unable to generate header for spray.x

Which is easier to debug than:
WARNING: unable to generate header for spray.x

And remove the file before generate it again to fix the warning when
recompile:
file `bootparam_prot.h' already exists and may be overwritten
WARNING: unable to generate header for bootparam_prot.x
file `nlm_prot.h' already exists and may be overwritten
WARNING: unable to generate header for nlm_prot.x
[snip]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/glibc/glibc_2.21.bb

index 8197c29d2e4116e3f8b93ffa7381b39104e5bca6..30f19376e8d26725df8c5812b12468d9217230a3 100644 (file)
@@ -135,7 +135,8 @@ do_compile () {
                cd ${S}/sunrpc/rpcsvc
                for r in ${rpcsvc}; do
                        h=`echo $r|sed -e's,\.x$,.h,'`
-                       rpcgen -h $r -o $h || bbwarn "unable to generate header for $r"
+                       rm -f $h
+                       rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
                done
        )
        echo "Adjust ldd script"