mirror of
https://review.coreboot.org/flashrom.git
synced 2025-06-30 21:52:36 +02:00
Internal (onboard) programming was the only feature which could not be disabled
Make various pieces of code conditional on support for internal programming. Code shared between PCI device programmers and onboard programming is now conditional as well. It is now possible to build only with dummy support: make CONFIG_INTERNAL=no CONFIG_NIC3COM=no CONFIG_SATASII=no CONFIG_DRKAISER=no CONFIG_SERPROG=no CONFIG_FT2232SPI=no This allows building for a specific use case only, and it also facilitates porting to a new architecture because it is possible to focus on highlevel code only. Note: Either internal or dummy programmer needs to be compiled in due to the current behaviour of always picking a default programmer if -p is not specified. Picking an arbitrary external programmer as default wouldn't make sense. Build and runtime tested in all 1024 possible build combinations. The only failures are by design as mentioned above. Corresponding to flashrom svn r797. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com>
This commit is contained in:
6
print.c
6
print.c
@ -144,6 +144,7 @@ void print_supported_chips(void)
|
||||
}
|
||||
}
|
||||
|
||||
#if INTERNAL_SUPPORT == 1
|
||||
void print_supported_chipsets(void)
|
||||
{
|
||||
int i, j, chipsetcount = 0;
|
||||
@ -221,12 +222,15 @@ void print_supported_boards(void)
|
||||
print_supported_boards_helper(laptops_bad,
|
||||
"Laptops which have been verified to NOT work yet");
|
||||
}
|
||||
#endif
|
||||
|
||||
void print_supported(void)
|
||||
{
|
||||
print_supported_chips();
|
||||
#if INTERNAL_SUPPORT == 1
|
||||
print_supported_chipsets();
|
||||
print_supported_boards();
|
||||
#endif
|
||||
printf("\nSupported PCI devices flashrom can use "
|
||||
"as programmer:\n\n");
|
||||
#if NIC3COM_SUPPORT == 1
|
||||
@ -244,6 +248,7 @@ void print_supported(void)
|
||||
}
|
||||
|
||||
|
||||
#if INTERNAL_SUPPORT == 1
|
||||
/* Please keep this list alphabetically ordered by vendor/board. */
|
||||
const struct board_info boards_ok[] = {
|
||||
/* Verified working boards that don't need write-enables. */
|
||||
@ -394,4 +399,5 @@ const struct board_info laptops_bad[] = {
|
||||
|
||||
{},
|
||||
};
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user