On Friday 14 January 2011 10:12:17 Ben Thompson wrote:
> Hello
>
> Thanks for the help. I have made another attempt using autotools and I
> wrote it up here on the wiki :-
> http://shr-project.org/trac/wiki/Developing%20your%20own%20applications
>
> I am new to autotools and bitbake so it may contain mistakes. Some of
> the files are based on those found in the iliwi sources.
>
> It would be great if someone with a bit more knowledge could check it
> for me.
>
> Cheers
>
> Ben

The autotools foo looks fine, but your recipe could be a bit nicer.

> DESCRIPTION = "A hello world program written in Vala"
> SRCREV_pn-${PN} = "${AUTOREV}"
> PV = "0.1"
> PR = "r0"
> 
> S = "${WORKDIR}/myfirstapp"
> 
> SRC_URI = "file:///path/to/shr/build/myfirstapp"
> 
> inherit autotools vala

1. SRCREV is only needed for sources stored in an SCM (svn, git, ...)
2. You should put PV in the recipe name, like this: myfirstapp_0.1.bb. Then 
the PV variable is automatically populated with that value.
3. For sending the recipe upstream it has to be in a subdir of the 
shr-.../openembedded/recipes folder
4. bitbake -b does only build that recipe, if you add some DEPENDS those 
aren't build, so just do bitbake myfirstapp if it's stored in the recipes 
folder.
5. For building from local sources you can also use "inherit srctree" as it's 
used in conf/local-builds.conf

That are all comments for now :) Nice work.

Regards
Thomas

_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to