Building RISC-V BSP

Denis Obrezkov denisobrezkov at gmail.com
Wed May 31 13:39:30 UTC 2017


Thanks, I downloaded it.
There was a mistake also that _JBLEN wasn't defined in machine/setjmp.h
I don't know the exact value, so I did the following:
#ifdef __riscv

/* TBD: not the exact number */

#define _JBLEN 16

#endif

Now, it compiles further. But then I get the error:
riscv32-rtems4.12-gcc --pipe -B../../../lib/ -B../../../riscv_generic/lib/
-specs bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src\"
-DPACKAGE_TARNAME=\"rtems-c-src\" -DPACKAGE_VERSION=\"4.11.99.0\"
-DPACKAGE_STRING=\"rtems-c-src\ 4.11.99.0\" -DPACKAGE_BUGREPORT=\"
https://devel.rtems.org/newticket\" -DPACKAGE_URL=\"\" -I.
-I/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/libchip
 -isystem ../../../riscv_generic/lib/include   -O0 -g -Wall
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
-Wnested-externs -MT display/libdisplay_a-disp_hcms29xx.o -MD -MP -MF
display/.deps/libdisplay_a-disp_hcms29xx.Tpo -c -o
display/libdisplay_a-disp_hcms29xx.o `test -f 'display/disp_hcms29xx.c' ||
echo
'/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/libchip/'`display/disp_hcms29xx.c
riscv32-rtems4.12-gcc: error: bsp_specs: No such file or directory

So, I inserted it manually. But I can't figure out, why it wasn't copied
automatically.

Now I have an error:
riscv32-rtems4.12-gcc --pipe -B../../../lib/ -B../../../riscv_generic/lib/
-specs bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src\"
-DPACKAGE_TARNAME=\"rtems-c-src\" -DPACKAGE_VERSION=\"4.11.99.0\"
-DPACKAGE_STRING=\"rtems-c-src\ 4.11.99.0\" -DPACKAGE_BUGREPORT=\"
https://devel.rtems.org/newticket\" -DPACKAGE_URL=\"\" -I.
-I/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/libchip
 -isystem ../../../riscv_generic/lib/include   -O0 -g -Wall
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
-Wnested-externs -MT display/libdisplay_a-disp_hcms29xx.o -MD -MP -MF
display/.deps/libdisplay_a-disp_hcms29xx.Tpo -c -o
display/libdisplay_a-disp_hcms29xx.o `test -f 'display/disp_hcms29xx.c' ||
echo
'/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/libchip/'`display/disp_hcms29xx.c
/home/reprofy/Projects/riscv/rtems/development/rtems/kernel/rtems-riscv/c/src/libchip/display/disp_hcms29xx.c:26:10:
fatal error: bsp.h: No such file or directory
 #include <bsp.h>

It seems that configure scripts should be modified.

2017-05-31 8:46 GMT+03:00 Hesham Almatary <heshamelmatary at gmail.com>:

> Hi Denis,
>
> Please use priv-1.10 branch. I rebased it (against master) and added
> some fixes to make the build progress. Still, there's more work
> needed. Your contributions are welcomed.
>
> Cheers,
> Hesham
> .
>
>

-- 
Regards, Denis Obrezkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170531/ae5b7670/attachment-0002.html>


More information about the devel mailing list