mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-30 08:03:59 +00:00
rpi: add missing drivers in run-scripts (Fix #1366)
Add platform driver and usb-network driver for platform_rpi where appropriated.
This commit is contained in:
parent
28112d1ff9
commit
e8d1d6e87c
@ -4,9 +4,9 @@
|
||||
# \date 2013-11-29
|
||||
#
|
||||
|
||||
set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5]]
|
||||
set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5] || [have_spec platform_rpi]]
|
||||
set use_nic_driver [expr !$use_usb_driver && ![have_spec platform_imx53]]
|
||||
set use_platform_driver [expr [have_spec platform_arndale] || [have_spec platform_imx53]]
|
||||
set use_platform_driver [expr [have_spec platform_arndale] || [have_spec platform_imx53] || [have_spec platform_rpi]]
|
||||
|
||||
if {[expr !$use_usb_driver && !$use_nic_driver]} {
|
||||
puts "\n Run script is not supported on this platform. \n"; exit 0 }
|
||||
@ -63,6 +63,7 @@ append_if $use_platform_driver config {
|
||||
<start name="platform_drv">
|
||||
<resource name="RAM" quantum="1M" />
|
||||
<provides><service name="Regulator"/></provides>
|
||||
<provides><service name="Platform"/></provides>
|
||||
</start>}
|
||||
|
||||
append_if [have_spec gpio] config {
|
||||
|
@ -15,9 +15,10 @@ set build_components {
|
||||
app/lighttpd
|
||||
}
|
||||
|
||||
set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5]]
|
||||
set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5] || [have_spec platform_rpi]]
|
||||
set use_nic_driver [expr !$use_usb_driver]
|
||||
set use_platform_driver [expr $use_usb_driver && [have_spec foc_arndale]]
|
||||
set use_platform_driver [expr [have_spec platform_arndale] || [have_spec platform_imx53] || [have_spec platform_rpi]]
|
||||
|
||||
if {$use_usb_driver} { set network_driver "usb_drv" }
|
||||
if {$use_nic_driver} { set network_driver "nic_drv" }
|
||||
|
||||
@ -59,6 +60,7 @@ append_if $use_platform_driver config {
|
||||
<start name="platform_drv">
|
||||
<resource name="RAM" quantum="1M" />
|
||||
<provides><service name="Regulator"/></provides>
|
||||
<provides><service name="Platform"/></provides>
|
||||
</start>}
|
||||
|
||||
append_if [have_spec gpio] config {
|
||||
|
@ -1,6 +1,6 @@
|
||||
set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5]]
|
||||
set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5] || [have_spec platform_rpi]]
|
||||
set use_nic_driver [expr !$use_usb_driver && ![have_spec platform_imx53] && ![have_spec linux]]
|
||||
set use_platform_drv [expr [have_spec platform_arndale] || [have_spec platform_imx53]]
|
||||
set use_platform_drv [expr [have_spec platform_arndale] || [have_spec platform_imx53] || [have_spec platform_rpi]]
|
||||
|
||||
if {[expr !$use_usb_driver && !$use_nic_driver]} {
|
||||
puts "\n Run script is not supported on this platform. \n"; exit 0 }
|
||||
@ -111,6 +111,7 @@ append_if $use_platform_drv config {
|
||||
<start name="platform_drv">
|
||||
<resource name="RAM" quantum="1M"/>
|
||||
<provides>
|
||||
<service name="Platform"/>
|
||||
<service name="Regulator"/>
|
||||
</provides>
|
||||
</start>}
|
||||
|
@ -5,7 +5,7 @@ set build_components {
|
||||
test/libports/ncurses
|
||||
}
|
||||
set use_usb_input [expr ![have_spec ps2] && ![have_spec sdl] && [have_spec usb]]
|
||||
set use_platform_driver [expr [have_spec platform_arndale] || [have_spec platform_imx53]]
|
||||
set use_platform_driver [expr [have_spec platform_arndale] || [have_spec platform_imx53] || [have_spec platform_rpi]]
|
||||
|
||||
lappend_if $use_usb_input build_components drivers/usb
|
||||
lappend_if $use_platform_driver build_components drivers/platform
|
||||
@ -94,6 +94,7 @@ append_if $use_platform_driver config {
|
||||
<start name="platform_drv">
|
||||
<resource name="RAM" quantum="1M"/>
|
||||
<provides><service name="Regulator"/></provides>
|
||||
<provides><service name="Platform"/></provides>
|
||||
</start>}
|
||||
|
||||
append config {
|
||||
|
@ -16,7 +16,7 @@ if {[have_spec linux]} {
|
||||
exit 0
|
||||
}
|
||||
|
||||
set use_platform_driver [expr [have_spec platform_arndale] || [have_spec platform_imx53]]
|
||||
set use_platform_driver [expr [have_spec platform_arndale] || [have_spec platform_imx53] || [have_spec platform_rpi]]
|
||||
set use_usb_input [expr ![have_spec ps2] && ![have_spec sdl] && [have_spec usb]]
|
||||
|
||||
set build_components {
|
||||
@ -120,6 +120,7 @@ append_if $use_platform_driver config {
|
||||
<start name="platform_drv">
|
||||
<resource name="RAM" quantum="1M" />
|
||||
<provides><service name="Regulator"/></provides>
|
||||
<provides><service name="Platform"/></provides>
|
||||
</start>}
|
||||
|
||||
append_if [have_spec sdl] config {
|
||||
|
@ -12,7 +12,7 @@ set build_components {
|
||||
}
|
||||
|
||||
set use_sd_card_driver [expr [have_spec omap4] || [have_spec exynos5]]
|
||||
set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5]]
|
||||
set use_usb_driver [expr [have_spec omap4] || [have_spec exynos5] || [have_spec platform_rpi]]
|
||||
|
||||
lappend_if $use_sd_card_driver build_components drivers/sd_card
|
||||
lappend_if $use_usb_driver build_components drivers/usb
|
||||
|
Loading…
x
Reference in New Issue
Block a user