-
Notifications
You must be signed in to change notification settings - Fork 19
Yocto build tips
Rishab Shah edited this page Dec 7, 2021
·
1 revision
After enabling this, the latest commit will always be fetched from the the referenced github repo.
Example:
- NAME_OF_SOURCE_REPO = final-project-Rishab-Shah
# Set path to the source code github repo being referred
SRC_URI = "git://git@github.com/cu-ecen-aeld/NAME_OF_SOURCE_REPO.git;protocol=ssh;branch=master"
# Set the version of the github
PV = "1.0+git${SRCPV}"
# Set to reference a specific commit hash in your assignment repo
SRCREV = "12354123u5091u5490148501984523456q345"
- Required configuration changes are as follows in bb file
# Set path to the source code github repo being referred
SRC_URI = "git://git@github.com/cu-ecen-aeld/NAME_OF_SOURCE_REPO.git;protocol=ssh;branch=master"
# Set the version of the github
PV = "1.0+git${SRCPV}"
# Set to reference a specific commit hash in your assignment repo
SRCREV = "${AUTOREV}"
- Sample example for usage:
# Set path to the source code github repo being referred
SRC_URI = "git://git@github.com/cu-ecen-aeld/final-project-Rishab-Shah.git;protocol=ssh;branch=master"
# Set the version of the github
PV = "1.0+git${SRCPV}"
# Set to reference a specific commit hash in your assignment repo
SRCREV = "${AUTOREV}"