diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2022-01-21 13:54:15 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2022-02-21 14:15:46 +0000 |
commit | 8f39fd60549b4c20be3c47b9cb7095d96f70c53b (patch) | |
tree | 698df046a9d9c4dd52c1c8509ca22eac5d3c935b | |
parent | 016b5abc837cc8ceaa939d1e881cb07a3185cbff (diff) | |
download | flashrom-8f39fd60549b4c20be3c47b9cb7095d96f70c53b.tar.gz flashrom-8f39fd60549b4c20be3c47b9cb7095d96f70c53b.tar.bz2 flashrom-8f39fd60549b4c20be3c47b9cb7095d96f70c53b.zip |
Makefile: enable internal programmer for x86 and all linux platforms
The internal programmer has platform independent code for x86 and linux
based code for mipsel. Furthermore the internal programmer can call the
linux mtd programmer when available.
Enable the internal programmer on x86 or linux.
Change-Id: Ia607ea60c3d7d15fe231fa412595992dadc535ad
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/61300
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r-- | Makefile | 32 |
1 files changed, 20 insertions, 12 deletions
@@ -99,7 +99,7 @@ DEPENDS_ON_SERIAL := \ CONFIG_SERPROG \ DEPENDS_ON_BITBANG_SPI := \ - CONFIG_INTERNAL \ + CONFIG_INTERNAL_X86 \ CONFIG_NICINTEL_SPI \ CONFIG_OGP_SPI \ CONFIG_PONY_SPI \ @@ -109,7 +109,7 @@ DEPENDS_ON_RAW_MEM_ACCESS := \ CONFIG_ATAPROMISE \ CONFIG_DRKAISER \ CONFIG_GFXNVIDIA \ - CONFIG_INTERNAL \ + CONFIG_INTERNAL_X86 \ CONFIG_IT8212 \ CONFIG_NICINTEL \ CONFIG_NICINTEL_EEPROM \ @@ -119,12 +119,12 @@ DEPENDS_ON_RAW_MEM_ACCESS := \ CONFIG_SATASII \ DEPENDS_ON_X86_MSR := \ - CONFIG_INTERNAL \ + CONFIG_INTERNAL_X86 \ DEPENDS_ON_X86_PORT_IO := \ CONFIG_ATAHPT \ CONFIG_ATAPROMISE \ - CONFIG_INTERNAL \ + CONFIG_INTERNAL_X86 \ CONFIG_NIC3COM \ CONFIG_NICNATSEMI \ CONFIG_NICREALTEK \ @@ -311,8 +311,8 @@ ifeq ($(TARGET_OS), Android) $(call mark_unsupported,$(DEPENDS_ON_X86_PORT_IO)) endif -# Disable the internal programmer on unsupported architectures (everything but x86 and mipsel) -ifneq ($(ARCH)-little, $(filter $(ARCH), x86 mips)-$(ENDIAN)) +# Disable the internal programmer on unsupported architectures or systems +ifeq ($(or $(filter $(ARCH), x86), $(filter $(TARGET_OS), Linux)), ) $(call mark_unsupported,CONFIG_INTERNAL) endif @@ -417,6 +417,7 @@ $(shell ./util/getrevision.sh -c 2>/dev/null && ./util/git-hooks/install.sh) # Always enable internal/onboard support for now. CONFIG_INTERNAL ?= yes +CONFIG_INTERNAL_X86 ?= yes # Always enable serprog for now. CONFIG_SERPROG ?= yes @@ -585,17 +586,24 @@ endif FEATURE_FLAGS += -D'CONFIG_DEFAULT_PROGRAMMER_ARGS="$(CONFIG_DEFAULT_PROGRAMMER_ARGS)"' +################################################################################ + +ifeq ($(ARCH), x86) +ifeq ($(CONFIG_INTERNAL) $(CONFIG_INTERNAL_X86), yes yes) +FEATURE_FLAGS += -D'CONFIG_INTERNAL=1' +PROGRAMMER_OBJS += processor_enable.o chipset_enable.o board_enable.o cbtable.o \ + internal.o it87spi.o it85spi.o sb600spi.o amd_imc.o wbsio_spi.o mcp6x_spi.o \ + ichspi.o dmi.o +endif +else ifeq ($(CONFIG_INTERNAL), yes) FEATURE_FLAGS += -D'CONFIG_INTERNAL=1' PROGRAMMER_OBJS += processor_enable.o chipset_enable.o board_enable.o cbtable.o internal.o -ifeq ($(ARCH), x86) -PROGRAMMER_OBJS += it87spi.o it85spi.o sb600spi.o amd_imc.o wbsio_spi.o mcp6x_spi.o -PROGRAMMER_OBJS += ichspi.o dmi.o -ifeq ($(CONFIG_INTERNAL_DMI), yes) -FEATURE_FLAGS += -D'CONFIG_INTERNAL_DMI=1' endif -else endif + +ifeq ($(CONFIG_INTERNAL_DMI), yes) +FEATURE_FLAGS += -D'CONFIG_INTERNAL_DMI=1' endif ifeq ($(CONFIG_SERPROG), yes) |