mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Remove base and add picolibc to include search paths
This commit is contained in:
parent
19966edb61
commit
10927691c5
26 changed files with 49 additions and 47 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include <generated/csr.h>
|
||||
#include <i2c.h>
|
||||
#include <base/i2c.h>
|
||||
|
||||
#include "../command.h"
|
||||
#include "../helpers.h"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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__)
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <uart.h>
|
||||
#include <console.h>
|
||||
#include <base/uart.h>
|
||||
#include <base/console.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <crc.h>
|
||||
#include <base/crc.h>
|
||||
|
||||
#ifndef SMALL_CRC
|
||||
static const unsigned int crc16_table[256] = {
|
||||
|
|
|
@ -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] = {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <div64.h>
|
||||
#include <base/div64.h>
|
||||
|
||||
uint32_t __div64_32(uint64_t *n, uint32_t base)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "sim_debug.h"
|
||||
#include <base/sim_debug.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <generated/csr.h>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <irq.h>
|
||||
#include <uart.h>
|
||||
#include <base/uart.h>
|
||||
|
||||
#include <system.h>
|
||||
#include <generated/mem.h>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <generated/csr.h>
|
||||
#include <time.h>
|
||||
#include <base/time.h>
|
||||
|
||||
void time_init(void)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <progress.h>
|
||||
#include <base/progress.h>
|
||||
|
||||
#include "udp.h"
|
||||
#include "tftp.h"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue