[TIC-CORE] support caching for analysis data
[archive/20170607/tools/tic-core.git] / tic / parser / recipe_parser.py
index b2f3876..6ddd176 100644 (file)
@@ -34,7 +34,7 @@ def get_default_recipe():
             Baseline= 'tizen-3.0',
             Active= True,
             Mic2Options= '-f raw --fstab=uuid --copy-kernel --compress-disk-image=bz2 --generate-bmap',
-            Part='mobile-mbr',
+            Part='headless',
             Language= 'en_US.UTF-8',
             Keyboard= 'us',
             Timezone= 'Asia/Seoul',
@@ -51,7 +51,7 @@ def get_default_recipe():
             UserGroups= "audio,video"
         ),
         Wayland=dict(
-            Part='mobile-mbr',
+            Part='headless',
             UserGroups='audio,video',
             Groups=[],
             PostScripts=[],
@@ -60,14 +60,14 @@ def get_default_recipe():
         ),
         Configurations=[
             dict(
-                Name='default',
+                Name='tizen-headless',
                 Architecture='armv7l',
                 Schedule= "*",
                 Active= True,
                 Platform= 'Wayland',
-                Part= 'mobile-mbr',
+                Part= 'headless',
                 Mic2Options= '-f loop --pack-to=@NAME@.tar.gz',
-                FileName= 'default',
+                FileName= 'tizen-headless-tm1',
                 Repos=['tizen-unified', 'tizen-base'],
                 Groups=[],
                 ExtraPackages= [],
@@ -83,8 +83,10 @@ def get_default_recipe():
                  Options='--ssl_verify=no')
         ],
         Partitions=[
-            dict(Name='mobile-mbr',
-                 Contents='part / --fstype="ext4" --size=3584 --ondisk=sda --active --label platform --fsoptions=defaults,noatime')
+            dict(Name='headless',
+                 Contents='part / --size=2000 --ondisk mmcblk0p --fstype=ext4 --label=rootfs --extoptions=\"-J size=16\" \n\
+part /opt/ --size=1000 --ondisk mmcblk0p --fstype=ext4 --label=system-data --extoptions="-m 0" \n\
+part /boot/kernel/mod_tizen_tm1/lib/modules --size=12 --ondisk mmcblk0p --fstype=ext4 --label=modules \n')
         ]
     )
     return recipe
@@ -120,14 +122,14 @@ def convert_recipe_to_yaml(recipe, filepath):
     
     # configs.yaml
     with open(yamlinfo.configs, 'w') as outfile:
-        yaml.dump(config, outfile, default_flow_style=False)
+        yaml.safe_dump(config, outfile, default_flow_style=False)
 
     # repo.yaml
     if 'Repositories' in recipe:
         repos = {}
         repos['Repositories'] = recipe['Repositories']
         with open(yamlinfo.repos, 'w') as outfile:
-            yaml.dump(repos, outfile, default_flow_style=False)
+            yaml.safe_dump(repos, outfile, default_flow_style=False)
     
     # partition info
     if 'Partitions' in recipe: