debian swirl logo

Back to the packages list flashrom

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/makefile.mk

DEB_MAKE_INSTALL_TARGET := install PREFIX=$(CURDIR)/debian/flashrom/usr

# Reduce the number of unneeded dependencies with --as-needed.
LDFLAGS += "-Wl,--as-needed"

post-patches::
		@# Copy udev rules file into debian/ so that dh_installudev finds it.
		cp util/z60_flashrom.rules debian/flashrom.udev

clean::
		rm -f .dependencies .features .libdeps
		rm -f debian/flashrom.udev

common-binary-post-install-arch:: list-missing

Builds:

flashrom
identify, read, write, erase, and verify bios/rom/flash chips