diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.bbclass | 8 | ||||
-rw-r--r-- | classes/kernel.bbclass | 18 | ||||
-rw-r--r-- | classes/tinderclient.bbclass | 30 | ||||
-rw-r--r-- | classes/xlibs.bbclass | 2 |
4 files changed, 40 insertions, 18 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index 9b87828594..21feaab6e6 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -371,7 +371,11 @@ def oe_unpack_file(file, data, url = None): elif file.endswith('.bz2'): cmd = 'bzip2 -dc %s > %s' % (file, efile) elif file.endswith('.zip'): - cmd = 'unzip -q %s' % file + cmd = 'unzip -q' + (type, host, path, user, pswd, parm) = bb.decodeurl(url) + if 'dos' in parm: + cmd = '%s -a' % cmd + cmd = '%s %s' % (cmd, file) elif os.path.isdir(file): filesdir = os.path.realpath(bb.data.getVar("FILESDIR", data, 1)) destdir = "." @@ -449,7 +453,7 @@ python base_do_patch() { if not "patch" in parm: continue - bb.fetch.init([url], d) + bb.fetch.init([url],d) url = bb.encodeurl((type, host, path, user, pswd, [])) local = os.path.join('/', bb.fetch.localpath(url, d)) diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index c913a5c38d..471acd4a61 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -391,9 +391,16 @@ python populate_packages_prepend () { v = bb.data.getVar("PARALLEL_INSTALL_MODULES", d, 1) or "0" if v == "1": kv = bb.data.getVar("KERNEL_MAJOR_VERSION", d, 1) - packages = bb.data.getVar("PACKAGES", d, 1) + packages = bb.data.getVar("PACKAGES", d, 1).split() module_re = re.compile("^kernel-module-") - for p in packages.split(): + + newmetapkg = "kernel-modules-%s" % kv + bb.data.setVar('ALLOW_EMPTY_' + newmetapkg, "1", d) + bb.data.setVar('FILES_' + newmetapkg, "", d) + + newmetapkg_rdepends = [] + + for p in packages: if not module_re.match(p): continue pkg = bb.data.getVar("PKG_%s" % p, d, 1) or p @@ -405,4 +412,11 @@ python populate_packages_prepend () { else: rprovides = pkg bb.data.setVar("RPROVIDES_%s" % p, rprovides, d) + newmetapkg_rdepends.append(newpkg) + + bb.data.setVar('RDEPENDS_' + newmetapkg, ' '.join(newmetapkg_rdepends), d) + bb.data.setVar('DESCRIPTION_' + newmetapkg, 'Kernel modules meta package', d) + packages.append(newmetapkg) + bb.data.setVar('PACKAGES', ' '.join(packages), d) + } diff --git a/classes/tinderclient.bbclass b/classes/tinderclient.bbclass index d01bce1fcf..1c6a6c497f 100644 --- a/classes/tinderclient.bbclass +++ b/classes/tinderclient.bbclass @@ -84,7 +84,7 @@ def tinder_build_start(d): selector = url + "/xml/build_start.pl" - print "selector %s and url %s" % (selector, url) + #print "selector %s and url %s" % (selector, url) # now post it h = httplib.HTTP(server) @@ -94,7 +94,7 @@ def tinder_build_start(d): h.endheaders() h.send(body) errcode, errmsg, headers = h.getreply() - print errcode, errmsg, headers + #print errcode, errmsg, headers report = h.file.read() # now let us find the machine id that was assigned to us @@ -134,8 +134,8 @@ def tinder_send_http(d, status, log): h.endheaders() h.send(body) errcode, errmsg, headers = h.getreply() - print errcode, errmsg, headers - print h.file.read() + #print errcode, errmsg, headers + #print h.file.read() def tinder_print_info(d): @@ -161,6 +161,7 @@ def tinder_print_info(d): bbfiles = data.getVar( 'BBFILES', d, True ) tarch = data.getVar( 'TARGET_ARCH', d, True ) fpu = data.getVar( 'TARGET_FPU', d, True ) + oerev = data.getVar( 'OE_REVISION', d, True ) or "unknown" # there is a bug with tipple quoted strings # i will work around but will fix the original @@ -184,6 +185,7 @@ def tinder_print_info(d): output.append("MACHINE = '%(machine)s'" ) output.append("DISTRO = '%(distro)s'" ) output.append("BBFILES = '%(bbfiles)s'" ) + output.append("OEREV = '%(oerev)s'" ) output.append("== End Tinderbox Client Info" ) # now create the real output @@ -219,14 +221,15 @@ def tinder_tinder_start(d): time_start = tinder_time_string() config = tinder_print_info(d) - env = tinder_print_env() + #env = tinder_print_env() time_end = tinder_time_string() output = [] output.append( "---> TINDERBOX PRINTING CONFIGURATION %(time_start)s" ) output.append( config ) - output.append( env ) + #output.append( env ) output.append( "<--- TINDERBOX FINISHED PRINTING CONFIGURATION %(time_end)s" ) + output.append( "" ) return "\n".join(output) % vars() def tinder_do_tinder_report(event): @@ -270,23 +273,24 @@ def tinder_do_tinder_report(event): if len(log_file) != 0: to_file = data.getVar('TINDER_LOG', event.data, True) - log = open(log_file[0], 'r').readlines() + log += "".join(open(log_file[0], 'r').readlines()) # set the right 'HEADER'/Summary for the TinderBox if name == "TaskStarted": - log += "--> TINDERBOX Task %s started" % event.task + log += "---> TINDERBOX Task %s started\n" % event.task elif name == "TaskSucceeded": - log += "<-- TINDERBOX Task %s done (SUCCESS)" % event.task + log += "<--- TINDERBOX Task %s done (SUCCESS)\n" % event.task elif name == "TaskFailed": - log += "<-- TINDERBOX Task %s failed (FAILURE)" % event.task + log += "<--- TINDERBOX Task %s failed (FAILURE)\n" % event.task elif name == "PkgStarted": - log += "--> TINDERBOX Package %s started" % data.getVar('P', event.data, True) + log += "---> TINDERBOX Package %s started\n" % data.getVar('P', event.data, True) elif name == "PkgSucceeded": - log += "<-- TINDERBOX Package %s done (SUCCESS)" % data.getVar('P', event.data, True) + log += "<--- TINDERBOX Package %s done (SUCCESS)\n" % data.getVar('P', event.data, True) elif name == "PkgFailed": - log += "<-- TINDERBOX Package %s failed (FAILURE)" % data.getVar('P', event.data, True) + log += "<--- TINDERBOX Package %s failed (FAILURE)\n" % data.getVar('P', event.data, True) status = 200 elif name == "BuildCompleted": + log += "Build Completed\n" status = 100 # now post the log diff --git a/classes/xlibs.bbclass b/classes/xlibs.bbclass index f9a1195663..e797748770 100644 --- a/classes/xlibs.bbclass +++ b/classes/xlibs.bbclass @@ -1,7 +1,7 @@ LICENSE= "BSD-X" SECTION = "x11/libs" -XLIBS_CVS = "cvs://anoncvs:anoncvs@pdx.freedesktop.org/cvs/xlibs" +XLIBS_CVS = "${FREEDESKTOP_CVS}/xlibs" inherit autotools pkgconfig |