From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Martin Jansa <Martin.Jansa@gmail.com>
Subject: [meta-oe][PATCH 1/3] libtommath: add recipe for LibTomMath used by dropbear
Date: Tue, 18 Jul 2023 14:09:36 +0200 [thread overview]
Message-ID: <20230718120938.2048623-1-Martin.Jansa@gmail.com> (raw)
* 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>
---
.../libtommath/libtommath_1.2.0.bb | 26 +++++++++++++++++++
1 file changed, 26 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..05fe6d079b
--- /dev/null
+++ b/meta-oe/recipes-support/libtommath/libtommath_1.2.0.bb
@@ -0,0 +1,26 @@
+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"
+
+SRC_URI = "git://github.com/libtom/libtommath.git;protocol=https;branch=master"
+
+SRCREV = "6ca6898bf37f583c4cc9943441cd60dd69f4b8f2"
+
+S = "${WORKDIR}/git"
+
+# For libtomcrypt to use libtommath.a and avoid:
+# http://errors.yoctoproject.org/Errors/Details/720465/
+# ld: TOPDIR/tmp-glibc/work/core2-64-oe-linux/libtomcrypt/1.18.2-r0/recipe-sysroot/usr/lib/libtommath.a(bn_mp_cnt_lsb.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
+CFLAGS += "-fPIC"
+
+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
+}
--
2.41.0
next reply other threads:[~2023-07-18 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-18 12:09 Martin Jansa [this message]
2023-07-18 12:09 ` [meta-oe][PATCH 2/3] libtomcrypt: backport a fix for CVE-2019-17362 Martin Jansa
2023-07-18 12:09 ` [meta-oe][PATCH 3/3] libtomcrypt: add PACKAGECONFIG for ltm enabled by default Martin Jansa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230718120938.2048623-1-Martin.Jansa@gmail.com \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox