diff options
author | Chen Rong <rong.a.chen@intel.com> | 2019-07-26 14:43:03 +0800 |
---|---|---|
committer | Philip Li <philip.li@intel.com> | 2019-07-26 15:04:04 +0800 |
commit | 826f8af7c79f728ceec5c4e1357f831d492a7533 (patch) | |
tree | e538ea71c27ffd3555e234bc17a4aa42b3fdb41f | |
parent | 5e1a9a4dcf9716298eae9dbc38e5cd732a9d8691 (diff) | |
download | lkp-tests-826f8af7c79f728ceec5c4e1357f831d492a7533.tar.gz |
filters/need_kconfig: introduce need_kconfig_hw to filter kconfigs for tbox
some physical tboxes need kconfigs enabled. e.g. network device
---------------
rongc@inn ➜ src grep need_kconfig_hardware include/testbox/lkp-cfl-e1 # set the option in hosts file
need_kconfig_hw: CONFIG_IGB=y
rongc@inn ➜ src grep need_kconfig_hardware job.yaml # the config will be in job.yaml
need_kconfig_hw: CONFIG_IGB=y
rongc@inn ➜ src sbin/job2sh job.yaml # filter the job yaml if kernel doesn't enable it
2019-07-26 13:06:32 +0800 ERROR Abandon job: need_kconfig_hw.rb: CONFIG_IGB=y has not been compiled by v5.1
---------------
Signed-off-by: Chen Rong <rong.a.chen@intel.com>
Signed-off-by: Philip Li <philip.li@intel.com>
-rwxr-xr-x | filters/need_kconfig.rb | 2 | ||||
l--------- | filters/need_kconfig_hw.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/filters/need_kconfig.rb b/filters/need_kconfig.rb index 20ff2f44..4d3a9056 100755 --- a/filters/need_kconfig.rb +++ b/filters/need_kconfig.rb @@ -50,7 +50,7 @@ def check_all(kconfig_lines) next if check_kconfig(kconfig_lines, config) # need_kconfig - kconfig_error_message = "#{config} has not been compiled" + kconfig_error_message = "#{File.basename __FILE__}: #{config} has not been compiled" kconfig_error_message = "#{kconfig_error_message} by #{kernel_version}" if kernel_version kconfig_error_message = "#{kconfig_error_message}, it is supported by kernel matching #{kernel_version_regexp} regexp" if kernel_version_regexp raise Job::ParamError, kconfig_error_message.to_s unless __FILE__ =~ /suggest_kconfig/ diff --git a/filters/need_kconfig_hw.rb b/filters/need_kconfig_hw.rb new file mode 120000 index 00000000..70428115 --- /dev/null +++ b/filters/need_kconfig_hw.rb @@ -0,0 +1 @@ +need_kconfig.rb
\ No newline at end of file |