New issue
Advanced search Search tips

Issue 807410 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

flashrom: cannot compile without CONFIG_INTERNAL

Project Member Reported by dnschn...@chromium.org, Jan 30 2018

Issue description

I'm trying to compile flashrom with a minimum number of drivers.

Disabling CONFIG_INTERNAL fails to compile because flashrom.c unconditionally looks at ich_generation:


cc -MMD -Os -Wall -Wshadow -Werror -I/usr/include/libusb-1.0  -D'USE_BIG_LOCK=1' -D'USE_CROS_EC_LOCK=1' -D'CONFIG_FT2232_SPI=1' -D'HAVE_FT232H=1'  -D'CONFIG_BUSPIRATE_SPI=1' -D'CONFIG_RAIDEN_DEBUG_SPI=1' -D'CONFIG_DEDIPROG=1' -D'CONFIG_LINUX_SPI=1' -D'NEED_LIBUSB1=1' -D'CONFIG_USE_OS_TIMER=0' -D'HAVE_UTSNAME=1' -D'FLASHROM_VERSION="0.9.9  :  : "' -o flashrom.o -c flashrom.c
flashrom.c: In function 'probe_flash':
flashrom.c:1077:10: error: 'ich_generation' undeclared (first use in this function)
  switch (ich_generation) {
          ^
flashrom.c:1077:10: note: each undeclared identifier is reported only once for each function it appears in
Makefile:870: recipe for target 'flashrom.o' failed
 

Sign in to add a comment