linux_dsm_epyc7002/synology/synoconfigs-spec/CONFIG_CRYPTO.rb
AuxXxilium 5fa3ea047a init: add dsm gpl source
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
2024-07-05 18:00:04 +02:00

29 lines
659 B
Ruby

require 'syno_kconfig'
describe 'CONFIG_CRYPTO_*' do
include SynoKconfig
%w[
CONFIG_CRYPTO_CRC32C
CONFIG_LIBCRC32C
].each do |cfg|
it "#{cfg}=y" do
platforms.verify(cfg, builtin?)
end
end
it "CONFIG_CRYPTO_CRC32C_INTEL=y if x86_64 platforms" do
platforms
.select { |p| p.family == :x86_64 }
.verify('CONFIG_CRYPTO_CRC32C_INTEL', builtin?)
end
it "CONFIG_CRYPTO_CRC32C_INTEL is not set if !x86_64 platforms" do
platforms
.reject { |p| p.family == :x86_64 }
.verify('CONFIG_CRYPTO_CRC32C_INTEL', disabled?)
end
end