Remove base and add picolibc to include search paths

This commit is contained in:
Michal Sieron 2021-07-29 14:43:08 +02:00
parent 19966edb61
commit 10927691c5
26 changed files with 49 additions and 47 deletions

View file

@ -10,10 +10,10 @@
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <console.h>
#include <uart.h>
#include <base/console.h>
#include <base/uart.h>
#include <system.h>
#include <crc.h>
#include <base/crc.h>
#include <string.h>
#include <irq.h>
@ -23,9 +23,9 @@
#include "sfl.h"
#include "boot.h"
#include "jsmn.h"
#include <base/jsmn.h>
#include <progress.h>
#include <base/progress.h>
#include <libliteeth/udp.h>
#include <libliteeth/tftp.h>

View file

@ -2,10 +2,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <id.h>
#include <crc.h>
#include <base/id.h>
#include <base/crc.h>
#include <system.h>
#include <sim_debug.h>
#include <base/sim_debug.h>
#include <generated/csr.h>

View file

@ -5,7 +5,7 @@
#include <stdbool.h>
#include <generated/csr.h>
#include <i2c.h>
#include <base/i2c.h>
#include "../command.h"
#include "../helpers.h"

View file

@ -4,11 +4,11 @@
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <memtest.h>
#include <base/memtest.h>
#include <generated/csr.h>
#include <generated/mem.h>
#include <i2c.h>
#include <base/i2c.h>
#include <liblitedram/sdram.h>
#include <liblitedram/bist.h>

View file

@ -2,7 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <memtest.h>
#include <base/memtest.h>
#include <generated/csr.h>
#include <generated/mem.h>

View file

@ -3,8 +3,8 @@
// SPDX-License-Identifier: BSD-Source-Code
#include <stdio.h>
#include <console.h>
#include <crc.h>
#include <base/console.h>
#include <base/crc.h>
#include <string.h>
#include "readline.h"

View file

@ -7,7 +7,7 @@
#include <generated/csr.h>
#include <generated/soc.h>
#include <irq.h>
#include <uart.h>
#include <base/uart.h>
#include <stdio.h>
#if defined(__microwatt__)

View file

@ -17,13 +17,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <console.h>
#include <base/console.h>
#include <string.h>
#include <uart.h>
#include <base/uart.h>
#include <system.h>
#include <id.h>
#include <base/id.h>
#include <irq.h>
#include <crc.h>
#include <base/crc.h>
#include "boot.h"
#include "readline.h"
@ -35,7 +35,7 @@
#include <generated/mem.h>
#include <generated/git.h>
#include <spiflash.h>
#include <base/spiflash.h>
#include <liblitedram/sdram.h>

View file

@ -13,8 +13,8 @@
#include <string.h>
#include <ctype.h>
#include <console.h>
#include <uart.h>
#include <base/console.h>
#include <base/uart.h>
#include "readline.h"
#include "complete.h"

View file

@ -45,12 +45,14 @@ DEPFLAGS += -MD -MP
# Toolchain options
#
INCLUDES = -I$(SOC_DIRECTORY)/software/include/base \
INCLUDES = -I$(PICOLIBC_DIRECTORY)/newlib/libc/tinystdio \
-I$(PICOLIBC_DIRECTORY)/newlib/libc/include \
-I$(SOC_DIRECTORY)/software/include \
-I$(SOC_DIRECTORY)/software \
-I$(BUILDINC_DIRECTORY) \
-I$(BUILDINC_DIRECTORY)/../libc \
-I$(CPU_DIRECTORY)
COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdinc -fno-stack-protector $(INCLUDES)
COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -fno-stack-protector $(INCLUDES)
CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
CXXFLAGS = $(COMMONFLAGS) -std=c++11 -I$(SOC_DIRECTORY)/software/include/basec++ -fexceptions -fno-rtti -ffreestanding
LDFLAGS = -nostdlib -nodefaultlibs -Wl,--no-dynamic-linker -Wl,--build-id=none -L$(BUILDINC_DIRECTORY)

View file

@ -1,5 +1,5 @@
#include <uart.h>
#include <console.h>
#include <base/uart.h>
#include <base/console.h>
#include <stdio.h>
#include <stdarg.h>

View file

@ -1,4 +1,4 @@
#include <crc.h>
#include <base/crc.h>
#ifndef SMALL_CRC
static const unsigned int crc16_table[256] = {

View file

@ -3,7 +3,7 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include <crc.h>
#include <base/crc.h>
#ifndef SMALL_CRC
static const unsigned int crc_table[256] = {

View file

@ -18,7 +18,7 @@
#include <stdint.h>
#include <div64.h>
#include <base/div64.h>
uint32_t __div64_32(uint64_t *n, uint32_t base)
{

View file

@ -1,5 +1,5 @@
// This file is Copyright (c) 2020 Antmicro <www.antmicro.com>
#include <i2c.h>
#include <base/i2c.h>
#include <generated/csr.h>
#ifdef CSR_I2C_BASE

View file

@ -2,7 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <id.h>
#include <base/id.h>
#define DFII_ADDR_SHIFT CONFIG_CSR_ALIGNMENT/8

View file

@ -1,7 +1,7 @@
#include "memtest.h"
#include <base/memtest.h>
#include <stdio.h>
#include <lfsr.h>
#include <base/lfsr.h>
#include <system.h>
#include <generated/soc.h>

View file

@ -17,12 +17,12 @@
*
*/
#include <console.h>
#include <base/console.h>
#include <stdio.h>
#include <stdint.h>
#include <div64.h>
#include <progress.h>
#include <base/div64.h>
#include <base/progress.h>
#define FILESIZE_MAX 100000000
#define HASHES_PER_LINE 40

View file

@ -1,4 +1,4 @@
#include "sim_debug.h"
#include <base/sim_debug.h>
#include <stdio.h>
#include <generated/csr.h>

View file

@ -2,7 +2,7 @@
#if (defined CSR_SPIFLASH_BASE && defined SPIFLASH_PAGE_SIZE)
#include <spiflash.h>
#include <base/spiflash.h>
#define PAGE_PROGRAM_CMD 0x02
#define WRDI_CMD 0x04

View file

@ -1,5 +1,5 @@
#include <irq.h>
#include <uart.h>
#include <base/uart.h>
#include <system.h>
#include <generated/mem.h>

View file

@ -1,5 +1,5 @@
#include <generated/csr.h>
#include <time.h>
#include <base/time.h>
void time_init(void)
{

View file

@ -1,4 +1,4 @@
#include <uart.h>
#include <base/uart.h>
#include <irq.h>
#include <generated/csr.h>
@ -154,4 +154,4 @@ void uart_sync(void)
#endif
#endif
#endif

View file

@ -14,8 +14,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <memtest.h>
#include <lfsr.h>
#include <base/memtest.h>
#include <base/lfsr.h>
#ifdef CSR_SDRAM_BASE
#include <generated/sdram_phy.h>

View file

@ -10,7 +10,7 @@
#include <stdint.h>
#include <string.h>
#include <progress.h>
#include <base/progress.h>
#include "udp.h"
#include "tftp.h"

View file

@ -4,8 +4,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <crc.h>
#include <memtest.h>
#include <base/memtest.h>
#include <base/crc.h>
#include <generated/csr.h>
#include <generated/mem.h>