public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-staging/EdkRepo][PATCH 1/3] EdkRepo: Multiple Command Package Configuration Support
@ 2019-10-28 23:22 Desimone, Ashley E
  2019-10-28 23:22 ` [edk2-staging/EdkRepo] [PATCH 2/3] EdkRepo: Multiple Command Package Command Factory Update Desimone, Ashley E
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Desimone, Ashley E @ 2019-10-28 23:22 UTC (permalink / raw)
  To: devel; +Cc: Nate DeSimone, Puja Pandya

Add support for a new required sections, command-packages
and preferred-command-packages,to the GlobalConfig class.
Additionaly update the existing edkrepo.cfg file.

Signed-off-by: Ashley E Desimone <ashley.e.desimone@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Puja Pandya <puja.pandya@intel.com>
---
 edkrepo/config/config_factory.py     | 12 +++++++++++-
 edkrepo_installer/Vendor/edkrepo.cfg |  6 ++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/edkrepo/config/config_factory.py b/edkrepo/config/config_factory.py
index 7a39554..38844d7 100644
--- a/edkrepo/config/config_factory.py
+++ b/edkrepo/config/config_factory.py
@@ -123,11 +123,21 @@ class GlobalConfig(BaseConfig):
                 CfgProp('sparsecheckout', 'always_exclude', 'sparsecheckout_always_exclude', None, True),
                 CfgProp('f2f-cherry-pick', 'ignored_folder_substrings', 'f2f_cp_ignored_folder_substrings'),
                 CfgProp('git-ver', 'minimum', 'minimum_req_git_ver', None, True),
-                CfgProp('git-ver', 'recommended', 'rec_git_ver', None, True)]
+                CfgProp('git-ver', 'recommended', 'rec_git_ver', None, True),
+                CfgProp('command-packages', 'packages', 'command_packages', None, True),
+                CfgProp('preferred-command-package', 'preferred-package', 'pref_pkg', None, True)]
         if not os.path.isfile(self.filename):
             raise EdkrepoGlobalConfigNotFoundException("edkrepo global config file {} does not exist".format(self.filename))
         super().__init__(self.filename, True)
 
+    @property
+    def command_packages_list(self):
+        initial_list = self.command_packages.split('|')
+        pkg_list = []
+        for pkg in initial_list:
+            pkg_list.append(pkg.strip())
+        return pkg_list
+
     @property
     def manifest_repo_abs_local_path(self):
         """Provides an absolute path to the manifest repo based on configuration file values."""
diff --git a/edkrepo_installer/Vendor/edkrepo.cfg b/edkrepo_installer/Vendor/edkrepo.cfg
index 08724fd..0312c74 100644
--- a/edkrepo_installer/Vendor/edkrepo.cfg
+++ b/edkrepo_installer/Vendor/edkrepo.cfg
@@ -7,6 +7,12 @@ LocalPath = manifest-master
 minimum = 2.13.0
 recommended = 2.16.2
 
+[command-packages]
+packages = edkrepo.commands
+
+[preferred-command-package]
+preferred-package = edkrepo.commands
+
 [sparsecheckout]
 always_include = BaseTools|Conf|*.*
 always_exclude = 
-- 
2.16.2.windows.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-28 23:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-28 23:22 [edk2-staging/EdkRepo][PATCH 1/3] EdkRepo: Multiple Command Package Configuration Support Desimone, Ashley E
2019-10-28 23:22 ` [edk2-staging/EdkRepo] [PATCH 2/3] EdkRepo: Multiple Command Package Command Factory Update Desimone, Ashley E
2019-10-28 23:47   ` Nate DeSimone
2019-10-28 23:22 ` [edk2-staging/EdkRepo] [PATCH 3/3] EdkRepo: Multiple Command Package Build Script Update Desimone, Ashley E
2019-10-28 23:47   ` [edk2-devel] " Nate DeSimone
2019-10-28 23:47 ` [edk2-devel] [edk2-staging/EdkRepo][PATCH 1/3] EdkRepo: Multiple Command Package Configuration Support Nate DeSimone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox