From e2492d999757539560d3bb64aeac98c8a18e4c17 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 5 Nov 2025 15:48:49 -0500 Subject: [PATCH] Add Yocto recipe Signed-off-by: Hugo Villeneuve --- Makefile.am | 3 +++ yocto/mtlv_git.bb | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 yocto/mtlv_git.bb diff --git a/Makefile.am b/Makefile.am index 63bedb7..5c911a8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,9 @@ SUBDIRS = \ src \ doc +## We want these in the dist tarball +EXTRA_DIST = yocto + ACLOCAL_AMFLAGS = -I m4 LIBTOOL_MACROS = \ diff --git a/yocto/mtlv_git.bb b/yocto/mtlv_git.bb new file mode 100644 index 0000000..469b9a6 --- /dev/null +++ b/yocto/mtlv_git.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "TLV EEPROM read/write tool" +LICENSE = "GPL-2.0-or-later" +LIC_FILES_CHKSUM = "file://${COREBASE}/bitbake/doc/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe" + +DEPENDS = "zlib" + +PV = "0.0.1" + +SRCBRANCH = "master" +SRCREV = "${AUTOREV}" +SRC_URI = "git://git.hugovil.com/git/mtlv.git;protocol=http;branch=${SRCBRANCH}" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +do_configure:prepend() { + saved_dir=$(pwd) + cd ${S}; ./autogen.sh + cd ${saved_dir} +} -- 2.20.1