[yocto] Need help for custom recipe
Paul Eggleton
paul.eggleton at linux.intel.com
Mon Feb 2 08:41:55 PST 2015
Hi Abhinav,
On Monday 02 February 2015 14:04:49 Bipnesh, Abhinav wrote:
> I am trying to write an custom recipe for one of the application. In the
> do_install() I am using an external script for creating rpm of the
> application. Below is the recipe file which I have written.
>
> SUMMARY = "Hello World"
> DESCRIPTION = "A recipe for HelloWorld"
>
> LICENSE = "MIT"
> LIC_FILES_CHKSUM =
> file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302<file:
> ///\\$%7bCOMMON_LICENSE_DIR%7d\MIT;md5=0835ade698e0bcf8506ecda2f7b4f302>
>
> # Upstream names releases after SVN revs
> #SRCREV = "100"
> SRCREV = "${AUTOREV}"
> PV = "r${SRCREV}"
> DEPENDS = "boost util-linux curl"
>
> SRC_URI = "file://helloworld.c"
> S = "${WORKDIR}
>
> do_install () {
> sh ${WORKDIR}/ build.sh
>
> }
>
> Now as this is a makefile based project. Now when I fire bitbake helloworld
> I am able to build the RPM of the package using build.sh file.
>
> But when I try to check these RPM under <build_dir>/tmp/deploy it is not
> found.
My first question is why do you need to create the RPMs in a custom manner like
this? By doing so you are bypassing quite a lot of well-tested logic that we
have written around packaging.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list