mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 07:02:34 +02:00
remove compile guards
The build system handles the decision when to build a file. Extra compile guards for the source files are not necessary. Change-Id: I76a76e05c7a7dd27637325ab1e9d8946fd5f9076 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/57797 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
cce29a4855
commit
95f39b0098
@ -15,8 +15,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
#include "hwaccess.h"
|
||||
@ -151,5 +149,3 @@ int amd_imc_shutdown(struct pci_dev *dev)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
6
atahpt.c
6
atahpt.c
@ -14,8 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "flash.h"
|
||||
@ -97,7 +95,3 @@ const struct programmer_entry programmer_atahpt = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#else
|
||||
#error PCI port I/O access is not supported on this architecture yet.
|
||||
#endif
|
||||
|
@ -14,8 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
@ -170,7 +168,3 @@ const struct programmer_entry programmer_atapromise = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#else
|
||||
#error PCI port I/O access is not supported on this architecture yet.
|
||||
#endif
|
||||
|
@ -14,8 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if CONFIG_FT2232_SPI == 1
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
@ -599,4 +597,3 @@ const struct programmer_entry programmer_ft2232_spi = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
#endif
|
||||
|
4
ichspi.c
4
ichspi.c
@ -19,8 +19,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
@ -2113,5 +2111,3 @@ int via_init_spi(uint32_t mmio_base)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -20,8 +20,6 @@
|
||||
* Contains the ITE IT85* SPI specific routines
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -362,5 +360,3 @@ int it85xx_spi_init(struct superio s)
|
||||
/* Set this as SPI controller. */
|
||||
return register_spi_master(&spi_master_it85xx, data);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -19,8 +19,6 @@
|
||||
* Contains the ITE IT87* SPI specific routines
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
@ -464,5 +462,3 @@ int init_superio_ite(void)
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* defined(__i386__) || defined(__x86_64__) */
|
||||
|
@ -13,8 +13,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if CONFIG_LINUX_SPI == 1
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@ -256,5 +254,3 @@ const struct programmer_entry programmer_linux_spi = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#endif // CONFIG_LINUX_SPI == 1
|
||||
|
@ -19,8 +19,6 @@
|
||||
* created by Michael Karcher.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include "flash.h"
|
||||
@ -192,5 +190,3 @@ int mcp6x_spi_init(int want_spi)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -13,8 +13,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if CONFIG_MSTARDDC_SPI == 1
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@ -259,5 +257,3 @@ const struct programmer_entry programmer_mstarddc_spi = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -14,8 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
@ -173,7 +171,3 @@ const struct programmer_entry programmer_nic3com = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#else
|
||||
#error PCI port I/O access is not supported on this architecture yet.
|
||||
#endif
|
||||
|
@ -14,8 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
@ -110,7 +108,3 @@ const struct programmer_entry programmer_nicnatsemi = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#else
|
||||
#error PCI port I/O access is not supported on this architecture yet.
|
||||
#endif
|
||||
|
@ -14,8 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
@ -151,7 +149,3 @@ const struct programmer_entry programmer_nicrealtek = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#else
|
||||
#error PCI port I/O access is not supported on this architecture yet.
|
||||
#endif
|
||||
|
@ -22,7 +22,6 @@
|
||||
* most OS parport drivers will perform many unnecessary accesses although
|
||||
* this driver just treats the parallel port as a GPIO set.
|
||||
*/
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <strings.h>
|
||||
@ -334,7 +333,3 @@ const struct programmer_entry programmer_rayer_spi = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#else
|
||||
#error PCI port I/O access is not supported on this architecture yet.
|
||||
#endif
|
||||
|
5
satamv.c
5
satamv.c
@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
/* Datasheets are not public (yet?) */
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
@ -191,7 +190,3 @@ const struct programmer_entry programmer_satamv = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#else
|
||||
#error PCI port I/O access is not supported on this architecture yet.
|
||||
#endif
|
||||
|
@ -18,8 +18,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
@ -799,5 +797,3 @@ int sb600_probe_spi(struct pci_dev *dev)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -30,8 +30,6 @@
|
||||
* See also the USB-Blaster Download Cable User Guide: http://www.altera.com/literature/ug/ug_usb_blstr.pdf
|
||||
*/
|
||||
|
||||
#if CONFIG_USBBLASTER_SPI == 1
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@ -237,5 +235,3 @@ const struct programmer_entry programmer_usbblaster_spi = {
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -14,8 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "flash.h"
|
||||
@ -217,5 +215,3 @@ int wbsio_check_for_spi(void)
|
||||
|
||||
return register_spi_master(&spi_master_wbsio, data);
|
||||
}
|
||||
|
||||
#endif /* defined(__i386__) || defined(__x86_64__) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user