[oe] [PATCH] serload-native: Removing legacy staging

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Sat Aug 14 08:47:37 UTC 2010


2010/8/13 Ahsan, Noor <noor_ahsan at mentor.com>:
> * Replaced do_stage function with do_install and replaced ${STAGING_BINDIR} with ${D}${bindir}
>
> Signed-off-by: Ahsan, Noor <noor_ahsan at mentor.com>
> ---
>  recipes/simpad-utilities/serload-native.bb |   12 ++++++++----
>  1 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/recipes/simpad-utilities/serload-native.bb b/recipes/simpad-utilities/serload-native.bb
> index 9be199f..d147db2 100644
> --- a/recipes/simpad-utilities/serload-native.bb
> +++ b/recipes/simpad-utilities/serload-native.bb
> @@ -3,14 +3,18 @@ LICENSE= "GPL"
>  DESCRIPTION = "Console utility for transferring a SIMpad boot image via serial a SIMpad"
>  FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/serload"
>  SRC_URI = "file://serialdownload.cpp file://main.cpp file://serialdownload.h"
> +PR = "r1"
>
>  inherit native
>
> +NATIVE_INSTALL_WORKS = "1"
> +
>  do_compile() {
> -       cp ${WORKDIR}/*.h ${WORKDIR}/*.cpp .
> -       ${CXX} -I. -o serload main.cpp serialdownload.cpp
> +        cp ${WORKDIR}/*.h ${WORKDIR}/*.cpp .
> +        ${CXX} -I. -o serload main.cpp serialdownload.cpp
>  }
>
> -do_stage() {
> -       install -m 0755 serload ${STAGING_BINDIR}/
> +do_install() {
> +        install -d ${D}${bindir}/
> +        install -m 0755 serload ${D}${bindir}/
>  }

removed FILESDIR as suggested by Tom RIni,
reran oe-styilze
compiled
committed and pushed

Thanks for your contribution.
Feel free to attack some more recipes :-)

Frans




More information about the Openembedded-devel mailing list