xref: /openbmc/openbmc/meta-openembedded/meta-oe/recipes-bsp/flashrom/flashrom_1.2.1.bb (revision 517393d903089f921915530ffa689a7a1d113420)
1*517393d9SAndrew GeisslerDESCRIPTION = "flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips"
2*517393d9SAndrew GeisslerLICENSE = "GPL-2.0-or-later"
3*517393d9SAndrew GeisslerHOMEPAGE = "http://flashrom.org"
4*517393d9SAndrew Geissler
5*517393d9SAndrew GeisslerLIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
6*517393d9SAndrew GeisslerSRC_URI = "https://download.flashrom.org/releases/flashrom-v${PV}.tar.bz2 \
7*517393d9SAndrew Geissler           file://meson-fixes.patch \
8*517393d9SAndrew Geissler           file://0001-flashrom-Mark-RISCV-as-non-memory-mapped-I-O-archite.patch \
9*517393d9SAndrew Geissler           file://0001-hwaccess-use-__asm__-as-is-done-elsewhere.patch \
10*517393d9SAndrew Geissler           "
11*517393d9SAndrew GeisslerSRC_URI[sha256sum] = "89a7ff5beb08c89b8795bbd253a51b9453547a864c31793302296b56bbc56d65"
12*517393d9SAndrew Geissler
13*517393d9SAndrew GeisslerS = "${WORKDIR}/flashrom-v${PV}"
14*517393d9SAndrew Geissler
15*517393d9SAndrew Geisslerinherit meson pkgconfig
16*517393d9SAndrew Geissler
17*517393d9SAndrew GeisslerPACKAGECONFIG ??= "pci usb ftdi"
18*517393d9SAndrew GeisslerPACKAGECONFIG[pci] = "-Dpciutils=true,-Dpciutils=false,pciutils"
19*517393d9SAndrew GeisslerPACKAGECONFIG[usb] = "-Dusb=true,-Dusb=false,libusb"
20*517393d9SAndrew GeisslerPACKAGECONFIG[ftdi] = "-Dftdi=true,-Dftdi=false,libftdi"
21