summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMartin Thomas <m.thomas@infodas.de>2023-02-08 10:44:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2023-02-09 00:18:40 +0100
commitda256dc8f810d9b4860ca198796ae61e44d5f5b1 (patch)
tree97c776b877a10411e1808fb8d83e99037f7480dd /package
parentc116ba7cc55dadd20cba82aca750b551fc7c9f46 (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')
-rw-r--r--package/flashrom/Makefile30
-rw-r--r--package/pciutils/Makefile3
2 files changed, 31 insertions, 2 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
diff --git a/package/pciutils/Makefile b/package/pciutils/Makefile
index 3720f55f8..58a44a037 100644
--- a/package/pciutils/Makefile
+++ b/package/pciutils/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= pciutils
PKG_VERSION:= 3.5.1
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_HASH:= 2bf3a4605a562fb6b8b7673bff85a474a5cf383ed7e4bd8886b4f0939013d42f
PKG_DESCR:= pci utilities
PKG_SECTION:= sys/hw
@@ -13,7 +13,6 @@ PKG_DEPENDS:= zlib
PKG_BUILDDEP:= zlib
PKG_URL:= http://www.kernel.org/pub/software/utils/pciutils/
PKG_SITES:= http://www.kernel.org/pub/software/utils/pciutils/
-PKG_BB:= 1
include $(ADK_TOPDIR)/mk/package.mk