提交 f27eb9ea 编写于 作者: H hongguo

split

Signed-off-by: Nhongguo <hongguo5@huawei.com>
上级 e0d0fb4a
......@@ -49,9 +49,19 @@ class Config(metaclass=Singleton):
self._target_cpu = config_content.get('target_cpu', None)
self._target_os = config_content.get('target_os', None)
self._out_path = config_content.get('out_path', None)
self._component_type = config_content.get('component_type', None)
self.fs_attr = set()
self.platform = platform.system()
@property
def component_type(self):
return self._component_type
@component_type.setter
def component_type(self, value):
self._component_type = value
self.config_update('component_type', self._component_type)
@property
def target_os(self):
return self._target_os
......
......@@ -48,7 +48,8 @@ class Product():
'path': product_path,
'version': info.get('version', '3.0'),
'os_level': info.get('type', "mini"),
'config': config_path
'config': config_path,
'component_type': info.get('component_type', '')
}
bip_path = config.built_in_product_path
for item in os.listdir(bip_path):
......@@ -64,7 +65,8 @@ class Product():
'path': bip_path,
'version': info.get('version', '2.0'),
'os_level': info.get('type', 'standard'),
'config': config_path
'config': config_path,
'component_type': info.get('component_type', '')
}
@staticmethod
......
......@@ -71,6 +71,7 @@ def set_product(product_name=None, company=None):
config.version = product_info.get('version')
config.os_level = product_info.get('os_level')
config.product_json = product_info.get('config')
config.component_type = product_info.get('component_type')
device_info = Product.get_device_info(config.product_json)
config.board = device_info.get('board')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册