pk: Update to autodetect the set of enabled harts

This commit is contained in:
Palmer Dabbelt 2017-11-03 17:06:23 -07:00
parent ac75f6e497
commit 266201ede7
3 changed files with 31 additions and 3 deletions

View File

@ -90,8 +90,10 @@ $(bbl): $(pk_srcdir) $(vmlinux_stripped)
mkdir -p $(pk_wrkdir)
cd $(pk_wrkdir) && $</configure \
--host=$(target) \
--with-payload=$(vmlinux_stripped)
CFLAGS="-mabi=lp64d -march=rv64imafdc -DDISABLED_HART_MASK=1" $(MAKE) -C $(pk_wrkdir)
--with-payload=$(vmlinux_stripped) \
--enable-logo \
--with-logo=$(abspath conf/sifive_logo.txt)
CFLAGS="-mabi=lp64d -march=rv64imafdc" $(MAKE) -C $(pk_wrkdir)
$(bin): $(bbl)
$(target)-objcopy -S -O binary --change-addresses -0x80000000 $< $@

26
conf/sifive_logo.txt Normal file
View File

@ -0,0 +1,26 @@
SIFIVE, INC.
5555555555555555555555555
5555 5555
5555 5555
5555 5555
5555 5555555555555555555555
5555 555555555555555555555555
5555 5555
5555 5555
5555 5555
5555555555555555555555555555 55555
55555 555555555 55555
55555 55555 55555
55555 5 55555
55555 55555
55555 55555
55555 55555
55555 55555
55555 55555
555555555
55555
5
SiFive RISC-V Coreplex

@ -1 +1 @@
Subproject commit 66701f82f88d08d3700d8b0bc5d5306abfd0044f
Subproject commit e22aaec27f16d5f36f4a2947a7b6d4de8c922b38