Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | require gmp.inc |
| 2 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-or-later | LGPL-3.0-or-later" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 4 | |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "\ |
| 6 | file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 7 | file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 8 | file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 9 | file://COPYINGv3;md5=11cc2d3ee574f9d6b7ee797bdce4d423 \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 10 | " |
| 11 | |
| 12 | REVISION = "" |
| 13 | SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \ |
| 14 | file://use-includedir.patch \ |
| 15 | file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \ |
| 16 | file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 17 | file://cve-2021-43618.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | " |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 19 | SRC_URI[md5sum] = "28971fc21cf028042d4897f02fd355ea" |
| 20 | SRC_URI[sha256sum] = "eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 21 | |
| 22 | acpaths = "" |
| 23 | |
| 24 | EXTRA_OECONF += " --enable-cxx=detect" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 25 | EXTRA_OECONF:append:mipsarchr6 = " --disable-assembly" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 26 | |
| 27 | PACKAGES =+ "libgmpxx" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | FILES:libgmpxx = "${libdir}/libgmpxx${SOLIBS}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 29 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | do_install:append() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 31 | oe_multilib_header gmp.h |
| 32 | } |
| 33 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | do_install:prepend:class-target() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 35 | sed -i \ |
| 36 | -e "s|--sysroot=${STAGING_DIR_HOST}||g" \ |
| 37 | -e "s|${DEBUG_PREFIX_MAP}||g" \ |
| 38 | ${B}/gmp.h |
| 39 | } |
| 40 | |
| 41 | SSTATE_SCAN_FILES += "gmp.h" |
| 42 | |
| 43 | # Doesn't compile in MIPS16e mode due to use of hand-written |
| 44 | # assembly |
| 45 | MIPS_INSTRUCTION_SET = "mips" |
| 46 | |
| 47 | BBCLASSEXTEND = "native nativesdk" |