mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-22 22:32:23 +00:00
236f9b117c
More pending work needed to fix fragility of buildsystem and fix nix build issues as well like: https://app.circleci.com/pipelines/github/mmlb/osresearch-heads/11/workflows/32cc883c-5074-4f28-94b8-a83a2ec44414/jobs/252 https://app.circleci.com/pipelines/github/mmlb/osresearch-heads/11/workflows/32cc883c-5074-4f28-94b8-a83a2ec44414/jobs/221 https://app.circleci.com/pipelines/github/tlaurion/heads/1781/workflows/ee402ead-6739-4549-88ae-105b695fb3cd https://app.circleci.com/pipelines/github/tlaurion/heads/1783/workflows/2b35826c-aff4-4f48-8809-4e66259f9aa4/jobs/25877/parallel-runs/0/steps/0-103 Signed-off-by: Thierry Laurion <insurgo@riseup.net> Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev> Signed-off-by: Thierry Laurion <insurgo@riseup.net>
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
modules-$(CONFIG_FLASHROM) += flashrom
|
|
|
|
flashrom_depends := pciutils $(musl_dep)
|
|
|
|
flashrom_version := 1776bb46ba6ea3d1ab2ec3f0cd88158aabed7400
|
|
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 := 65e262ca4428a0ceddd73f481ed0d8444393b73a78469f266a4457dfc834ecb7
|
|
|
|
# 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) \
|
|
CFLAGS="-Os -I$(INSTALL)/include/pci" \
|
|
DESTDIR="$(INSTALL)" \
|
|
INSTALL="$(INSTALL)" \
|
|
LDFLAGS="-L$(INSTALL)/lib" \
|
|
LIBS_BASE="$(INSTALL)" \
|
|
PREFIX="$(INSTALL)" \
|
|
$(CROSS_TOOLS) \
|
|
$(flashrom_cfg) \
|
|
flashrom
|
|
|
|
flashrom_output := \
|
|
flashrom
|
|
|
|
flashrom_libraries := \
|
|
|
|
flashrom_configure :=
|