mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

There is uncertainty about the default branch name in git going forward. To try and cover the different possible outcomes, add branch names to all git:// and gitsm:// SRC_URI entries. This update was made with the script added to contrib in this patch which aims to help others convert other layers. (From OE-Core rev: b51c405faf6f8c0365f7533bfaf470d79152a463) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
23 lines
636 B
BlitzBasic
23 lines
636 B
BlitzBasic
DESCRIPTION = "This is a simple example recipe that cross-compiles a Go program."
|
|
SECTION = "examples"
|
|
HOMEPAGE = "https://golang.org/"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
SRC_URI = "git://${GO_IMPORT};branch=master"
|
|
SRCREV = "46695d81d1fae905a270fb7db8a4d11a334562fe"
|
|
UPSTREAM_CHECK_COMMITS = "1"
|
|
|
|
GO_IMPORT = "github.com/golang/example"
|
|
GO_INSTALL = "${GO_IMPORT}/hello"
|
|
GO_WORKDIR = "${GO_INSTALL}"
|
|
export GO111MODULE="off"
|
|
|
|
inherit go
|
|
|
|
# This is just to make clear where this example is
|
|
do_install:append() {
|
|
mv ${D}${bindir}/hello ${D}${bindir}/${BPN}
|
|
}
|