Changes between Version 20 and Version 21 of Getting started developing SHR
- Timestamp:
- 04/25/11 18:44:49 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Getting started developing SHR
v20 v21 31 31 Applied to our goal, which is to develop locally SHR applications, you must override four variables: SRC_URI (where does source come from), SRCREV (source revision), SRCPV (program version) and S (working directory when compiling). 32 32 33 To do that, create or edit '''conf/local-builds.inc''' with the following content (i.e lib frameworkd-phonegui-efl):33 To do that, create or edit '''conf/local-builds.inc''' with the following content (i.e libphone-ui-shr): 34 34 {{{ 35 SRC_URI_pn-libframeworkd-phonegui-efl = "file:///path/to/shr-apps" 36 SRCREV_pn-libframeworkd-phonegui-efl = "LOCAL" 37 SRCPV_pn-libframeworkd-phonegui-efl = "LOCAL" 38 S_pn-libframeworkd-phonegui-efl = "${WORKDIR}/shr-apps/shr/${PN}" 35 INHERIT_append_pn-libphone-ui-shr = "srctree gitpkgv" 36 SRCREV_pn-libphone-ui-shr = "${GITSHA}" 37 S_pn-libphone-ui-shr = "/path/to/source/${PN}" 39 38 }}} 40 This will cause the directory pointed to by SRC_URI (`shr-apps` in the example) to be copied to ${WORKDIR} for compilation, and the actual source of the application (i.e., the directory where `./configure` and `make` will be run) is expected to be found in S. If unset, S defaults to `${WORKDIR}/${PN}-${PV}`.41 39 40 then change working directory to folder with your local checkout and you should be able to build it 41 {{{ 42 cd /path/to/source/${PN} 43 bitbake -c clean libphone-ui-shr 44 bitbake libphone-ui-shr 45 }}} 42 46 43 47 To know the best practice to contribute SHR, please refer to [wiki:"Coding Conventions"].
