[oe-commits] org.oe.dev base.bbclass: added support for creating source mirror
hrw commit
openembedded-commits at lists.openembedded.org
Tue Nov 21 19:22:27 UTC 2006
base.bbclass: added support for creating source mirror
- if SOURCE_MIRROR_FETCH variable is set then we ignore
COMPATIBLE_MACHINE/COMPATIBLE_HOST settings to be able to fetch all recipes.
- Fetching sources can be done by setting any MACHINE/DISTRO combination and
SOURCE_MIRROR_FETCH = "1" in configuration. Then one invocation of BitBake
should do all fetching:
bitbake --cmd fetchall --continue world
- scripts to manage source mirror will get added into contrib/
Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: 4ddff6248143a48297190b36c8ec6148bc9301bb
ViewMTN: http://monotone.openembedded.org/revision.psp?id=4ddff6248143a48297190b36c8ec6148bc9301bb
Files:
1
classes/base.bbclass
Diffs:
#
# mt diff -rbf148fe769551a87be09ab90a24300a347b37d79 -r4ddff6248143a48297190b36c8ec6148bc9301bb
#
#
#
# patch "classes/base.bbclass"
# from [987ad70520af63bca099102cee55d1667b171a76]
# to [00a5520a1a9cbd34105ebef900ee1c75afe04ed7]
#
============================================================
--- classes/base.bbclass 987ad70520af63bca099102cee55d1667b171a76
+++ classes/base.bbclass 00a5520a1a9cbd34105ebef900ee1c75afe04ed7
@@ -677,19 +677,21 @@ def base_after_parse_two(d):
def base_after_parse_two(d):
import bb
import exceptions
- need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1)
- if need_host:
- import re
- this_host = bb.data.getVar('HOST_SYS', d, 1)
- if not re.match(need_host, this_host):
- raise bb.parse.SkipPackage("incompatible with host %s" % this_host)
+ source_mirror_fetch = bb.data.getVar('SOURCE_MIRROR_FETCH', d, 0)
+ if not source_mirror_fetch:
+ need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1)
+ if need_host:
+ import re
+ this_host = bb.data.getVar('HOST_SYS', d, 1)
+ if not re.match(need_host, this_host):
+ raise bb.parse.SkipPackage("incompatible with host %s" % this_host)
- need_machine = bb.data.getVar('COMPATIBLE_MACHINE', d, 1)
- if need_machine:
- import re
- this_machine = bb.data.getVar('MACHINE', d, 1)
- if this_machine and not re.match(need_machine, this_machine):
- raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
+ need_machine = bb.data.getVar('COMPATIBLE_MACHINE', d, 1)
+ if need_machine:
+ import re
+ this_machine = bb.data.getVar('MACHINE', d, 1)
+ if this_machine and not re.match(need_machine, this_machine):
+ raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
pn = bb.data.getVar('PN', d, 1)
More information about the Openembedded-commits
mailing list