Skip to content

Commit

Permalink
usb_host_drv: move it to legacy_usb_host_drv
Browse files Browse the repository at this point in the history
To make room for the re-newed usb_host_drv basing on Linux 5.14 and
the re-newed lx_kit/lx_emul we have to move the depot recipe and
consistently name the old drivers with a legacy_ prefix.

Ref genodelabs#4416
  • Loading branch information
skalk committed Feb 10, 2022
1 parent 89b5aa3 commit c224092
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions repos/base/run/platform_drv.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ proc have_platform_drv {} {
# Return name of the USB driver binary
#
proc usb_host_drv_binary { } {
if {[have_board rpi]} { return rpi_usb_host_drv }
if {[have_board imx6q_sabrelite]} { return imx6q_sabrelite_usb_host_drv }
if {[have_board pc]} { return x86_pc_usb_host_drv }
if {[have_board rpi]} { return legacy_rpi_usb_host_drv }
if {[have_board imx6q_sabrelite]} { return legacy_imx6q_sabrelite_usb_host_drv }
if {[have_board pc]} { return legacy_pc_usb_host_drv }
return no_usb_drv_available
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include $(REP_DIR)/src/drivers/usb_host/target.inc

TARGET = imx6q_sabrelite_usb_host_drv
TARGET = legacy_imx6q_sabrelite_usb_host_drv
REQUIRES = arm_v7

SRC_C += usb/chipidea/ci_hdrc_imx.c
Expand Down
2 changes: 1 addition & 1 deletion repos/dde_linux/src/drivers/usb_host/spec/rpi/target.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include $(REP_DIR)/src/drivers/usb_host/target.inc

TARGET = rpi_usb_host_drv
TARGET = legacy_rpi_usb_host_drv
REQUIRES = arm_v6

INC_DIR += $(REP_DIR)/src/drivers/usb_host/spec/arm
Expand Down
2 changes: 1 addition & 1 deletion repos/dde_linux/src/drivers/usb_host/spec/x86/target.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include $(REP_DIR)/src/drivers/usb_host/target.inc

TARGET = x86_pc_usb_host_drv
TARGET = legacy_pc_usb_host_drv

INC_DIR += $(REP_DIR)/src_drivers/usb_host/spec/x86
INC_DIR += $(REP_DIR)/src/include/spec/x86
Expand Down
2 changes: 1 addition & 1 deletion repos/gems/recipes/pkg/drivers_managed-pc/archives
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
_/src/platform_drv
_/src/acpi_drv
_/src/ps2_drv
_/src/usb_host_drv
_/src/legacy_usb_host_drv
_/src/usb_hid_drv
_/src/usb_block_drv
_/src/vesa_drv
Expand Down
2 changes: 1 addition & 1 deletion repos/gems/sculpt/drivers/pc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
</start>

<start name="usb_drv" caps="200">
<binary name="x86_pc_usb_host_drv"/>
<binary name="legacy_pc_usb_host_drv"/>
<resource name="RAM" quantum="16M"/>
<provides> <service name="Usb"/> </provides>
<route>
Expand Down
4 changes: 2 additions & 2 deletions repos/libports/run/webcam.run
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import_from_depot [depot_user]/src/[base_src] \
[depot_user]/src/nitpicker \
[depot_user]/src/dynamic_rom \
[depot_user]/src/rom_reporter \
[depot_user]/src/usb_host_drv \
[depot_user]/src/legacy_usb_host_drv \
[depot_user]/src/vesa_drv \
[depot_user]/src/test-capture \
[depot_user]/pkg/usb_webcam
Expand Down Expand Up @@ -66,7 +66,7 @@ append config {
</start>

<start name="usb_drv" priority="0" caps="200">
<binary name="x86_pc_usb_host_drv"/>
<binary name="legacy_pc_usb_host_drv"/>
<resource name="RAM" quantum="16M"/>
<!-- <resource name="CPU" quantum="10"/> -->
<provides><service name="Usb"/></provides>
Expand Down
2 changes: 1 addition & 1 deletion repos/os/recipes/pkg/drivers_interactive-pc/archives
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
_/src/platform_drv
_/src/acpi_drv
_/src/ps2_drv
_/src/usb_host_drv
_/src/legacy_usb_host_drv
_/src/usb_hid_drv
_/src/vesa_drv
_/src/report_rom
Expand Down
2 changes: 1 addition & 1 deletion repos/os/recipes/raw/drivers_interactive-pc/drivers.config
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
</start>

<start name="usb_drv" caps="150">
<binary name="x86_pc_usb_host_drv"/>
<binary name="legacy_pc_usb_host_drv"/>
<resource name="RAM" quantum="16M"/>
<provides> <service name="Usb"/> </provides>
<config uhci="yes" ohci="yes" ehci="yes" xhci="yes">
Expand Down
4 changes: 2 additions & 2 deletions repos/ports/run/virtualbox_auto.inc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if {$use_vms > 1} {
}

if {$use_usb} {
import_from_depot [depot_user]/src/usb_host_drv \
import_from_depot [depot_user]/src/legacy_usb_host_drv \
[depot_user]/src/usb_hid_drv
}

Expand Down Expand Up @@ -350,7 +350,7 @@ append_if [expr $use_usb] config {
</start>

<start name="usb_drv" caps="200">
<binary name="x86_pc_usb_host_drv"/>
<binary name="legacy_pc_usb_host_drv"/>
<resource name="RAM" quantum="20M"/>
<provides> <service name="Usb"/> </provides>
<route>
Expand Down

0 comments on commit c224092

Please sign in to comment.