2014-02-26 11:31:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.8 2014/02/26 10:31:40 wiedi Exp $
|
2010-10-23 17:56:19 +02:00
|
|
|
#
|
|
|
|
|
Update flashrom to 0.9.7.
changes since 0.9.6:
==New major user-visible features==
* Warn if all blocks were skipped while writing.
* Fix evil twins of Macronix MX25L1605, MX25L3205, MX25L6405.
* Exit if there are unused programmer parameters.
=== Related to programmers ===
* internal:
** AMD Geode on OpenBSD
** Add safe support for the integrated micro controller (IMC) in AMD chipsets.
** Add full support for VX800/VX820, VX855/VX875 and VX900 (both SPI and LPC).
** Various new untested board enables (please don't run away without testing our work).
* serprog
** Add support for setting the SPI frequency.
** Add opcode to control the programmer's output drivers.
** Enable serprog on Windows.
* buspirate_spi
** Improvements to support different firmware versions safely.
** Support the new fast SPI mode present in Bus Pirate firmware v5.5 or newer.
** Add user interface to activate the Bus Pirate pull-up resistors.
* ftdi_spi
** Allow to select FTDI device by serial number.
** Add support for all 4 possible channels.
** Add support for FT232H.
* pony_spi: Add support for AJAWe.
* Add support for Realtek RTL8169.
* Add Altera USB-Blaster SPI programmer.
* dediprog:
** Add a "device" parameter to support multiple devices.
** Adds a programmer parameter 'spispeed'.
===New or refined chips===
* AMIC A25L(Q) series
* Atmel AT26DF041
* Atmel AT49(H)F010, AT49F080 and AT49F080T
* Atmel AT25F series (AT25F512, AT25F512A, AT25F512B, AT25F1024, AT25F1024A, AT25F2048, AT25F4096)
* Eon EN25F64
* Eon EN25S series
* More Eon EN25QH chips
* More GigaDevice GD25* devices
* Intel S33 series (QB25FxxxS33x8)
* Macronix MX25U1635E, MX25U3235E/F and MX25U6435E/F
* Micron (Numonyx) N25Q series
* Micron (ST) M45PE series
* Micron (ST) M25PX80
* Nantronics N25 series
* PMC Pm25LV and Pm25LD series
* Sanyo LE25FW series
* Spansion S25FL2 and S25FL...S series
* SST SST25WF512, SST25WF010, SST25WF020 and SST25WF040
* Winbond W39F010/W39L010/W39L020
changes since 0.9.5:
==User interface changes==
* The -p/--programmer parameter is now mandatory for all operations that access the programmer/chip.
*: Previously there was a default programmer selected at build time. This was convenient for most users, but created a danger for others that increased with the number of platforms and programmers supported, namely that they get used to a default programmer that later changes when they use another binary. It is very easy to brick a mainboard in case you do not notice you are writing its firmware instead of a device attached to an external programmer. The disadvantage is of course that many users have now to add '''-p internal''' to the command line when they want to do ''the obvious'' and flash their mainboards.
* It is now possible to let flashrom create log files directly (by using the new -o/--output option).
* flashrom now checks for duplicate -i/--image arguments (which are used together with layout files).
==New major user-visible features==
* Programmer support:
** new driver ''ponyprog'' for hardware similar to SI Prog
** native SPI AAI write support to the Dediprog SF100 driver
* Support for new chips:
** Atmel AT49F040
** Eon EN25QH32
** Eon EN29LV640B
** GigaDevice GD25QXX
** Numonyx N25Q064
** PMC Pm39LV512
==Infrastructural improvements and fixes==
* The dummy programmer got support for SFDP and now has a dedicated status register.
* Various minor refactorings of SPI-related code.
* The code generating the list of supported hardware for the wiki has been improved.
* Many exit() calls have been replaced by proper error handling.
* I/O permissions are now released automatically on shutdown.
* Preliminary work on Winbond W836xx and ITE IT8707F/IT8710F detection.
= Minor versions =
flashrom 0.9.6 had a small bug regarding the version string, which has been fixed in 0.9.6.1.
2013-12-09 19:54:24 +01:00
|
|
|
DISTNAME= flashrom-0.9.7
|
2010-10-23 17:56:19 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/-r/pre/}
|
|
|
|
CATEGORIES= sysutils
|
Update flashrom to 0.9.4.
==New major user-visible features==
* Support for new programmers:
** OpenMoko Neo1973/Neo FreeRunner debug board version 2 or 3, FTDI FT2232-based (r1231)
** Olimex ARM-USB-TINY, ARM-USB-TINY-H, ARM-USB-OCD, and ARM-USB-OCD-H, FTDI FT2232-based (r1331)
** Open Graphics Project development card, OGD1 (r1241)
** Angelbird Wings PCIe SSD/88SX7042 (r1258)
** ITE IT85xx embedded controllers (r1262)
** Intel NIC with parallel flash (r1297)
* Dozens of added flash chips, chipsets, mainboards.
* Improved user interface.
* Reliability fixes for buggy hardware, buggy third party software and corner case spec conformance.
* Improved Dediprog SF100 support.
* Update port of flashrom package to Mac OS X using DirectHW.
* Improved support for protection status printing and chip unlocking.
* Fix and improve libpayload platform support.
* Add support for more than one Super I/O or EC per machine.
* Always read the flash chip before writing, for improved error checking and faster programming.
* Enable write support on NVIDIA MCP6x/MCP7x.
* Added SPI flash emulation capability to the dummy programmer.
==Infrastructural improvements and fixes==
* Shutdown function registration
* Improved error messages
* Correctness fixes
* Various workarounds for broken hardware
* Code cleanups
2011-07-29 15:35:42 +02:00
|
|
|
MASTER_SITES= http://download.flashrom.org/releases/
|
2010-10-23 17:56:19 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= jakllsch@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.flashrom.org/
|
|
|
|
COMMENT= Universal (coreboot/LinuxBIOS) flash utility
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
|
|
|
USE_TOOLS+= gmake pkg-config
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
|
|
|
DEPENDS+= dmidecode-[0-9]*:../../sysutils/dmidecode
|
|
|
|
.endif
|
|
|
|
|
2014-02-26 11:31:40 +01:00
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
|
2010-10-23 17:56:19 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= pciutils
|
|
|
|
SUBST_FILES.pciutils= Makefile
|
|
|
|
SUBST_FILES.pciutils+= hwaccess.h
|
|
|
|
SUBST_MESSAGE.pciutils= adjusting pciutils headers
|
|
|
|
SUBST_STAGE.pciutils= pre-configure
|
|
|
|
SUBST_SED.pciutils+= -e 's,<pci/pci.h>,<pciutils/pci.h>,g'
|
|
|
|
|
|
|
|
LDFLAGS+= -lpci
|
|
|
|
CPPFLAGS+= -I/${PREFIX}/include
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2014-02-26 11:31:40 +01:00
|
|
|
LDFLAGS.SunOS+= -lsocket -lnsl
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
MAKE_ENV+= WARNERROR=0
|
|
|
|
.endif
|
|
|
|
|
2010-10-23 17:56:19 +02:00
|
|
|
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/flashrom ${DESTDIR}${PREFIX}/sbin/flashrom
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/flashrom.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/flashrom.8
|
|
|
|
|
|
|
|
.include "../../devel/libftdi/buildlink3.mk"
|
|
|
|
.include "../../sysutils/pciutils/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|