Commit Graph

26 Commits

Author SHA1 Message Date
Federico Capoano 9f54d98747 flashrom: strip leading whitespace from PROGRAMMER_ARGS
Newer version of meson do not allow empty arguments.

Signed-off-by: Federico Capoano <f.capoano@openwisp.io>
2024-05-04 19:07:15 +08:00
Brian Norris bc514e9689 flashrom: Update to 1.3.0, package libflashrom
Notably, the meson args for programmers changed from a series of
individual 'config_$foo>, config_$bar' to a list of
'programmer=$foo,$bar'

The patches were all either already merged upstream (or similar ones, at
least), or aren't useful (bitbang_spi is no longer a separated
programmer; it's included in the defaults).

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2023-08-06 21:05:18 -07:00
Rosen Penev c58d94f4c4 flashrom: update to 1.2.1
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-14 23:47:17 -08:00
Rosen Penev df5d7245b9 treewide: remove PKG_INSTALL for meson projects
It doesn't seem to be used by meson.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-06-15 18:07:46 -07:00
Rosen Penev 5ccd4d1c25 treewide: compile with tools/meson
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-17 22:06:52 -07:00
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Rosen Penev 81618c5465
flashrom: switch to building with meson
Added patches to fix meson compilation.

Reworked flashrom.mk to work with meson.

Several minor Makefile cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-19 14:43:13 -07:00
Eneas U de Queiroz d828726d71
flashrom: add BUILD_VARIANT to PKG_BUILD_DIR
Different variants will not be built right if they all share the same
build directory.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-05-08 13:25:17 -03:00
Stijn Tintel f033cd1aed flashrom: bump to 1.2
Add new PCI and USB drivers to flashrom.mk to disable them in other
build variant.s
Fix DefineConfig calls to use new config symbols, and have it only
append NEED_FEATURE=yes to MAKE_FLAGS. Appending NEED_FEATURE=no would
still enable the feature because upstream compares against an empty
string instead of comparing to yes.
Drop libusb-compat dependency as all drivers use libusb-1 now.
Remove upstreamed patch 010-add-arc.patch.
Rework 0001-fix_internal_bitbang.patch, give it a correct prefix and
more descriptive name.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2020-04-16 23:43:08 +03:00
Jeffery To 53e1692ae9 treewide: Use default PKG_BUILD_DIR when possible
This removes lines that set PKG_BUILD_DIR when the set value is no
different from the default value.

Specifically, the line is removed if the assigned value is:

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

  The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT
  if it is set, so now this is identical to the default value.

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)

  if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it
  the same as the previous case

* $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

  This is the same as the default PKG_BUILD_DIR when there is no
  BUILD_VARIANT.

* $(BUILD_DIR)/[name]-$(PKG_VERSION)

  where [name] is a string that is identical to PKG_NAME

[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-13 02:01:34 +08:00
Rosen Penev 12378cd4d3
flashrom: Add ARC support
Mainly endian definitions are needed.

Removed sys/io.h patch. It's a GNU header unsupported by uClibc-ng.

Cleaned up Makefile slightly.

Added HTTPS everywhere.

Added PKG_BUILD_PARALLEL for faster compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-01 10:39:54 -07:00
Jo-Philipp Wich cb6e98ba44 flashrom: update to v1.0
Update to flashrom version 1.0 and cherry-pick an upstream fix for deprecated
libusb api usage.

Fixes the following error spotted by the buildbots:

    ch341a_spi.c: In function 'ch341a_spi_init':
    ch341a_spi.c:447:2: error: 'libusb_set_debug' is deprecated: [...]
      libusb_set_debug(NULL, 3); // Enable information, warning and [...]
      ^~~~~~~~~~~~~~~~
    In file included from ch341a_spi.c:25:0:
    .../libusb-1.0/libusb.h:1300:18: note: declared here
     void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
                      ^~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    Makefile:1030: recipe for target 'ch341a_spi.o' failed

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-15 07:39:20 +02:00
Álvaro Fernández Rojas 54bb27c183 flashrom: update to v0.9.9.1
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2017-12-31 18:50:19 +01:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Álvaro Fernández Rojas 375f34d362 flashrom: fix full and pci variants
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-03-28 09:17:44 +02:00
Álvaro Fernández Rojas 1348057082 flashrom: update to v0.9.9
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-03-14 19:04:30 +01:00
notnyt d01dfdebcf flashrom: include io.h to fix compile error
This patch includes sys/io.h from flash.h to fix compile errors

Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net>
2016-01-17 15:59:16 -05:00
Álvaro Fernández Rojas d36eb1d57e flashrom: make flashrom-full the default variant, remove empty dependencies
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2015-10-08 11:17:43 +02:00
Álvaro Fernández Rojas 3deb63fafb flashrom: switch to build variants instead of config options
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2015-10-04 16:20:41 +02:00
Dirk Neukirchen f8e6574e64 flashrom: fix gcc5 build
default C dialect changed with gcc5
explicitly use old C dialect

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-19 11:12:24 +02:00
Álvaro Fernández Rojas fc959cf5b8 flashrom: fix build with musl
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2015-06-17 21:34:08 +02:00
Álvaro Fernández Rojas 3879265ffd flashrom: add config options
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2015-03-09 03:39:57 +01:00
Álvaro Fernández Rojas 16fe278cf5 flashrom: update to v0.9.8
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2015-03-08 19:58:39 +01:00
Álvaro Fernández Rojas 5535903c09 flashrom: Add License, bump package release.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2014-06-13 16:50:58 +02:00
Álvaro Fernández Rojas 0bc41a09ae flashrom: fix build on Little Endian MIPS and add license.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2014-06-13 16:49:44 +02:00
Álvaro Fernández Rojas 70a369d813 flashrom: Import 0.97 from packages. 2014-06-10 21:04:52 +02:00