blob: e61582afdfda729e626af9b06c9a897d11aa0d70 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001require gmp.inc
2
3LICENSE = "GPLv2+ | LGPLv3+"
4
5LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
6 file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \
7 file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8"
9
10REVISION = ""
11SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \
12 file://use-includedir.patch \
13 file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \
14 file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \
Andrew Geissler595f6302022-01-24 19:11:47 +000015 file://cve-2021-43618.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050016 "
Andrew Geissler6ce62a22020-11-30 19:58:47 -060017SRC_URI[md5sum] = "28971fc21cf028042d4897f02fd355ea"
18SRC_URI[sha256sum] = "eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c"
Andrew Geissler82c905d2020-04-13 13:39:40 -050019
20acpaths = ""
21
22EXTRA_OECONF += " --enable-cxx=detect"
Patrick Williams213cb262021-08-07 19:21:33 -050023EXTRA_OECONF:mipsarchr6:append = " --disable-assembly"
Andrew Geissler82c905d2020-04-13 13:39:40 -050024
25PACKAGES =+ "libgmpxx"
Patrick Williams213cb262021-08-07 19:21:33 -050026FILES:libgmpxx = "${libdir}/libgmpxx${SOLIBS}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050027
Patrick Williams213cb262021-08-07 19:21:33 -050028do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050029 oe_multilib_header gmp.h
30}
31
Patrick Williams213cb262021-08-07 19:21:33 -050032do_install:prepend:class-target() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050033 sed -i \
34 -e "s|--sysroot=${STAGING_DIR_HOST}||g" \
35 -e "s|${DEBUG_PREFIX_MAP}||g" \
36 ${B}/gmp.h
37}
38
39SSTATE_SCAN_FILES += "gmp.h"
40
41# Doesn't compile in MIPS16e mode due to use of hand-written
42# assembly
43MIPS_INSTRUCTION_SET = "mips"
44
45BBCLASSEXTEND = "native nativesdk"