Commit 70e6c863 authored by Tristan Gingold's avatar Tristan Gingold

Makefile: remove automatic include of wrc.h

Adjust files.
parent cc88f249
......@@ -142,8 +142,7 @@ obj-$(CONFIG_ARCH_RISCV) += check-error.o
obj-y += system_checks.o
CFLAGS = $(cflags-y) -Wall -Werror -Wstrict-prototypes \
-ffunction-sections -fdata-sections -Os \
-include include/wrc.h -ggdb
-ffunction-sections -fdata-sections -Os -ggdb
ldflags-$(CONFIG_LTO) += -flto
......
#include "board.h"
#include "wrc-debug.h"
#include "dev/bb_spi.h"
#include "dev/bb_i2c.h"
#include "dev/w1.h"
......
......@@ -18,6 +18,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "wrc-debug.h"
#include "dev/ad9520.h"
#include "dev/bb_i2c.h"
......
......@@ -7,13 +7,14 @@
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <errno.h>
#include "types.h"
#include "board.h"
#include "dev/syscon.h"
#include "dev/bb_i2c.h"
#include "dev/gpio.h"
#include <errno.h>
#include "pp-printf.h"
void bb_i2c_delay(uint32_t delay)
{
......
......@@ -21,6 +21,7 @@
#include <stdint.h>
#include "board.h"
#include "pp-printf.h"
#include "dev/gpio.h"
#include "dev/bb_spi.h"
......@@ -193,4 +194,4 @@ void bb_spi_test(struct spi_bus *bus)
gen_gpio_out( bus->pin_mosi, 1 );
gen_gpio_out( bus->pin_mosi, 0 );
}
}
\ No newline at end of file
}
......@@ -21,6 +21,7 @@
/* fine_pulse-gen - driver for DDS Sync Unit (fine pulse generator) */
#include "board.h"
#include "dev/syscon.h"
#include "hw/wb_fine_pulse_gen.h"
#include "dev/fine_pulse_generator.h"
......
......@@ -20,17 +20,15 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "board.h"
#include "dev/iuart.h"
// bare-metal version with real HW iuart
#ifdef IUART_PLATFORM_BARE_METAL
#include "board.h"
#include <hw/wb_insn_uart.h>
#include <hw/wb_uart.h>
......
......@@ -10,6 +10,8 @@
/* To avoid many #ifdef and associated mess, all headers are included there */
#include "libsdbfs.h"
#include "dev/bb_i2c.h"
#include "dev/i2c_eeprom.h"
#include "storage.h"
/*
......
......@@ -9,11 +9,12 @@
*/
/* SFP Detection / managenent functions */
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <errno.h>
#include "wrc-task.h"
#include "pp-printf.h"
#include "dev/syscon.h"
#include "dev/bb_i2c.h"
#include "dev/gpio.h"
......
......@@ -9,6 +9,7 @@
#include <stdint.h>
#include "wrc.h"
#include "board.h"
#include "dev/simple_uart.h"
......
......@@ -8,6 +8,7 @@
*/
#include <types.h>
#include "wrc-debug.h"
#include "dev/bb_spi.h"
#include "dev/spi_flash.h"
......
......@@ -7,11 +7,11 @@
* Released according to the GNU GPL, version 2 or any later version.
*/
#include "dev/syscon.h"
#include <errno.h>
#include <string.h>
#include "dev/syscon.h"
#include "pp-printf.h"
#include "dev/gpio.h"
#include "dev/bb_i2c.h"
......
......@@ -7,14 +7,14 @@
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <errno.h>
#include <string.h>
#include "board.h"
#include "dev/wdiags.h"
#include "wrc-debug.h"
#include <hw/wrc_diags_regs.h>
#include <errno.h>
#include <string.h>
#define WDIAGS_VERSION 2
......
......@@ -5,6 +5,7 @@
#include <wrc_global.h>
#include <sensors.h>
#include <wrc.h>
#include <wrpc.h>
#include "dump-info.h"
......
......@@ -9,6 +9,7 @@
#include <stdint.h>
#include "board.h"
#include "event.h"
// fixme: make configurable through BSPs/KConfig
......
......@@ -8,6 +8,9 @@
*/
#include <wrpc.h>
#include "board.h"
#include "wrc-debug.h"
#include "wrc-event.h"
#include "event.h"
static int prev_ptp_mode;
......
......@@ -14,6 +14,7 @@
#include <string.h>
#include "wrc.h"
#include "revision.h"
#include "ptpd_netif.h"
#include "lldp.h"
......
......@@ -8,13 +8,13 @@
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include "hal_exports.h"
#include <wrpc.h>
#include "wrc.h"
#include "ptpd_netif.h"
#include "board.h"
......
......@@ -6,6 +6,7 @@
#include <string.h>
#include <errno.h>
#include "pp-printf.h"
#include "shell.h"
#include "dev/syscon.h"
#include "storage.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment