#Your git repo address, will be usedby ${SRC_URI} ${PN}_REPO = "github.com/codingspirit/example.git" #Set to ${AUTOREV} to automatically fetch the newest commit, you can set specific commit id as well SRCREV_${PN} = "${AUTOREV}"
#Files need to be installed into target need to declare in recipe FILES_${PN} += "/example/*"
#Set git source, name, protocol, branch, git clone destination. You can use "branch=branchname" to specify branch to require bitbake check after fetching #"nobranch=1" will skip branch check SRC_URI = " \ git://${${PN}_REPO};name=${PN};protocol=https;nobranch=1;destsuffix=git/${PN} \ " # Path of source code. We set it to "git/${PN}" in SRC_URI S = "${WORKDIR}/git/${PN}" # Build path, ${BPN} means "The bare name of the recipe" B = "${WORKDIR}/${BPN}"