Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-oe][PATCHv3 1/3] libtommath: add recipe for LibTomMath used by dropbear
@ 2023-07-18 23:38 Martin Jansa
  2023-07-18 23:38 ` [meta-oe][PATCHv3 2/3] libtomcrypt: backport a fix for CVE-2019-17362 Martin Jansa
  2023-07-18 23:38 ` [meta-oe][PATCHv3 3/3] libtomcrypt: add PACKAGECONFIG for ltm enabled by default Martin Jansa
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Jansa @ 2023-07-18 23:38 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Martin Jansa

* When system-libtom PACKAGECONFIG is used, both libtomcrypt and libtommath
  are used from system and we need a recipes for both.

* libtomcrypt was already added to meta-oe in langdale and PACKAGECONFIG
  was added in dropbear in:
  https://git.openembedded.org/openembedded-core/commit/?id=b7c2edd2d6ded287d8b34dd047ae84d3fd69d4c6

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
v3: add libtool-cross dependency to fix cross compilation (dunfell needs LIBTOOL
    to be set in EXTRA_OEMAKE because of ${HOST_SYS} prefix), but the dependency
    is needed for all releases when cross compiling

 .../libtommath/libtommath_1.2.0.bb            | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-oe/recipes-support/libtommath/libtommath_1.2.0.bb

diff --git a/meta-oe/recipes-support/libtommath/libtommath_1.2.0.bb b/meta-oe/recipes-support/libtommath/libtommath_1.2.0.bb
new file mode 100644
index 0000000000..1efccdd843
--- /dev/null
+++ b/meta-oe/recipes-support/libtommath/libtommath_1.2.0.bb
@@ -0,0 +1,23 @@
+SUMMARY = "LibTomMath is a number theoretic multiple-precision integer library"
+HOMEPAGE = "https://www.libtom.net/LibTomMath"
+SECTION = "libs"
+LICENSE = "Unlicense"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=23e7e0a32e53a2b1d35f5fd9ef053402"
+
+DEPENDS = "libtool-cross"
+
+SRC_URI = "git://github.com/libtom/libtommath.git;protocol=https;branch=master"
+
+SRCREV = "6ca6898bf37f583c4cc9943441cd60dd69f4b8f2"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "'PREFIX=${prefix}' 'DESTDIR=${D}' 'LIBPATH=${libdir}' 'CFLAGS=${CFLAGS}'"
+
+do_compile() {
+    oe_runmake -f makefile.shared
+}
+
+do_install() {
+    oe_runmake -f makefile.shared install
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-18 23:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-18 23:38 [meta-oe][PATCHv3 1/3] libtommath: add recipe for LibTomMath used by dropbear Martin Jansa
2023-07-18 23:38 ` [meta-oe][PATCHv3 2/3] libtomcrypt: backport a fix for CVE-2019-17362 Martin Jansa
2023-07-18 23:38 ` [meta-oe][PATCHv3 3/3] libtomcrypt: add PACKAGECONFIG for ltm enabled by default Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox