summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-05-04 16:27:18 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2016-06-13 13:06:46 +0200
commit9346d88bbefda2606ee513f2cee31e4859993277 (patch)
tree4b1e3d84fbfdf5b5e84409f18512bec43575f495 /tsp/scripts
parent3d69e0d9e1c3fb8c4f3f5505f7f62900628e0591 (diff)
downloadmajor-9346d88bbefda2606ee513f2cee31e4859993277.tar.gz
major-9346d88bbefda2606ee513f2cee31e4859993277.tar.bz2
major-9346d88bbefda2606ee513f2cee31e4859993277.zip
Add function to create project.conf
Change-Id: I783eb585cf9cc593237c8c4c747ffa4072668fa9 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/download_image.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tsp/scripts/download_image.py b/tsp/scripts/download_image.py
index 3bd701a..3e89faa 100755
--- a/tsp/scripts/download_image.py
+++ b/tsp/scripts/download_image.py
@@ -26,7 +26,7 @@ import re
import urllib2
import argparse
-__version__ = "0.0.1"
+__version__ = "0.1.1"
__license__ = "APACHE-2.0"
__author__ = "Aleksander Mistewicz"
__author_email__ = "a.mistewicz@samsung.com"
@@ -100,6 +100,12 @@ class ImageDownloader:
print self.odroid_boot_path
print self.odroid_usr_path
+ def create_projectconf(self, filename, arch, target):
+ print "Create project.conf file for: " + arch + ' ' + target
+ prjconf = [ "tizen-common_" + self.snap_nr + '.' + self.pre_nr, arch, target ]
+ with open(filename, 'w') as f:
+ f.write('\n'.join(prjconf) + '\n')
+
def extract_nr(self):
print "Extracting url: " + self.url
nr = re.findall(r'\d{8}\.\d+', self.url)
@@ -155,6 +161,7 @@ class ImageDownloader:
def odroid(self):
print "Downloading images for: odroid"
+ self.create_projectconf("project-odroid.conf", "armv7l", "Odroid U3")
if not self.check_diff("diff-odroid.report", self.fetch_url(self.odroid_usr_path + ".packages"), \
self.fetch_url(self.odroid_snap_pkgs)):
print "Downloading images..."
@@ -163,6 +170,7 @@ class ImageDownloader:
def minnow(self):
print "Downloading images for: minnowboard"
+ self.create_projectconf("project-minnow.conf", "i586/x86_64", "MinnowboardMax")
if not self.check_diff("diff-minnow.report", self.fetch_url(self.minnow_usr_path + ".packages"), \
self.fetch_url(self.minnow_snap_pkgs)):
print "Downloading images..."