libc_files = string.o
$(foreach file, $(libc_files), \
- $(eval CFLAGS_$(file) = -I$(src)/../../common/libc))
+ $(eval CFLAGS_$(file) = -I$(src)/../../sbi/libc))
-platform-common-objs-$(PLATFORM_INCLUDE_LIBC) += $(addprefix libc/,$(libc_files))
+libsbi-objs-y += $(addprefix libc/,$(libc_files))
* bugs as well. Use any optimized routines from newlib or glibc if required.
*/
-#include <plat/string.h>
+#include <sbi/string.h>
int strcmp(const char *a, const char *b)
{
libsbi-objs-y += sbi_timer.o
libsbi-objs-y += sbi_tlb.o
libsbi-objs-y += sbi_trap.o
-
-# External Libraries to include
-PLATFORM_INCLUDE_LIBC=y
#include <sbi/riscv_locks.h>
#include <sbi/sbi_error.h>
#include <sbi/sbi_fifo.h>
-#include <plat/string.h>
+#include <sbi/string.h>
void sbi_fifo_init(struct sbi_fifo *fifo, void *queue_mem, u16 entries,
u16 entry_size)
#include <sbi/sbi_platform.h>
#include <sbi/sbi_timer.h>
#include <sbi/sbi_tlb.h>
-#include <plat/string.h>
+#include <sbi/string.h>
static unsigned long ipi_data_off;
#include <sbi/sbi_bitops.h>
#include <sbi/sbi_scratch.h>
#include <sbi/sbi_tlb.h>
-#include <plat/string.h>
+#include <sbi/string.h>
static unsigned long ipi_tlb_fifo_off;
static unsigned long ipi_tlb_fifo_mem_off;
#include <sbi/riscv_io.h>
#include <sbi/riscv_encoding.h>
#include <sbi/sbi_console.h>
-#include <plat/string.h>
+#include <sbi/string.h>
#include <plat/tinyfdt.h>
#include <plat/irqchip/plic.h>
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <plat/string.h>
+#include <sbi/string.h>
#include <sbi/sbi_types.h>
#define INT_MAX ((int)(~0U >> 1))
* Anup Patel <anup.patel@wdc.com>
*/
-#include <plat/string.h>
+#include <sbi/string.h>
#include <plat/tinyfdt.h>
#define FDT_MAGIC 0xd00dfeed