Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | DESCRIPTION = "flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips" |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 2 | LICENSE = "GPLv2+" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 3 | HOMEPAGE = "http://flashrom.org" |
| 4 | |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | SRC_URI = "https://download.flashrom.org/releases/flashrom-v${PV}.tar.bz2 \ |
| 7 | file://0001-typecast-enum-conversions-explicitly.patch \ |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 8 | file://meson-fixes.patch \ |
| 9 | file://0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch \ |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 10 | file://0001-hwaccess-use-__asm__-as-is-done-elsewhere.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 11 | " |
| 12 | SRC_URI[md5sum] = "7f8e4b87087eb12ecee0fcc5445b4956" |
| 13 | SRC_URI[sha256sum] = "e1f8d95881f5a4365dfe58776ce821dfcee0f138f75d0f44f8a3cd032d9ea42b" |
| 14 | |
| 15 | S = "${WORKDIR}/flashrom-v${PV}" |
| 16 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 17 | inherit meson pkgconfig |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 19 | PACKAGECONFIG ??= "pci usb ftdi" |
| 20 | PACKAGECONFIG[pci] = "-Dpciutils=true,-Dpciutils=false,pciutils" |
| 21 | PACKAGECONFIG[usb] = "-Dusb=true,-Dusb=false,libusb" |
| 22 | PACKAGECONFIG[ftdi] = "-Dftdi=true,-Dftdi=false,libftdi" |