]> code.ossystems Code Review - openembedded-core.git/commitdiff
cwautomacros: cleanup buildpath in autogen.sh
authorJackie Huang <jackie.huang@windriver.com>
Tue, 22 Sep 2015 09:16:13 +0000 (17:16 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Oct 2015 06:40:22 +0000 (07:40 +0100)
CWAUTOMACROSPREFIX is ${D}${prefix} which is used as the prefix
of install dir and used to replace the path placeholder in script
autogen.sh, the former is correct but not for the later, we can
fix the Makefile to use two variables for this, but I think a sed
replacement would be fine since the package has not been in
development for a long time.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/cwautomacros/cwautomacros_20110201.bb

index 43ea3ce382b82681cc27bb05d8ef128794844502..65a99fc28d71fa4d3b36cf26ab4e377efce73731 100644 (file)
@@ -14,6 +14,9 @@ do_configure() {
 
 do_install() {
        oe_runmake CWAUTOMACROSPREFIX=${D}${prefix} install
+
+       # cleanup buildpaths in autogen.sh
+       sed -i -e 's,${D},,g' ${D}${prefix}/share/cwautomacros/scripts/autogen.sh
 }
 
 BBCLASSEXTEND = "native"