summaryrefslogtreecommitdiffstats
path: root/openembedded/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/classes/base.bbclass')
-rw-r--r--openembedded/classes/base.bbclass32
1 files changed, 32 insertions, 0 deletions
diff --git a/openembedded/classes/base.bbclass b/openembedded/classes/base.bbclass
index 1b31d43450..673e2f0548 100644
--- a/openembedded/classes/base.bbclass
+++ b/openembedded/classes/base.bbclass
@@ -475,6 +475,34 @@ python base_do_patch() {
475 else: 475 else:
476 pname = os.path.basename(unpacked) 476 pname = os.path.basename(unpacked)
477 477
478 if "mindate" in parm:
479 mindate = parm["mindate"]
480 else:
481 mindate = 0
482
483 if "maxdate" in parm:
484 maxdate = parm["maxdate"]
485 else:
486 maxdate = "20711226"
487
488 pn = bb.data.getVar('PN', d, 1)
489 srcdate = bb.data.getVar('SRCDATE_%s' % pn, d, 1)
490
491 if not srcdate:
492 srcdate = bb.data.getVar('SRCDATE', d, 1)
493
494 if srcdate == "now":
495 srcdate = bb.data.getVar('DATE', d, 1)
496
497 if (maxdate < srcdate) or (mindate > srcdate):
498 if (maxdate < srcdate):
499 bb.note("Patch '%s' is outdated" % pname)
500
501 if (mindate > srcdate):
502 bb.note("Patch '%s' is predated" % pname)
503
504 continue
505
478 bb.note("Applying patch '%s'" % pname) 506 bb.note("Applying patch '%s'" % pname)
479 bb.data.setVar("do_patchcmd", bb.data.getVar("PATCHCMD", d, 1) % (pnum, pname, unpacked), d) 507 bb.data.setVar("do_patchcmd", bb.data.getVar("PATCHCMD", d, 1) % (pnum, pname, unpacked), d)
480 bb.data.setVarFlag("do_patchcmd", "func", 1, d) 508 bb.data.setVarFlag("do_patchcmd", "func", 1, d)
@@ -743,6 +771,10 @@ ftp://ftp.kernel.org/pub ftp://ftp.uk.kernel.org/pub
743ftp://ftp.kernel.org/pub ftp://ftp.hk.kernel.org/pub 771ftp://ftp.kernel.org/pub ftp://ftp.hk.kernel.org/pub
744ftp://ftp.kernel.org/pub ftp://ftp.au.kernel.org/pub 772ftp://ftp.kernel.org/pub ftp://ftp.au.kernel.org/pub
745ftp://ftp.kernel.org/pub ftp://ftp.jp.kernel.org/pub 773ftp://ftp.kernel.org/pub ftp://ftp.jp.kernel.org/pub
774ftp://ftp.gnupg.org/gcrypt/ ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/
775ftp://ftp.gnupg.org/gcrypt/ ftp://ftp.surfnet.nl/pub/security/gnupg/
776ftp://ftp.gnupg.org/gcrypt/ http://gulus.USherbrooke.ca/pub/appl/GnuPG/
777
746ftp://.*/.*/ http://www.oesources.org/source/current/ 778ftp://.*/.*/ http://www.oesources.org/source/current/
747http://.*/.*/ http://www.oesources.org/source/current/ 779http://.*/.*/ http://www.oesources.org/source/current/
748} 780}