acrn-config: modify the git commit message for gen_patch

Minor changes on git commit message of config patch:
For board config patch, specify with "config patch for board xxx";
For scenario config patch, specify with "config patch for scenario yyy".

Tracked-On: #3854
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Wei Liu 2019-11-21 10:30:46 +08:00 committed by wenlingz
parent 2c4ebdc695
commit dc2d6b6656
3 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ def main(args):
gen_str = 'generated'
# move changes to patch, and apply to the source code
if enable_commit:
err_dic = board_cfg_lib.gen_patch(config_srcs, board)
err_dic = board_cfg_lib.gen_patch(config_srcs, "board " + board)
config_str = 'Config patch'
gen_str = 'committed'

View File

@ -550,7 +550,7 @@ def add_to_patch(srcs_list, commit_name):
return err_dic
# commit this changes
git_commit = 'git commit -sm "acrn-config: config board patch for {}"'.format(commit_name)
git_commit = 'git commit -sm "acrn-config: config patch for {}"'.format(commit_name)
try:
ret = subprocess.call(git_commit, shell=True, stdout=subprocess.PIPE,

View File

@ -136,7 +136,7 @@ def main(args):
gen_str = 'generated'
# move changes to patch, and apply to the source code
if enable_commit:
err_dic = scenario_cfg_lib.gen_patch(config_srcs, scenario)
err_dic = scenario_cfg_lib.gen_patch(config_srcs, "scenario " + scenario)
config_str = 'Config patch'
gen_str = 'committed'