libtommath: add recipe for LibTomMath used by dropbear
I'm sorry for noise, but this one will need v3 to respect CXX as it's trying to use host's gcc and arm builds with older gcc fail with:
gcc: error: unrecognized command-line option '-mthumb'
gcc: error: unrecognized command-line option '-mfpu=neon'
gcc: error: unrecognized command-line option '-mfloat-abi=softfp'
gcc: error: unrecognized command-line option '-fcanon-prefix-map'; did you mean '-fmacro-prefix-map='?
Quoted 60 lines · Martin Jansa via lists.openembedded.org
* 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 <[email protected]>---
v2: drop explict -fPIC as v2 of libtomcrypt no longer uses static libtommath.a.../libtommath/libtommath_1.2.0.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-support/libtommath/libtommath_1.2.0.bbmeta-oe/recipes-support/libtommath/libtommath_1.2.0.bb new file +1
-0@@ -0,0 +1,21 @@ +SUMMARY = "LibTomMath is a number theoretic multiple-precision integerlibrary"
meta-oe/recipes-support/libtommath/libtommath_1.2.0.bb new file +6
-0+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"
meta-oe/recipes-support/libtommath/libtommath_1.2.0.bb new file +6
-0+ +SRCREV = "6ca6898bf37f583c4cc9943441cd60dd69f4b8f2" + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE = "'PREFIX=${prefix}' 'DESTDIR=${D}' 'LIBPATH=${libdir}''CFLAGS=${CFLAGS}'"
meta-oe/recipes-support/libtommath/libtommath_1.2.0.bb new file +8
-1+ +do_compile() { + oe_runmake -f makefile.shared +} + +do_install() { + oe_runmake -f makefile.shared install +} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group. View/Reply Online (#103944):
https://lists.openembedded.org/g/openembedded-devel/message/103944
Mute This Topic: https://lists.openembedded.org/mt/100214532/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-