mirror of
https://github.com/Dasharo/heads.git
synced 2026-03-06 14:48:18 -08:00
83acbf0640
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
44 lines
955 B
Makefile
44 lines
955 B
Makefile
modules-$(CONFIG_FLASHROM) += flashrom
|
|
|
|
flashrom_depends := pciutils $(musl_dep)
|
|
|
|
flashrom_version := 24b8fcfccef31fbb95bc1dd308180f57d5cdb64c
|
|
flashrom_dir := flashrom-$(flashrom_version)
|
|
flashrom_tar := $(flashrom_dir).tar.gz
|
|
flashrom_url := https://github.com/Dasharo/flashrom/archive/$(flashrom_version).tar.gz
|
|
flashrom_hash := caf756af8177bb3eedff33071a089b8db0b1da82adb0260a90217e06fcf9844b
|
|
|
|
# Default options for flashrom
|
|
flashrom_cfg := \
|
|
WARNERROR=no \
|
|
CONFIG_NOTHING=yes \
|
|
CONFIG_INTERNAL=yes \
|
|
CONFIG_INTERNAL_X86=yes \
|
|
|
|
ifeq "$(CONFIG_TARGET_ARCH)" "ppc64"
|
|
flashrom_cfg := \
|
|
WARNERROR=no \
|
|
CONFIG_NOTHING=yes \
|
|
CONFIG_LINUX_MTD=yes
|
|
endif
|
|
|
|
#Only enable AST1100 if requested per board configs
|
|
ifeq "$(CONFIG_FLASHROM_AST1100)" "y"
|
|
flashrom_cfg += CONFIG_AST1100=yes
|
|
endif
|
|
|
|
|
|
|
|
flashrom_target := \
|
|
$(MAKE_JOBS) \
|
|
$(CROSS_TOOLS) \
|
|
$(flashrom_cfg) \
|
|
flashrom
|
|
|
|
flashrom_output := \
|
|
flashrom
|
|
|
|
flashrom_libraries := \
|
|
|
|
flashrom_configure :=
|