On 2024-09-10, Vagrant Cascadian wrote:
> On 2024-08-27, Heinrich Schuchardt wrote:
>> As a first step let us add a 32bit OpenSBI to our opensbi package as 
>> /usr/lib/riscv32-linux-gnu/opensbi/generic/fw_*. Debian's 
>> riscv64-linux-gnu-gcc can build the 32bit OpenSBI when setting 
>> PLATFORM_RISCV_XLEN=32.
>
> I would be happy to apply a patch to add this, but my naive attempt so
> far still produces 64-bit opensbi binaries even when passing
> PLATFORM_RISCV_XLEN=32 and using CROSS_COMPILE=riscv64-linux-gnu-
>
> Also needs some more trickery to get it to build each variant in a
> separate build directory ... it seems to default to build/platform even
> when passing O= ... or more ugly, cleaning the directory in-between
> invocations?

Well, I was holding it wrong!

I pushed a commit that appears to work:

  
https://salsa.debian.org/opensbi-team/opensbi/-/commit/f3a37b121cb581ac45dce300f952626b6272251c

Would be great if you can test that it works with qemu!

It is a pretty quick build arch:all build.

live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to