solo5: update bindings

Update the Solo5 upstream to accomadate changes to the Block session and
stack protection support in the base library.

Ref #3275
Ref #3283
This commit is contained in:
Ehmry - 2019-04-10 13:51:32 +02:00 committed by Christian Helmuth
parent b85071174a
commit 3e848dff10
8 changed files with 66 additions and 16 deletions

View File

@ -12,5 +12,4 @@ INC_DIR += $(SOLO5_PORT_DIR)/src/lib/solo5/bindings
INC_DIR += $(SOLO5_PORT_DIR)/include/solo5
INC_DIR += $(REP_DIR)/include/solo5
vpath %.cc $(SOLO5_PORT_DIR)/src/lib/solo5/bindings/genode
vpath %.cc $(REP_DIR)/src/lib/solo5/bindings/genode
vpath bindings.cc $(SOLO5_PORT_DIR)/src/lib/solo5/bindings/genode

View File

@ -1 +1 @@
38981f1a735dfaa4bffc241db5d3b31e2b47163c
9d1dcd38b2f71a7e8062ceb13072d17ec725a536

View File

@ -2,11 +2,11 @@ LICENSE := ISC
VERSION := HEAD
DOWNLOADS := solo5.archive
OWNER := Solo5
OWNER := ehmry
REPO := solo5
REV := 58e855e149b069174b97176dcc0cba077e8a7440
REV := 7dca1a677f548ea0bc911a209f34ceb55d8f10fd
URL(solo5) := https://github.com/$(OWNER)/$(REPO)/archive/$(REV).tar.gz
SHA(solo5) := b90e727a75b447caa5668c4babf306e1d34c0d1534665900f09d559ef47366a9
SHA(solo5) := 87a8e8e047bc6fffe0384f1cbb2bfde1e4c88c545287899be29444ec9a4d6b95
DIR(solo5) := src/lib/solo5
DIRS := include/solo5

View File

@ -59,7 +59,7 @@
<start name="solo5-test_globals"/>
<start name="solo5-test_quiet"/>
<start name="solo5-test_blk">
<config> <blk/> </config>
<config> <block/> </config>
</start>
</config>
</start>

View File

@ -13,7 +13,10 @@ create_boot_directory
import_from_depot \
[depot_user]/src/[base_src] \
[depot_user]/src/init \
[depot_user]/src/nic_loopback \
[depot_user]/src/ram_block \
[depot_user]/src/rtc_drv \
[depot_user]/src/sequence \
append config {
<config>
@ -58,14 +61,14 @@ append config {
<start name="solo5-test_hello">
<config>
<solo5 cmdline="Hello_Solo5"/>
<rtc/> <nic/> <blk/>
<rtc/> <nic/> <block/>
</config>
</start>
<start name="solo5-test_fpu"/>
<start name="solo5-test_globals"/>
<start name="solo5-test_quiet"/>
<start name="solo5-test_blk">
<config> <blk/> </config>
<config> <block/> </config>
</start>}
if { ![get_cmd_switch --autopilot] || ![have_include "power_on/qemu"] } {
@ -84,16 +87,10 @@ append config {
install_config $config
build {
app/sequence
server/nic_loopback
server/ram_block
test/solo5
}
build_boot_image {
nic_loopback
ram_block
sequence
solo5.lib.so
solo5-test_blk
solo5-test_fpu

View File

@ -0,0 +1,51 @@
if {![have_spec 64bit]} {
puts "\nSolo5 requires a 64bit architecture\n"
exit 0
}
create_boot_directory
import_from_depot \
[depot_user]/src/[base_src] \
[depot_user]/src/init \
append config {
<config>
<parent-provides>
<service name="CPU"/>
<service name="LOG"/>
<service name="PD"/>
<service name="RAM"/>
<service name="ROM"/>
<service name="IRQ"/>
<service name="IO_PORT"/>
</parent-provides>
<default-route>
<any-service> <parent/> <any-child/> </any-service> </default-route>
<start name="timer" caps="96">
<resource name="RAM" quantum="1M"/>
<provides> <service name="Timer"/> </provides>
</start>
<start name="solo5-test_ssp" caps="256">
<resource name="RAM" quantum="2M"/>
</start>
</config>
}
install_config $config
build {
test/solo5
}
build_boot_image {
solo5.lib.so
solo5-test_ssp
}
append qemu_args " -nographic "
run_genode_until {Error: stack protector check failed} 20

View File

@ -0,0 +1 @@
include $(REP_DIR)/src/test/solo5/test.inc

View File

@ -1,7 +1,9 @@
TEST_NAME := test_$(subst $(REP_DIR)/src/test/solo5/,,$(PRG_DIR))
TARGET = solo5-$(TEST_NAME)
LIBS += solo5
LIBS += base solo5
CC_OPT += -fstack-protector-strong
SRC_C += $(TEST_NAME).c