2020-02-18 20:14:29 +01:00
|
|
|
-- SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
let Genode = env:DHALL_GENODE
|
|
|
|
|
2020-02-21 22:55:50 +01:00
|
|
|
let Init = Genode.Init
|
|
|
|
|
|
|
|
let Child = Init.Child
|
|
|
|
|
|
|
|
let wrapHarness
|
|
|
|
: Init.Type → Child.Type
|
|
|
|
= env:DHALL_WRAP_HARNESS ? ./sotest-wrapper.dhall
|
|
|
|
|
2020-02-18 20:14:29 +01:00
|
|
|
in λ(boot : Genode.Boot.Type)
|
2020-02-19 14:11:21 +01:00
|
|
|
→ { config =
|
2020-02-21 22:55:50 +01:00
|
|
|
Init::{
|
2020-02-19 14:11:21 +01:00
|
|
|
, children =
|
|
|
|
[ { mapKey = "timer"
|
|
|
|
, mapValue =
|
2020-02-21 22:55:50 +01:00
|
|
|
Child.flat
|
|
|
|
Child.Attributes::{
|
|
|
|
, binary = "hw_timer_drv"
|
|
|
|
, provides = [ "Timer" ]
|
|
|
|
}
|
2020-02-19 14:11:21 +01:00
|
|
|
}
|
2020-02-21 22:55:50 +01:00
|
|
|
, { mapKey = "harness", mapValue = wrapHarness boot.config }
|
2020-02-19 14:11:21 +01:00
|
|
|
]
|
2020-02-18 20:14:29 +01:00
|
|
|
}
|
2020-02-19 14:11:21 +01:00
|
|
|
, rom =
|
|
|
|
let manifest = env:MANIFEST
|
|
|
|
|
|
|
|
in Genode.Boot.toRomPaths
|
|
|
|
[ manifest.base-hw-pc.lib.ld
|
|
|
|
, manifest.base-hw-pc.bin.hw_timer_drv
|
|
|
|
, manifest.os.bin.init
|
2020-02-21 22:55:50 +01:00
|
|
|
, manifest.sotest-producer.bin.sotest-harness
|
2020-02-19 14:11:21 +01:00
|
|
|
]
|
|
|
|
# boot.rom
|
|
|
|
}
|