Rename Linux audio driver to linux_audio_drv

Related to #2190
Fixes #2278
This commit is contained in:
Christian Helmuth 2017-03-09 17:08:26 +01:00
parent 43e7cc56a3
commit b9834bc388
8 changed files with 29 additions and 12 deletions

View File

@ -40,6 +40,15 @@ proc nic_drv_binary { } {
}
##
# Return name of the audio driver binary
#
proc audio_drv_binary { } {
if {[have_spec linux]} { return linux_audio_drv }
if {[have_spec x86]} { return audio_drv }
}
proc platform_drv_build_components {} {
set drv_build_components ""
lappend_if [have_platform_drv] drv_build_components drivers/platform

View File

@ -71,6 +71,7 @@ append_if $use_mixer config {
append config {
<start name="audio_drv">
<binary name="} [audio_drv_binary] {"/>
<resource name="RAM" quantum="8M"/>
<provides> <service name="Audio_out"/> </provides>
<config />
@ -113,8 +114,10 @@ if {![file exists bin/sample.raw]} {
# Boot modules
#
set boot_modules {
core ld.lib.so init timer audio_drv test-audio_out sample.raw }
append boot_modules {
core ld.lib.so init timer } [audio_drv_binary] {
test-audio_out sample.raw
}
lappend_if $use_mixer boot_modules mixer

View File

@ -78,6 +78,7 @@ append config {
<provides><service name="Timer"/></provides>
</start>
<start name="audio_drv">
<binary name="} [audio_drv_binary] {"/>
<resource name="RAM" quantum="8M"/>
<route>
<any-service> <any-child /> <parent /></any-service>
@ -114,8 +115,8 @@ install_config $config
# Boot modules
#
set boot_modules {
core init timer audio_drv avplay
append boot_modules {
core init timer } [audio_drv_binary] { avplay
ld.lib.so libc.lib.so libm.lib.so pthread.lib.so zlib.lib.so sdl.lib.so
avfilter.lib.so avutil.lib.so avcodec.lib.so avformat.lib.so swscale.lib.so
avresample.lib.so

View File

@ -152,6 +152,7 @@ proc drivers_start_nodes { feature_arg } {
append_if [use_audio_drv feature] start_nodes {
<start name="audio_drv">
<binary name="} [audio_drv_binary] {"/>
<resource name="RAM" quantum="8M"/>
<provides><service name="Audio_out"/></provides>
<config/>
@ -305,7 +306,7 @@ proc drivers_boot_modules { feature_arg } {
# local version defined above.
append_platform_drv_boot_modules
lappend_if [use_audio_drv feature] boot_modules audio_drv
lappend_if [use_audio_drv feature] boot_modules [audio_drv_binary]
lappend_if [use_fb_drv feature] boot_modules fb_drv
lappend_if [use_fb_sdl feature] boot_modules fb_sdl
lappend_if [use_gpio_drv feature] boot_modules [gpio_drv]

View File

@ -62,6 +62,7 @@ append config {
<provides><service name="Input"/></provides>
</start>
<start name="audio_drv">
<binary name="} [audio_drv_binary] {"/>
<resource name="RAM" quantum="8M"/>
<provides>
<service name="Audio_out"/>
@ -102,8 +103,8 @@ if {[expr ![file exists bin/sample.raw] || ![file exists bin/click.raw]]} {
# Boot modules
#
set boot_modules {
core ld.lib.so init timer mixer ps2_drv audio_drv
append boot_modules {
core ld.lib.so init timer mixer ps2_drv } [audio_drv_binary] {
test-audio_out test-audio_out_click
sample.raw click.raw }

View File

@ -51,6 +51,7 @@ append config {
</start>
<start name="audio_drv">
<binary name="} [audio_drv_binary] {"/>
<resource name="RAM" quantum="8M"/>
<provides><service name="Audio_out"/></provides>
<config/>
@ -171,10 +172,10 @@ if {[expr ![file exists bin/client1.f32] || ![file exists bin/client2.f32]]} {
#
# generic modules
set boot_modules {
append boot_modules {
core ld.lib.so init timer
report_rom dynamic_rom
audio_drv test-audio_out
} [audio_drv_binary] { test-audio_out
mixer client1.f32 client2.f32
}

View File

@ -1,5 +1,5 @@
TARGET = linux_audio_drv
REQUIRES = linux
TARGET = audio_drv
LIBS = lx_hybrid
SRC_CC = main.cc
SRC_C = alsa.c

View File

@ -80,6 +80,7 @@ append_if [have_spec ps2] config {
append config {
<start name="audio_drv">
<binary name="} [audio_drv_binary] {"/>
<resource name="RAM" quantum="6M"/>
<provides><service name="Audio_out"/></provides>
</start>
@ -117,8 +118,8 @@ if {![file exists bin/dosbox.tar]} {
#
# generic modules
set boot_modules {
core init timer audio_drv
append boot_modules {
core init timer } [audio_drv_binary] {
ld.lib.so
libc.lib.so
libm.lib.so lwip.lib.so libpng.lib.so