add dummy pmsis header and xpulpnn march flag to pulp_cluster target

This commit is contained in:
Georg Rutishauser 2024-06-11 15:10:50 +02:00
parent f6ff1d54b5
commit 2a505d42ae
2 changed files with 12 additions and 3 deletions

9
include/pmsis.h Normal file
View file

@ -0,0 +1,9 @@
#ifndef __FAKE_PMSIS_H__
#define __FAKE_PMSIS_H__
// simply include the runtime equivalent of pmsis.h: pulp.h
#include "pulp.h"
#define pi_core_id get_core_id
#define pi_cl_team_barrier(x) synch_barrier()
#endif

View file

@ -13,9 +13,9 @@ PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9 -mnohwloop
else
PULP_LDFLAGS +=
PULP_CFLAGS += -D__riscv__
PULP_ARCH_CFLAGS ?= -march=rv32imcxgap9
PULP_ARCH_LDFLAGS ?= -march=rv32imcxgap9
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9
PULP_ARCH_CFLAGS ?= -march=rv32imcxpulpnn
PULP_ARCH_LDFLAGS ?= -march=rv32imcxpulpnn
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxpulpnn
endif
PULP_CFLAGS += -fdata-sections -ffunction-sections -include chips/pulp_cluster/config.h -I$(PULPRT_HOME)/include/chips/pulp_cluster