Skip to content

Commit

Permalink
Merge remote-tracking branch 'tlaurion-github/dasharo_flashrom_test' …
Browse files Browse the repository at this point in the history
…into O3-O2-to-Os_coreboot-4.19-fix-sh_argument_expected-yubikey-oem-factory-reset
  • Loading branch information
tlaurion committed Feb 19, 2023
2 parents 5605b76 + 6dba93f commit 95d1b45
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1,105 deletions.
21 changes: 13 additions & 8 deletions modules/flashrom
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
modules-$(CONFIG_FLASHROM) += flashrom

flashrom_depends := pciutils $(musl_dep)
flashrom_depends := pciutils libusb $(musl_dep)

flashrom_version := b1f858f65b2abd276542650d8cb9e382da258967
flashrom_version := 82f021ec1e5677aec4c98352cf52695d82a0fb41
flashrom_dir := flashrom-$(flashrom_version)
flashrom_tar := $(flashrom_dir).tar.gz
flashrom_url := https://github.com/flashrom/flashrom/archive/$(flashrom_version).tar.gz
flashrom_hash := 4873ad50f500629c244fc3fbee64b56403a82307d7f555dfa235336a200c336c
flashrom_url := https://github.com/Dasharo/flashrom/archive/$(flashrom_version).tar.gz
flashrom_hash := 027d77ffbcaed019197b90c5c0d8ba31c7d04fd5503eba1f3e88b907f67f0ab9

# Default options for flashrom
flashrom_cfg := \
WARNERROR=no \
CONFIG_NOTHING=yes \
CONFIG_INTERNAL=yes \
CONFIG_INTERNAL_X86=yes \
CONFIG_DUMMY=yes \
CONFIG_AST1100=yes \

ifeq "$(CONFIG_TARGET_ARCH)" "ppc64"
flashrom_cfg := \
WARNERROR=no \
CONFIG_NOTHING=yes \
CONFIG_LINUX_MTD=yes \
CONFIG_DUMMY=yes \
CONFIG_AST1100=yes
CONFIG_LINUX_MTD=yes
endif

flashrom_target := \
$(MAKE_JOBS) \
PREFIX="$(INSTALL)" \
INSTALL="$(INSTALL)" \
DESTDIR="$(INSTALL)" \
LIBS_BASE="$(INSTALL)" \
CFLAGS="-I$(INSTALL)/include/libusb-1.0 -I$(INSTALL)/include/pci" \
LDFLAGS="-L$(INSTALL)/lib" \
$(flashrom_cfg) \
$(CROSS_TOOLS) \
$(flashrom_cfg)

flashrom_output := \
flashrom
Expand Down
Loading

0 comments on commit 95d1b45

Please sign in to comment.