{"basehash":"9704aa2807dfa71d7ea124c8c00b9342bc4822ffccce73b68c0b47be6f63790f","basehash_ignore_vars":{"_set_object":["BBPATH","BBSERVER","BB_CURRENTTASK","BB_HASHSERVE","BB_LIMITEDDEPS","BB_TASKHASH","BB_UNIHASH","BB_WORKERCONTEXT","BUILDHISTORY_DIR","BUILD_ARCH","CCACHE","CCACHE_DIR","CCACHE_NOHASHDIR","CCACHE_TOP_DIR","COREBASE","DEPLOY_DIR","DL_DIR","EXTERNAL_TOOLCHAIN","FILE","FILESEXTRAPATHS","FILESPATH","FILE_DIRNAME","GIT_CEILING_DIRECTORIES","HOME","LICENSE_PATH","LOGNAME","OMP_NUM_THREADS","PARALLEL_MAKE","PATH","PKGDATA_DIR","PLNX_SCRIPTS_PATH","PRSERV_DUMPDIR","PRSERV_DUMPFILE","PRSERV_HOST","PRSERV_LOCKDOWN","PSEUDO_IGNORE_PATHS","PWD","RUST_BUILD_SYS","RUST_HOST_SYS","RUST_TARGET_SYS","SDKPKGSUFFIX","SHELL","SOURCE_DATE_EPOCH","SSTATE_DIR","SSTATE_HASHEQUIV_METHOD","SSTATE_HASHEQUIV_OWNER","SSTATE_HASHEQUIV_REPORT_TASKDATA","SSTATE_PKGARCH","STAGING_DIR_HOST","STAGING_DIR_TARGET","STAMPCLEAN","STAMPS_DIR","THISDIR","TMPDIR","USER","WARN_QA","WORKDIR","extend_recipe_sysroot"]},"file_checksum_values":[],"gendeps":{"DEPENDS":{"_set_object":[]},"PN":{"_set_object":[]},"SPDXDEPS":{"_set_object":["SPDXDIR"]},"SPDXDIR":{"_set_object":[]},"collect_direct_deps":{"_set_object":["DEPENDS","PN"]}},"runtaskdeps":["bc-native:do_create_spdx","binutils-cross-arm:do_create_spdx","bison-native:do_create_spdx","gcc-cross-arm:do_create_spdx","gmp-native:do_create_spdx","kmod-native:do_create_spdx","libmpc-native:do_create_spdx","linux-xlnx:do_unpack","openssl-native:do_create_spdx","pkgconfig-native:do_create_spdx","u-boot-tools-xlnx-native:do_create_spdx","util-linux-native:do_create_spdx","xz-native:do_create_spdx"],"runtaskhashes":{"bc-native:do_create_spdx":"c838357b7cfb29d713c5114b95a48f4555ff59771b7831aa0aa1a95a701836cb","binutils-cross-arm:do_create_spdx":"5c87f43da9354d373658d7eac341983f8fbef9b3db1e170f8866f17dff6fd413","bison-native:do_create_spdx":"500ffb9f71057664d0667d9f4c9c47c322d4b26302e551474c7f90649dddbd5d","gcc-cross-arm:do_create_spdx":"e6f4d15448c332f3f1ec75d756e6e38cd407ba3cbacc2be79fc50200e2731a0d","gmp-native:do_create_spdx":"8bdcb9cff988233b1915c2e21b21d24e479ac03aba59f387543af7a2c6ef8778","kmod-native:do_create_spdx":"8013ab6b808524dca27e6c0e0bbfad58e4ba6e6797087338f2a5f74eaede519c","libmpc-native:do_create_spdx":"094bc112edb953976f23a90be2342dfbdfccf4d9e14f9a7f2cbcc295eb75a2c9","linux-xlnx:do_unpack":"4b08e562dcd8e91977425bcc961b315e884eca5c9f0b60f76ff5abcc82df06c7","openssl-native:do_create_spdx":"33c91f10bce47509031e4b16571e269c48a865655dc7030b90d28338a6ea5c4c","pkgconfig-native:do_create_spdx":"580eff58810cdc32e50e21ef0c491c354939b86a71870aa6e1e97af440b424e7","u-boot-tools-xlnx-native:do_create_spdx":"959624367c93671bc847fbda4435c1491320152bbc6eccb34033497498b61f20","util-linux-native:do_create_spdx":"e1bd05ca480ca62568e6b7df30fe3ed9906613bed6f5cead52420d3d4b82a6d9","xz-native:do_create_spdx":"9fc3c4d5ea43bb9657d2f198b2d5ee707fe426267f9c474e0e2dbf3ec88c7331"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"63188452ff5a2f2eb3facf5c27d61088c4246ed118d3c3a7fdd8da07c51554d2","taskhash_ignore_tasks":null,"unihash":"63188452ff5a2f2eb3facf5c27d61088c4246ed118d3c3a7fdd8da07c51554d2","varvals":{"DEPENDS":"pkgconfig-native   xz-native bc-native virtual/arm-amd-linux-gnueabi-binutils virtual/arm-amd-linux-gnueabi-gcc kmod-native bc-native bison-native     openssl-native util-linux-native gmp-native libmpc-native u-boot-tools-native","PN":"${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}","SPDXDEPS":"${SPDXDIR}/deps.json","SPDXDIR":"${WORKDIR}/spdx","collect_direct_deps":"def collect_direct_deps(d, dep_task):\n    current_task = \"do_\" + d.getVar(\"BB_CURRENTTASK\")\n    pn = d.getVar(\"PN\")\n\n    taskdepdata = d.getVar(\"BB_TASKDEPDATA\", False)\n\n    for this_dep in taskdepdata.values():\n        if this_dep[0] == pn and this_dep[1] == current_task:\n            break\n    else:\n        bb.fatal(f\"Unable to find this {pn}:{current_task} in taskdepdata\")\n\n    deps = set()\n    for dep_name in this_dep[3]:\n        dep_data = taskdepdata[dep_name]\n        if dep_data[1] == dep_task and dep_data[0] != pn:\n            deps.add((dep_data[0], dep_data[7]))\n\n    return sorted(deps)\n","do_collect_spdx_deps":"    # This task calculates the build time dependencies of the recipe, and is\n    # required because while a task can deptask on itself, those dependencies\n    # do not show up in BB_TASKDEPDATA. To work around that, this task does the\n    # deptask on do_create_spdx and writes out the dependencies it finds, then\n    # do_create_spdx reads in the found dependencies when writing the actual\n    # SPDX document\n    import json\n    from pathlib import Path\n\n    spdx_deps_file = Path(d.getVar(\"SPDXDEPS\"))\n\n    deps = collect_direct_deps(d, \"do_create_spdx\")\n\n    with spdx_deps_file.open(\"w\") as f:\n        json.dump(deps, f)\n"}}