From f2eee6b3351e8cecbbd53e27c4f690a78b9ec2a2 Mon Sep 17 00:00:00 2001 From: Kevin Ding Date: Mon, 24 Feb 2025 10:23:57 +0800 Subject: pkg/cover: allow paths to be excluded from stats Some sub paths may not be covered due to hardware configuration, or lack of interest. This patch allows them to be excluded from the stats. This can be convenient if the excluded paths are deep in the hierarchy: { "name": "sound", "path": [ "techpack/audio", "-techpack/audio/asoc/aaa/bbb" "-techpack/audio/asoc/aaa/ccc" ] } --- pkg/mgrconfig/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/mgrconfig') diff --git a/pkg/mgrconfig/config.go b/pkg/mgrconfig/config.go index 42730eef4..6bf88c574 100644 --- a/pkg/mgrconfig/config.go +++ b/pkg/mgrconfig/config.go @@ -51,9 +51,9 @@ type Config struct { KernelBuildSrc string `json:"kernel_build_src,omitempty"` // Is the kernel built separately from the modules? (Specific to Android builds) AndroidSplitBuild bool `json:"android_split_build"` - // Kernel subsystem with paths to each subsystem + // Kernel subsystem with paths to each subsystem, paths starting with "-" will be excluded // "kernel_subsystem": [ - // { "name": "sound", "path": ["sound", "techpack/audio"]}, + // { "name": "sound", "path": ["sound", "techpack/audio", "-techpack/audio/dsp"]}, // { "name": "mydriver": "path": ["mydriver_path"]} // ] KernelSubsystem []Subsystem `json:"kernel_subsystem,omitempty"` -- cgit mrf-deployment