diff options
Diffstat (limited to 'openembedded/classes/base.bbclass')
-rw-r--r-- | openembedded/classes/base.bbclass | 32 |
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 | |||
743 | ftp://ftp.kernel.org/pub ftp://ftp.hk.kernel.org/pub | 771 | ftp://ftp.kernel.org/pub ftp://ftp.hk.kernel.org/pub |
744 | ftp://ftp.kernel.org/pub ftp://ftp.au.kernel.org/pub | 772 | ftp://ftp.kernel.org/pub ftp://ftp.au.kernel.org/pub |
745 | ftp://ftp.kernel.org/pub ftp://ftp.jp.kernel.org/pub | 773 | ftp://ftp.kernel.org/pub ftp://ftp.jp.kernel.org/pub |
774 | ftp://ftp.gnupg.org/gcrypt/ ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/ | ||
775 | ftp://ftp.gnupg.org/gcrypt/ ftp://ftp.surfnet.nl/pub/security/gnupg/ | ||
776 | ftp://ftp.gnupg.org/gcrypt/ http://gulus.USherbrooke.ca/pub/appl/GnuPG/ | ||
777 | |||
746 | ftp://.*/.*/ http://www.oesources.org/source/current/ | 778 | ftp://.*/.*/ http://www.oesources.org/source/current/ |
747 | http://.*/.*/ http://www.oesources.org/source/current/ | 779 | http://.*/.*/ http://www.oesources.org/source/current/ |
748 | } | 780 | } |