Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yocto version control

Tags:

yocto

We are struggling for version control of our application ,RFS, Uboot and kernel

We have a hello world program. Every time we are changing (patching) new functionality to the program, we have to keep a track on changes with help of version no. We need the version no of this (hello world package) should be auto incremented. Same we have to do with Linux and uboot.

Does yocto can do this for us? Or do we have any other option to achieve this. Please suggest us as we are new for all the capabilities of yocto.

like image 811
Setu Gupta Avatar asked Sep 07 '15 12:09

Setu Gupta


1 Answers

A full example of how you can do this:

The important part is SRCREV = "${AUTOREV}" and PV = "${BPV}+gitr${SRCPV}"

DESCRIPTION = "Hello World"
SECTION = "examples"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = "file://README.md;md5=8386d486d9e820c480636608de5c2d98"

SRCREV = "${AUTOREV}"
BPV = "0.1.0"
PV = "${BPV}+gitr${SRCPV}" 

S = "${WORKDIR}/git"

SRC_URI = " git://example/hello_world.git;protocol=http \
"

inherit autotools

RDEPENDS_${PN} += " \
    hello-world-runtime-dependency \
"
like image 144
Fl0v0 Avatar answered Sep 21 '22 10:09

Fl0v0