Skip to content

Instantly share code, notes, and snippets.

@arifbalik
Last active March 20, 2024 11:57
Show Gist options
  • Save arifbalik/3440a36b40183d1e1256a3faae3f2c92 to your computer and use it in GitHub Desktop.
Save arifbalik/3440a36b40183d1e1256a3faae3f2c92 to your computer and use it in GitHub Desktop.
Nebula Yocto Recipe

Nebula Yocto Recipe

Tested on Yocto Mickledore

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=1adddd85956b2419aec1dfcec7139f0d"

SRC_URI = "git://github.com/slackhq/nebula.git;protocol=https;branch=master"
PV = "1.0.0+1.1+git${SRCPV}"
SRCREV = "1f1d6602001477450606e3727dd3788516105e3a"

S = "${WORKDIR}/git"
NEBULA_ARCH = "build/linux-arm-7/nebula"
GO_IMPORT = "${S}"
inherit go-mod

EXTRA_OEMAKE = "GOENV="""

do_configure () {
	:
}

do_compile () {
	oe_runmake -C ${S} ${NEBULA_ARCH}
}

do_install () {
	install -d ${D}${sbindir}
    install -m 0755 "${S}/${NEBULA_ARCH}" ${D}${sbindir}/nebula
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment