fixes include paths

This commit is contained in:
Eyck Jentzsch 2024-01-14 20:35:05 +01:00
parent b5101117aa
commit 123f579105
9 changed files with 79 additions and 13 deletions

42
.cproject Normal file
View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="cdt.managedbuild.toolchain.gnu.base.1610975709">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.base.1610975709" moduleId="org.eclipse.cdt.core.settings" name="Default">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration buildProperties="" id="cdt.managedbuild.toolchain.gnu.base.1610975709" name="Default" parent="org.eclipse.cdt.build.core.emptycfg">
<folderInfo id="cdt.managedbuild.toolchain.gnu.base.1610975709.1546824349" name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.base.759422847" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.base">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.GNU_ELF" id="cdt.managedbuild.target.gnu.platform.base.1243356996" name="Debug Platform" osList="linux,hpux,aix,qnx" superClass="cdt.managedbuild.target.gnu.platform.base"/>
<builder id="cdt.managedbuild.target.gnu.builder.base.1892113927" managedBuildOn="false" name="Gnu Make Builder.Default" superClass="cdt.managedbuild.target.gnu.builder.base"/>
<tool id="cdt.managedbuild.tool.gnu.archiver.base.1296149061" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.base.407512210" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.base"/>
<tool id="cdt.managedbuild.tool.gnu.c.compiler.base.1062663578" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.base"/>
<tool id="cdt.managedbuild.tool.gnu.c.linker.base.774157935" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base"/>
<tool id="cdt.managedbuild.tool.gnu.cpp.linker.base.1756027799" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base"/>
<tool id="cdt.managedbuild.tool.gnu.assembler.base.236534392" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.base"/>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="bm-bsp.null.406870477" name="bm-bsp"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
</cproject>

27
.project Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>bm-bsp</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>

View File

@ -7,7 +7,7 @@
#define MCAUSE_INT 0x80000000 #define MCAUSE_INT 0x80000000
#define MCAUSE_CAUSE 0x7FFFFFFF #define MCAUSE_CAUSE 0x7FFFFFFF
#include "rtl/const.h" #include "bits.h"
/**************************************************************************** /****************************************************************************
* Platform definitions * Platform definitions
*****************************************************************************/ *****************************************************************************/

View File

@ -4,7 +4,6 @@
#include "platform.h" #include "platform.h"
#include "encoding.h" #include "encoding.h"
#include <ehrenberg/devices.h>
#if __riscv_xlen == 32 #if __riscv_xlen == 32
#define MCAUSE_INT 0x80000000UL #define MCAUSE_INT 0x80000000UL

View File

@ -7,15 +7,13 @@
#define MCAUSE_INT 0x80000000 #define MCAUSE_INT 0x80000000
#define MCAUSE_CAUSE 0x7FFFFFFF #define MCAUSE_CAUSE 0x7FFFFFFF
#include "ehrenberg/const.h"
#define APB_BUS #define APB_BUS
#include "devices/gpio.h" #include "ehrenberg/devices/gpio.h"
#include "devices/interrupt.h" #include "ehrenberg/devices/interrupt.h"
#include "devices/timer.h" #include "ehrenberg/devices/timer.h"
#include "devices/uart.h" #include "ehrenberg/devices/uart.h"
#include "devices/qspi.h" #include "ehrenberg/devices/qspi.h"
#define PERIPH(TYPE, ADDR) ((volatile TYPE*) (ADDR)) #define PERIPH(TYPE, ADDR) ((volatile TYPE*) (ADDR))

2
env/entry.S vendored
View File

@ -4,7 +4,7 @@
#define ENTRY_S #define ENTRY_S
#include "encoding.h" #include "encoding.h"
#include "rtl/bits.h" #include "bits.h"
.section .text.entry .section .text.entry
.align 2 .align 2

2
env/hifive1/init.c vendored
View File

@ -2,7 +2,7 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include "../hifive1/platform.h" #include "platform.h"
#include "encoding.h" #include "encoding.h"
extern int main(int argc, char** argv); extern int main(int argc, char** argv);

2
env/iss/platform.h vendored
View File

@ -7,7 +7,7 @@
#define MCAUSE_INT 0x80000000 #define MCAUSE_INT 0x80000000
#define MCAUSE_CAUSE 0x7FFFFFFF #define MCAUSE_CAUSE 0x7FFFFFFF
#include "rtl/const.h" #include "bits.h"
/**************************************************************************** /****************************************************************************
* Platform definitions * Platform definitions
*****************************************************************************/ *****************************************************************************/

View File

@ -7,7 +7,7 @@
#define MCAUSE_INT 0x80000000 #define MCAUSE_INT 0x80000000
#define MCAUSE_CAUSE 0x7FFFFFFF #define MCAUSE_CAUSE 0x7FFFFFFF
#include "tgc-vp/const.h" #include "bits.h"
#include "tgc-vp/devices/aon.h" #include "tgc-vp/devices/aon.h"
#include "tgc-vp/devices/clint.h" #include "tgc-vp/devices/clint.h"
#include "tgc-vp/devices/gpio.h" #include "tgc-vp/devices/gpio.h"