mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-22 00:41:55 +00:00
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:
committed by
Christian Helmuth
parent
b85071174a
commit
3e848dff10
@ -12,5 +12,4 @@ INC_DIR += $(SOLO5_PORT_DIR)/src/lib/solo5/bindings
|
|||||||
INC_DIR += $(SOLO5_PORT_DIR)/include/solo5
|
INC_DIR += $(SOLO5_PORT_DIR)/include/solo5
|
||||||
INC_DIR += $(REP_DIR)/include/solo5
|
INC_DIR += $(REP_DIR)/include/solo5
|
||||||
|
|
||||||
vpath %.cc $(SOLO5_PORT_DIR)/src/lib/solo5/bindings/genode
|
vpath bindings.cc $(SOLO5_PORT_DIR)/src/lib/solo5/bindings/genode
|
||||||
vpath %.cc $(REP_DIR)/src/lib/solo5/bindings/genode
|
|
||||||
|
@ -1 +1 @@
|
|||||||
38981f1a735dfaa4bffc241db5d3b31e2b47163c
|
9d1dcd38b2f71a7e8062ceb13072d17ec725a536
|
||||||
|
@ -2,11 +2,11 @@ LICENSE := ISC
|
|||||||
VERSION := HEAD
|
VERSION := HEAD
|
||||||
DOWNLOADS := solo5.archive
|
DOWNLOADS := solo5.archive
|
||||||
|
|
||||||
OWNER := Solo5
|
OWNER := ehmry
|
||||||
REPO := solo5
|
REPO := solo5
|
||||||
REV := 58e855e149b069174b97176dcc0cba077e8a7440
|
REV := 7dca1a677f548ea0bc911a209f34ceb55d8f10fd
|
||||||
URL(solo5) := https://github.com/$(OWNER)/$(REPO)/archive/$(REV).tar.gz
|
URL(solo5) := https://github.com/$(OWNER)/$(REPO)/archive/$(REV).tar.gz
|
||||||
SHA(solo5) := b90e727a75b447caa5668c4babf306e1d34c0d1534665900f09d559ef47366a9
|
SHA(solo5) := 87a8e8e047bc6fffe0384f1cbb2bfde1e4c88c545287899be29444ec9a4d6b95
|
||||||
DIR(solo5) := src/lib/solo5
|
DIR(solo5) := src/lib/solo5
|
||||||
|
|
||||||
DIRS := include/solo5
|
DIRS := include/solo5
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<start name="solo5-test_globals"/>
|
<start name="solo5-test_globals"/>
|
||||||
<start name="solo5-test_quiet"/>
|
<start name="solo5-test_quiet"/>
|
||||||
<start name="solo5-test_blk">
|
<start name="solo5-test_blk">
|
||||||
<config> <blk/> </config>
|
<config> <block/> </config>
|
||||||
</start>
|
</start>
|
||||||
</config>
|
</config>
|
||||||
</start>
|
</start>
|
||||||
|
@ -13,7 +13,10 @@ create_boot_directory
|
|||||||
import_from_depot \
|
import_from_depot \
|
||||||
[depot_user]/src/[base_src] \
|
[depot_user]/src/[base_src] \
|
||||||
[depot_user]/src/init \
|
[depot_user]/src/init \
|
||||||
|
[depot_user]/src/nic_loopback \
|
||||||
|
[depot_user]/src/ram_block \
|
||||||
[depot_user]/src/rtc_drv \
|
[depot_user]/src/rtc_drv \
|
||||||
|
[depot_user]/src/sequence \
|
||||||
|
|
||||||
append config {
|
append config {
|
||||||
<config>
|
<config>
|
||||||
@ -58,14 +61,14 @@ append config {
|
|||||||
<start name="solo5-test_hello">
|
<start name="solo5-test_hello">
|
||||||
<config>
|
<config>
|
||||||
<solo5 cmdline="Hello_Solo5"/>
|
<solo5 cmdline="Hello_Solo5"/>
|
||||||
<rtc/> <nic/> <blk/>
|
<rtc/> <nic/> <block/>
|
||||||
</config>
|
</config>
|
||||||
</start>
|
</start>
|
||||||
<start name="solo5-test_fpu"/>
|
<start name="solo5-test_fpu"/>
|
||||||
<start name="solo5-test_globals"/>
|
<start name="solo5-test_globals"/>
|
||||||
<start name="solo5-test_quiet"/>
|
<start name="solo5-test_quiet"/>
|
||||||
<start name="solo5-test_blk">
|
<start name="solo5-test_blk">
|
||||||
<config> <blk/> </config>
|
<config> <block/> </config>
|
||||||
</start>}
|
</start>}
|
||||||
|
|
||||||
if { ![get_cmd_switch --autopilot] || ![have_include "power_on/qemu"] } {
|
if { ![get_cmd_switch --autopilot] || ![have_include "power_on/qemu"] } {
|
||||||
@ -84,16 +87,10 @@ append config {
|
|||||||
install_config $config
|
install_config $config
|
||||||
|
|
||||||
build {
|
build {
|
||||||
app/sequence
|
|
||||||
server/nic_loopback
|
|
||||||
server/ram_block
|
|
||||||
test/solo5
|
test/solo5
|
||||||
}
|
}
|
||||||
|
|
||||||
build_boot_image {
|
build_boot_image {
|
||||||
nic_loopback
|
|
||||||
ram_block
|
|
||||||
sequence
|
|
||||||
solo5.lib.so
|
solo5.lib.so
|
||||||
solo5-test_blk
|
solo5-test_blk
|
||||||
solo5-test_fpu
|
solo5-test_fpu
|
||||||
|
51
repos/libports/run/solo5_ssp.run
Normal file
51
repos/libports/run/solo5_ssp.run
Normal 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
|
1
repos/libports/src/test/solo5/ssp/target.mk
Normal file
1
repos/libports/src/test/solo5/ssp/target.mk
Normal file
@ -0,0 +1 @@
|
|||||||
|
include $(REP_DIR)/src/test/solo5/test.inc
|
@ -1,7 +1,9 @@
|
|||||||
TEST_NAME := test_$(subst $(REP_DIR)/src/test/solo5/,,$(PRG_DIR))
|
TEST_NAME := test_$(subst $(REP_DIR)/src/test/solo5/,,$(PRG_DIR))
|
||||||
TARGET = solo5-$(TEST_NAME)
|
TARGET = solo5-$(TEST_NAME)
|
||||||
|
|
||||||
LIBS += solo5
|
LIBS += base solo5
|
||||||
|
|
||||||
|
CC_OPT += -fstack-protector-strong
|
||||||
|
|
||||||
SRC_C += $(TEST_NAME).c
|
SRC_C += $(TEST_NAME).c
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user