Building RISC-V BSP

Gedare Bloom gedare at rtems.org
Tue May 30 15:31:20 UTC 2017


On Tue, May 30, 2017 at 7:49 AM, Denis Obrezkov <denisobrezkov at gmail.com> wrote:
> Hello,
> I am trying to build RTEMS for RISC-V BSP. I applied Hesham's patch for RSB
> and built RSB. But when I am trying to build rtems-generic target I get the
> mistake.
> This is my sequence of steps:
>
> git clone git://git.rtems.org/rtems-source-builder.git
>
> #patch applied here
>
> mkdir -p ./development/rtems/kernel
>
> cd ./development/rtems/kernel
>
> export RTEMS_DEV=~Projects/riscv/rtems/development
>
> git clone https://github.com/heshamelmatary/rtems-riscv.git
>
> cd ..
>
> mkdir rsb
>
> mv ../../rtems-source-builder/ ./rsb/
>
> cd rsb/rtems-source-builder/rtems/
>
> ../source-builder/sb-set-builder --prefix=$RTEMS_DEV/rtems/4.12
> 4.12/rtems-riscv32
>
is $RTEMS_DEV/rtems/4.12/bin in your $PATH?

> cd ./../../../kernel/rtems-riscv/
>
I have no clue where you are in your directory tree. It is a bit
confusing/deep paths.

> ./bootstrap -c && ./bootstrap -p &&
> $RTEMS_DEV/rtems/rsb/rtems-source-builder/source-builder/sb-bootstrap
>
> cd ../
>
> mkdir riscv32
>
> cd riscv32/
>
> $RTEMS_DEV/rtems/kernel/rtems-riscv/configure --target=riscv32-rtems4.12
> --disable-posix --disable-networking --disable-itron
> --enable-rtemsbsp=riscv_generic
>
You should use --enable-posix probably.

The --disable-itron is obsolete / does nothing.

Check that your configure ended with something stating it was ready to
make 'riscv_generic' BSP.

> make
>
> # error here :
>
> Making all in riscv_generic
>
> make[2]: Entering directory
> '~/Projects/riscv/rtems/development/rtems/kernel/riscv32/riscv32-rtems4.12/c/riscv_generic'
>
> make[2]: *** No rule to make target 'all'.  Stop.
>
> make[2]: Leaving directory
> '~/Projects/riscv/rtems/development/rtems/kernel/riscv32/riscv32-rtems4.12/c/riscv_generic'
>
> Makefile:348: recipe for target 'all-recursive' failed
>
> make[1]: *** [all-recursive] Error 1
>
> make[1]: Leaving directory
> '~/Projects/riscv/rtems/development/rtems/kernel/riscv32/riscv32-rtems4.12/c'
>
> Makefile:473: recipe for target 'all-recursive' failed
>
> make: *** [all-recursive] Error 1
>

This is not enough of the error output to tell what went wrong. It
appears to be a problem earlier though, likely during configure.

>
> Am I doing something wrong? What is the possible cause of the error?
>
> --
> Regards, Denis Obrezkov
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list