mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:50:58 +07:00
5fa3ea047a
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
39 lines
690 B
Ruby
39 lines
690 B
Ruby
|
|
require 'syno_kconfig'
|
|
|
|
describe 'CONFIG_SYNO_USB_*' do
|
|
include SynoKconfig
|
|
|
|
# builtin configs
|
|
%w[
|
|
CONFIG_SYNO_USB_VBUS_GPIO_CONTROL
|
|
CONFIG_SYNO_USB_POWER_RESET
|
|
].each do |cfg|
|
|
it "#{cfg}=y if not virtual platforms" do
|
|
platforms
|
|
.reject { |p| p.virtual? }
|
|
.verify(cfg, builtin?)
|
|
|
|
platforms
|
|
.select { |p| p.virtual? }
|
|
.verify(cfg, disabled?)
|
|
end
|
|
end
|
|
|
|
%w[
|
|
CONFIG_SYNO_USB_INTEL_XHC_LPM_DISABLE
|
|
].each do |cfg|
|
|
it "#{cfg}=y if not virtual or arm64 platforms" do
|
|
platforms
|
|
.reject { |p| p.virtual? || p.aarch64? }
|
|
.verify(cfg, builtin?)
|
|
|
|
platforms
|
|
.select { |p| p.virtual? || p.aarch64? }
|
|
.verify(cfg, disabled?)
|
|
end
|
|
end
|
|
|
|
end
|
|
|