diff options
author | Martin Thomas <m.thomas@infodas.de> | 2023-02-08 10:44:49 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2023-02-09 00:18:40 +0100 |
commit | da256dc8f810d9b4860ca198796ae61e44d5f5b1 (patch) | |
tree | 97c776b877a10411e1808fb8d83e99037f7480dd /package/flashrom | |
parent | c116ba7cc55dadd20cba82aca750b551fc7c9f46 (diff) |
adds flashrom package
Flashrom can be used e.g. to carry out a bios update.
More Infomation at https://www.flashrom.org/Flashrom
Signed-off-by: Martin Thomas <m.thomas@infodas.de>
Diffstat (limited to 'package/flashrom')
-rw-r--r-- | package/flashrom/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/flashrom/Makefile b/package/flashrom/Makefile new file mode 100644 index 000000000..fc56a3828 --- /dev/null +++ b/package/flashrom/Makefile @@ -0,0 +1,30 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${ADK_TOPDIR}/rules.mk + +PKG_NAME:= flashrom +PKG_VERSION:= v1.2 +PKG_RELEASE:= 1 +PKG_HASH:= e1f8d95881f5a4365dfe58776ce821dfcee0f138f75d0f44f8a3cd032d9ea42b +PKG_DESCR:= utility for identifying, reading, writing, verifying and erasing flash chips. +PKG_SECTION:= sys/hw +PKG_DEPENDS:= pciutils libusb zlib +PKG_BUILDDEP:= pciutils libusb zlib +PKG_URL:= https://www.flashrom.org/Flashrom +PKG_SITES:= https://download.flashrom.org/releases/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,FLASHROM,flashrom,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIG_STYLE:= manual +TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libusb-1.0 + +flashrom-install: + ${INSTALL_DIR} ${IDIR_FLASHROM}/usr/sbin + ${INSTALL_BIN} ${WRKINST}/usr/local/sbin/flashrom ${IDIR_FLASHROM}/usr/sbin/ + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk |