Advertisement
Guest User

Untitled

a guest
May 6th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.00 KB | None | 0 0
  1. hn@hn-laptop:~/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/build-vab820$ bitbake via-image-x11
  2. ERROR: Error in compiling python function in /home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/meta/classes/base.bbclass:
  3.  
  4. The code lines resulting in this error were:
  5. *** 0001:def __anon_629__home_hn_DATA_hardware_VAB_820_AMOS_820_VAB_820_HMI_SolutionPack_V2_0_1_20150401(Beta_version)_BSP_via_release_bsp_sources_poky_meta_classes_base_bbclass(d):
  6. 0002: import string, re
  7. 0003:
  8. 0004: # Handle PACKAGECONFIG
  9. 0005: #
  10. SyntaxError: invalid syntax (__anon_629__home_hn_DATA_hardware_VAB_820_AMOS_820_VAB_820_HMI_SolutionPack_V2_0_1_20150401(Beta_version)_BSP_via_release_bsp_sources_poky_meta_classes_base_bbclass, line 1)
  11. ERROR: Error parsing configuration files
  12. Traceback (most recent call last):
  13. File "/home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 161, in handle(fn='/home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/meta/classes/base.bbclass', d=<bb.data_smart.DataSmart object at 0x7f064a45f210>, include=True):
  14. try:
  15. > statements.eval(d)
  16. except bb.parse.SkipPackage:
  17. File "/home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/bitbake/lib/bb/parse/ast.py", line 39, in StatementGroup.eval(data=<bb.data_smart.DataSmart object at 0x7f064a45f210>):
  18. for statement in self:
  19. > statement.eval(data)
  20.  
  21. File "/home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/bitbake/lib/bb/parse/ast.py", line 152, in MethodNode.eval(data=<bb.data_smart.DataSmart object at 0x7f064a45f210>):
  22. text = "def %s(d):\n" % (funcname) + text
  23. > bb.methodpool.insert_method(funcname, text, self.filename)
  24. anonfuncs = data.getVar('__BBANONFUNCS') or []
  25. File "/home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/bitbake/lib/bb/methodpool.py", line 27, in insert_method(modulename='__anon_629__home_hn_DATA_hardware_VAB_820_AMOS_820_VAB_820_HMI_SolutionPack_V2_0_1_20150401(Beta_version)_BSP_via_release_bsp_sources_poky_meta_classes_base_bbclass', code='def __anon_629__home_hn_DATA_hardware_VAB_820_AMOS_820_VAB_820_HMI_SolutionPack_V2_0_1_20150401(Beta_version)_BSP_via_release_bsp_sources_poky_meta_classes_base_bbclass(d):\n import string, re\n\n # Handle PACKAGECONFIG\n #\n # These take the form:\n #\n # PACKAGECONFIG ??= "<default options>"\n # PACKAGECONFIG[foo] = "--enable-foo,--disable-foo,foo_depends,foo_runtime_depends"\n pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}\n if pkgconfigflags:\n pkgconfig = (d.getVar(\'PACKAGECONFIG\', True) or "").split()\n pn = d.getVar("PN", True)\n mlprefix = d.getVar("MLPREFIX", True)\n\n def expandFilter(appends, extension, prefix):\n appends = bb.utils.explode_deps(d.expand(" ".join(appends)))\n newappends = []\n for a in appends:\n if a.endswith("-native") or a.endswith("-cross"):\n newappends.append(a)\n elif a.startswith("virtual/"):\n subs = a.split("/", 1)[1]\n newappends.append("virtual/" + prefix + subs + extension)\n else:\n if a.startswith(prefix):\n newappends.append(a + extension)\n else:\n newappends.append(prefix + a + extension)\n return newappends\n\n def appendVar(varname, appends):\n if not appends:\n return\n if varname.find("DEPENDS") != -1:\n if pn.startswith("nativesdk-"):\n appends = expandFilter(appends, "", "nativesdk-")\n if pn.endswith("-native"):\n appends = expandFilter(appends, "-native", "")\n if mlprefix:\n appends = expandFilter(appends, "", mlprefix)\n varname = d.expand(varname)\n d.appendVar(varname, " " + " ".join(appends))\n\n extradeps = []\n extrardeps = []\n extraconf = []\n for flag, flagval in sorted(pkgconfigflags.items()):\n if flag == "defaultval":\n continue\n items = flagval.split(",")\n num = len(items)\n if num > 4:\n bb.error("Only enable,disable,depend,rdepend can be specified!")\n\n if flag in pkgconfig:\n if num >= 3 and items[2]:\n extradeps.append(items[2])\n if num >= 4 and items[3]:\n extrardeps.append(items[3])\n if num >= 1 and items[0]:\n extraconf.append(items[0])\n elif num >= 2 and items[1]:\n extraconf.append(items[1])\n appendVar(\'DEPENDS\', extradeps)\n appendVar(\'RDEPENDS_${PN}\', extrardeps)\n if bb.data.inherits_class(\'cmake\', d):\n appendVar(\'EXTRA_OECMAKE\', extraconf)\n else:\n appendVar(\'EXTRA_OECONF\', extraconf)\n\n # If PRINC is set, try and increase the PR value by the amount specified\n princ = d.getVar(\'PRINC\', True)\n if princ and princ != "0":\n pr = d.getVar(\'PR\', True)\n pr_prefix = re.search("\\D+",pr)\n prval = re.search("\\d+",pr)\n if pr_prefix is None or prval is None:\n bb.error("Unable to analyse format of PR variable: %s" % pr)\n nval = int(prval.group(0)) + int(princ)\n pr = pr_prefix.group(0) + str(nval) + pr[prval.end():]\n d.setVar(\'PR\', pr)\n\n pn = d.getVar(\'PN\', True)\n license = d.getVar(\'LICENSE\', True)\n if license == "INVALID":\n bb.fatal(\'This recipe does not have the LICENSE field set (%s)\' % pn)\n\n if bb.data.inherits_class(\'license\', d):\n unmatched_license_flag = check_license_flags(d)\n if unmatched_license_flag:\n bb.debug(1, "Skipping %s because it has a restricted license not"\n " whitelisted in LICENSE_FLAGS_WHITELIST" % pn)\n raise bb.parse.SkipPackage("because it has a restricted license not"\n " whitelisted in LICENSE_FLAGS_WHITELIST")\n\n # If we\'re building a target package we need to use fakeroot (pseudo)\n # in order to capture permissions, owners, groups and special files\n if not bb.data.inherits_class(\'native\', d) and not bb.data.inherits_class(\'cross\', d):\n d.setVarFlag(\'do_configure\', \'umask\', 022)\n d.setVarFlag(\'do_compile\', \'umask\', 022)\n d.appendVarFlag(\'do_install\', \'depends\', \' virtual/fakeroot-native:do_populate_sysroot\')\n d.setVarFlag(\'do_install\', \'fakeroot\', 1)\n d.setVarFlag(\'do_install\', \'umask\', 022)\n d.appendVarFlag(\'do_package\', \'depends\', \' virtual/fakeroot-native:do_populate_sysroot\')\n d.setVarFlag(\'do_package\', \'fakeroot\', 1)\n d.setVarFlag(\'do_package\', \'umask\', 022)\n d.setVarFlag(\'do_package_setscene\', \'fakeroot\', 1)\n d.appendVarFlag(\'do_package_setscene\', \'depends\', \' virtual/fakeroot-native:do_populate_sysroot\')\n d.setVarFlag(\'do_devshell\', \'fakeroot\', 1)\n d.appendVarFlag(\'do_devshell\', \'depends\', \' virtual/fakeroot-native:do_populate_sysroot\')\n source_mirror_fetch = d.getVar(\'SOURCE_MIRROR_FETCH\', 0)\n if not source_mirror_fetch:\n need_host = d.getVar(\'COMPATIBLE_HOST\', True)\n if need_host:\n import re\n this_host = d.getVar(\'HOST_SYS\', True)\n if not re.match(need_host, this_host):\n raise bb.parse.SkipPackage("incompatible with host %s (not in COMPATIBLE_HOST)" % this_host)\n\n need_machine = d.getVar(\'COMPATIBLE_MACHINE\', True)\n if need_machine:\n import re\n compat_machines = (d.getVar(\'MACHINEOVERRIDES\', True) or "").split(":")\n for m in compat_machines:\n if re.match(need_machine, m):\n break\n else:\n raise bb.parse.SkipPackage("incompatible with machine %s (not in COMPATIBLE_MACHINE)" % d.getVar(\'MACHINE\', True))\n\n\n bad_licenses = (d.getVar(\'INCOMPATIBLE_LICENSE\', True) or "").split()\n\n check_license = False if pn.startswith("nativesdk-") else True\n for t in ["-native", "-cross", "-cross-initial", "-cross-intermediate",\n "-crosssdk-intermediate", "-crosssdk", "-crosssdk-initial",\n "-cross-canadian-" + d.getVar(\'TRANSLATED_TARGET_ARCH\', True)]:\n if pn.endswith(t):\n check_license = False\n\n if check_license and bad_licenses:\n whitelist = []\n for lic in bad_licenses:\n for w in ["HOSTTOOLS_WHITELIST_", "LGPLv2_WHITELIST_", "WHITELIST_"]:\n whitelist.extend((d.getVar(w + lic, True) or "").split())\n spdx_license = return_spdx(d, lic)\n if spdx_license:\n whitelist.extend((d.getVar(\'HOSTTOOLS_WHITELIST_%s\' % spdx_license, True) or "").split())\n if not pn in whitelist:\n recipe_license = d.getVar(\'LICENSE\', True)\n pkgs = d.getVar(\'PACKAGES\', True).split()\n skipped_pkgs = []\n unskipped_pkgs = []\n for pkg in pkgs:\n if incompatible_license(d, bad_licenses, pkg):\n skipped_pkgs.append(pkg)\n else:\n unskipped_pkgs.append(pkg)\n all_skipped = skipped_pkgs and not unskipped_pkgs\n if unskipped_pkgs:\n for pkg in skipped_pkgs:\n bb.debug(1, "SKIPPING the package " + pkg + " at do_rootfs because it\'s " + recipe_license)\n d.setVar(\'LICENSE_EXCLUSION-\' + pkg, 1)\n for pkg in unskipped_pkgs:\n bb.debug(1, "INCLUDING the package " + pkg)\n elif all_skipped or incompatible_license(d, bad_licenses):\n bb.debug(1, "SKIPPING recipe %s because it\'s %s" % (pn, recipe_license))\n raise bb.parse.SkipPackage("incompatible with license %s" % recipe_license)\n\n srcuri = d.getVar(\'SRC_URI\', True)\n # Svn packages should DEPEND on subversion-native\n if "svn://" in srcuri:\n d.appendVarFlag(\'do_fetch\', \'depends\', \' subversion-native:do_populate_sysroot\')\n\n # Git packages should DEPEND on git-native\n if "git://" in srcuri:\n d.appendVarFlag(\'do_fetch\', \'depends\', \' git-native:do_populate_sysroot\')\n\n # Mercurial packages should DEPEND on mercurial-native\n elif "hg://" in srcuri:\n d.appendVarFlag(\'do_fetch\', \'depends\', \' mercurial-native:do_populate_sysroot\')\n\n # OSC packages should DEPEND on osc-native\n elif "osc://" in srcuri:\n d.appendVarFlag(\'do_fetch\', \'depends\', \' osc-native:do_populate_sysroot\')\n\n # *.xz should depends on xz-native for unpacking\n # Not endswith because of "*.patch.xz;patch=1". Need bb.fetch.decodeurl in future\n if \'.xz\' in srcuri:\n d.appendVarFlag(\'do_unpack\', \'depends\', \' xz-native:do_populate_sysroot\')\n\n # unzip-native should already be staged before unpacking ZIP recipes\n if ".zip" in srcuri:\n d.appendVarFlag(\'do_unpack\', \'depends\', \' unzip-native:do_populate_sysroot\')\n\n set_packagetriplet(d)\n\n # \'multimachine\' handling\n mach_arch = d.getVar(\'MACHINE_ARCH\', True)\n pkg_arch = d.getVar(\'PACKAGE_ARCH\', True)\n\n if (pkg_arch == mach_arch):\n # Already machine specific - nothing further to do\n return\n\n #\n # We always try to scan SRC_URI for urls with machine overrides\n # unless the package sets SRC_URI_OVERRIDES_PACKAGE_ARCH=0\n #\n override = d.getVar(\'SRC_URI_OVERRIDES_PACKAGE_ARCH\', True)\n if override != \'0\':\n paths = []\n fpaths = (d.getVar(\'FILESPATH\', True) or \'\').split(\':\')\n machine = d.getVar(\'MACHINE\', True)\n for p in fpaths:\n if os.path.basename(p) == machine and os.path.isdir(p):\n paths.append(p)\n\n if len(paths) != 0:\n for s in srcuri.split():\n if not s.startswith("file://"):\n continue\n fetcher = bb.fetch2.Fetch([s], d)\n local = fetcher.localpath(s)\n for mp in paths:\n if local.startswith(mp):\n #bb.note("overriding PACKAGE_ARCH from %s to %s for %s" % (pkg_arch, mach_arch, pn))\n d.setVar(\'PACKAGE_ARCH\', "${MACHINE_ARCH}")\n return\n\n packages = d.getVar(\'PACKAGES\', True).split()\n for pkg in packages:\n pkgarch = d.getVar("PACKAGE_ARCH_%s" % pkg, True)\n\n # We could look for != PACKAGE_ARCH here but how to choose\n # if multiple differences are present?\n # Look through PACKAGE_ARCHS for the priority order?\n if pkgarch and pkgarch == mach_arch:\n d.setVar(\'PACKAGE_ARCH\', "${MACHINE_ARCH}")\n bb.warn("Recipe %s is marked as only being architecture specific but seems to have machine specific packages?! The recipe may as well mark itself as machine specific directly." % d.getVar("PN", True))\n', fn='/home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/meta/classes/base.bbclass'):
  26. """
  27. > comp = better_compile(code, modulename, fn )
  28. better_exec(comp, None, code, fn)
  29. File "/home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/bitbake/lib/bb/utils.py", line 288, in better_compile(text='def __anon_629__home_hn_DATA_hardware_VAB_820_AMOS_820_VAB_820_HMI_SolutionPack_V2_0_1_20150401(Beta_version)_BSP_via_release_bsp_sources_poky_meta_classes_base_bbclass(d):\n import string, re\n\n # Handle PACKAGECONFIG\n #\n # These take the form:\n #\n # PACKAGECONFIG ??= "<default options>"\n # PACKAGECONFIG[foo] = "--enable-foo,--disable-foo,foo_depends,foo_runtime_depends"\n pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}\n if pkgconfigflags:\n pkgconfig = (d.getVar(\'PACKAGECONFIG\', True) or "").split()\n pn = d.getVar("PN", True)\n mlprefix = d.getVar("MLPREFIX", True)\n\n def expandFilter(appends, extension, prefix):\n appends = bb.utils.explode_deps(d.expand(" ".join(appends)))\n newappends = []\n for a in appends:\n if a.endswith("-native") or a.endswith("-cross"):\n newappends.append(a)\n elif a.startswith("virtual/"):\n subs = a.split("/", 1)[1]\n newappends.append("virtual/" + prefix + subs + extension)\n else:\n if a.startswith(prefix):\n newappends.append(a + extension)\n else:\n newappends.append(prefix + a + extension)\n return newappends\n\n def appendVar(varname, appends):\n if not appends:\n return\n if varname.find("DEPENDS") != -1:\n if pn.startswith("nativesdk-"):\n appends = expandFilter(appends, "", "nativesdk-")\n if pn.endswith("-native"):\n appends = expandFilter(appends, "-native", "")\n if mlprefix:\n appends = expandFilter(appends, "", mlprefix)\n varname = d.expand(varname)\n d.appendVar(varname, " " + " ".join(appends))\n\n extradeps = []\n extrardeps = []\n extraconf = []\n for flag, flagval in sorted(pkgconfigflags.items()):\n if flag == "defaultval":\n continue\n items = flagval.split(",")\n num = len(items)\n if num > 4:\n bb.error("Only enable,disable,depend,rdepend can be specified!")\n\n if flag in pkgconfig:\n if num >= 3 and items[2]:\n extradeps.append(items[2])\n if num >= 4 and items[3]:\n extrardeps.append(items[3])\n if num >= 1 and items[0]:\n extraconf.append(items[0])\n elif num >= 2 and items[1]:\n extraconf.append(items[1])\n appendVar(\'DEPENDS\', extradeps)\n appendVar(\'RDEPENDS_${PN}\', extrardeps)\n if bb.data.inherits_class(\'cmake\', d):\n appendVar(\'EXTRA_OECMAKE\', extraconf)\n else:\n appendVar(\'EXTRA_OECONF\', extraconf)\n\n # If PRINC is set, try and increase the PR value by the amount specified\n princ = d.getVar(\'PRINC\', True)\n if princ and princ != "0":\n pr = d.getVar(\'PR\', True)\n pr_prefix = re.search("\\D+",pr)\n prval = re.search("\\d+",pr)\n if pr_prefix is None or prval is None:\n bb.error("Unable to analyse format of PR variable: %s" % pr)\n nval = int(prval.group(0)) + int(princ)\n pr = pr_prefix.group(0) + str(nval) + pr[prval.end():]\n d.setVar(\'PR\', pr)\n\n pn = d.getVar(\'PN\', True)\n license = d.getVar(\'LICENSE\', True)\n if license == "INVALID":\n bb.fatal(\'This recipe does not have the LICENSE field set (%s)\' % pn)\n\n if bb.data.inherits_class(\'license\', d):\n unmatched_license_flag = check_license_flags(d)\n if unmatched_license_flag:\n bb.debug(1, "Skipping %s because it has a restricted license not"\n " whitelisted in LICENSE_FLAGS_WHITELIST" % pn)\n raise bb.parse.SkipPackage("because it has a restricted license not"\n " whitelisted in LICENSE_FLAGS_WHITELIST")\n\n # If we\'re building a target package we need to use fakeroot (pseudo)\n # in order to capture permissions, owners, groups and special files\n if not bb.data.inherits_class(\'native\', d) and not bb.data.inherits_class(\'cross\', d):\n d.setVarFlag(\'do_configure\', \'umask\', 022)\n d.setVarFlag(\'do_compile\', \'umask\', 022)\n d.appendVarFlag(\'do_install\', \'depends\', \' virtual/fakeroot-native:do_populate_sysroot\')\n d.setVarFlag(\'do_install\', \'fakeroot\', 1)\n d.setVarFlag(\'do_install\', \'umask\', 022)\n d.appendVarFlag(\'do_package\', \'depends\', \' virtual/fakeroot-native:do_populate_sysroot\')\n d.setVarFlag(\'do_package\', \'fakeroot\', 1)\n d.setVarFlag(\'do_package\', \'umask\', 022)\n d.setVarFlag(\'do_package_setscene\', \'fakeroot\', 1)\n d.appendVarFlag(\'do_package_setscene\', \'depends\', \' virtual/fakeroot-native:do_populate_sysroot\')\n d.setVarFlag(\'do_devshell\', \'fakeroot\', 1)\n d.appendVarFlag(\'do_devshell\', \'depends\', \' virtual/fakeroot-native:do_populate_sysroot\')\n source_mirror_fetch = d.getVar(\'SOURCE_MIRROR_FETCH\', 0)\n if not source_mirror_fetch:\n need_host = d.getVar(\'COMPATIBLE_HOST\', True)\n if need_host:\n import re\n this_host = d.getVar(\'HOST_SYS\', True)\n if not re.match(need_host, this_host):\n raise bb.parse.SkipPackage("incompatible with host %s (not in COMPATIBLE_HOST)" % this_host)\n\n need_machine = d.getVar(\'COMPATIBLE_MACHINE\', True)\n if need_machine:\n import re\n compat_machines = (d.getVar(\'MACHINEOVERRIDES\', True) or "").split(":")\n for m in compat_machines:\n if re.match(need_machine, m):\n break\n else:\n raise bb.parse.SkipPackage("incompatible with machine %s (not in COMPATIBLE_MACHINE)" % d.getVar(\'MACHINE\', True))\n\n\n bad_licenses = (d.getVar(\'INCOMPATIBLE_LICENSE\', True) or "").split()\n\n check_license = False if pn.startswith("nativesdk-") else True\n for t in ["-native", "-cross", "-cross-initial", "-cross-intermediate",\n "-crosssdk-intermediate", "-crosssdk", "-crosssdk-initial",\n "-cross-canadian-" + d.getVar(\'TRANSLATED_TARGET_ARCH\', True)]:\n if pn.endswith(t):\n check_license = False\n\n if check_license and bad_licenses:\n whitelist = []\n for lic in bad_licenses:\n for w in ["HOSTTOOLS_WHITELIST_", "LGPLv2_WHITELIST_", "WHITELIST_"]:\n whitelist.extend((d.getVar(w + lic, True) or "").split())\n spdx_license = return_spdx(d, lic)\n if spdx_license:\n whitelist.extend((d.getVar(\'HOSTTOOLS_WHITELIST_%s\' % spdx_license, True) or "").split())\n if not pn in whitelist:\n recipe_license = d.getVar(\'LICENSE\', True)\n pkgs = d.getVar(\'PACKAGES\', True).split()\n skipped_pkgs = []\n unskipped_pkgs = []\n for pkg in pkgs:\n if incompatible_license(d, bad_licenses, pkg):\n skipped_pkgs.append(pkg)\n else:\n unskipped_pkgs.append(pkg)\n all_skipped = skipped_pkgs and not unskipped_pkgs\n if unskipped_pkgs:\n for pkg in skipped_pkgs:\n bb.debug(1, "SKIPPING the package " + pkg + " at do_rootfs because it\'s " + recipe_license)\n d.setVar(\'LICENSE_EXCLUSION-\' + pkg, 1)\n for pkg in unskipped_pkgs:\n bb.debug(1, "INCLUDING the package " + pkg)\n elif all_skipped or incompatible_license(d, bad_licenses):\n bb.debug(1, "SKIPPING recipe %s because it\'s %s" % (pn, recipe_license))\n raise bb.parse.SkipPackage("incompatible with license %s" % recipe_license)\n\n srcuri = d.getVar(\'SRC_URI\', True)\n # Svn packages should DEPEND on subversion-native\n if "svn://" in srcuri:\n d.appendVarFlag(\'do_fetch\', \'depends\', \' subversion-native:do_populate_sysroot\')\n\n # Git packages should DEPEND on git-native\n if "git://" in srcuri:\n d.appendVarFlag(\'do_fetch\', \'depends\', \' git-native:do_populate_sysroot\')\n\n # Mercurial packages should DEPEND on mercurial-native\n elif "hg://" in srcuri:\n d.appendVarFlag(\'do_fetch\', \'depends\', \' mercurial-native:do_populate_sysroot\')\n\n # OSC packages should DEPEND on osc-native\n elif "osc://" in srcuri:\n d.appendVarFlag(\'do_fetch\', \'depends\', \' osc-native:do_populate_sysroot\')\n\n # *.xz should depends on xz-native for unpacking\n # Not endswith because of "*.patch.xz;patch=1". Need bb.fetch.decodeurl in future\n if \'.xz\' in srcuri:\n d.appendVarFlag(\'do_unpack\', \'depends\', \' xz-native:do_populate_sysroot\')\n\n # unzip-native should already be staged before unpacking ZIP recipes\n if ".zip" in srcuri:\n d.appendVarFlag(\'do_unpack\', \'depends\', \' unzip-native:do_populate_sysroot\')\n\n set_packagetriplet(d)\n\n # \'multimachine\' handling\n mach_arch = d.getVar(\'MACHINE_ARCH\', True)\n pkg_arch = d.getVar(\'PACKAGE_ARCH\', True)\n\n if (pkg_arch == mach_arch):\n # Already machine specific - nothing further to do\n return\n\n #\n # We always try to scan SRC_URI for urls with machine overrides\n # unless the package sets SRC_URI_OVERRIDES_PACKAGE_ARCH=0\n #\n override = d.getVar(\'SRC_URI_OVERRIDES_PACKAGE_ARCH\', True)\n if override != \'0\':\n paths = []\n fpaths = (d.getVar(\'FILESPATH\', True) or \'\').split(\':\')\n machine = d.getVar(\'MACHINE\', True)\n for p in fpaths:\n if os.path.basename(p) == machine and os.path.isdir(p):\n paths.append(p)\n\n if len(paths) != 0:\n for s in srcuri.split():\n if not s.startswith("file://"):\n continue\n fetcher = bb.fetch2.Fetch([s], d)\n local = fetcher.localpath(s)\n for mp in paths:\n if local.startswith(mp):\n #bb.note("overriding PACKAGE_ARCH from %s to %s for %s" % (pkg_arch, mach_arch, pn))\n d.setVar(\'PACKAGE_ARCH\', "${MACHINE_ARCH}")\n return\n\n packages = d.getVar(\'PACKAGES\', True).split()\n for pkg in packages:\n pkgarch = d.getVar("PACKAGE_ARCH_%s" % pkg, True)\n\n # We could look for != PACKAGE_ARCH here but how to choose\n # if multiple differences are present?\n # Look through PACKAGE_ARCHS for the priority order?\n if pkgarch and pkgarch == mach_arch:\n d.setVar(\'PACKAGE_ARCH\', "${MACHINE_ARCH}")\n bb.warn("Recipe %s is marked as only being architecture specific but seems to have machine specific packages?! The recipe may as well mark itself as machine specific directly." % d.getVar("PN", True))\n', file='__anon_629__home_hn_DATA_hardware_VAB_820_AMOS_820_VAB_820_HMI_SolutionPack_V2_0_1_20150401(Beta_version)_BSP_via_release_bsp_sources_poky_meta_classes_base_bbclass', realfile='/home/hn/DATA/hardware/VAB-820/AMOS-820_VAB-820_HMI_SolutionPack_V2.0.1_20150401(Beta_version)/BSP/via-release-bsp/sources/poky/meta/classes/base.bbclass', mode='exec'):
  30. e = bb.BBHandledException(e)
  31. > raise e
  32.  
  33. BBHandledException: invalid syntax (__anon_629__home_hn_DATA_hardware_VAB_820_AMOS_820_VAB_820_HMI_SolutionPack_V2_0_1_20150401(Beta_version)_BSP_via_release_bsp_sources_poky_meta_classes_base_bbclass, line 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement