{"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":"11e0e013ae6d2b4df81273424eaa013c09cbc9b856784bab380065db894e1f89","binutils-cross-arm:do_create_spdx":"ef2db6170fd8bb1374b5443f2a4e4779bd5530daf857459014a7f4da2093cd77","bison-native:do_create_spdx":"c5ff1242c7bb4ae056b45cebfa7ce8f7492bcae203f820359764dfb09c682b79","gcc-cross-arm:do_create_spdx":"98b82fe5aefa5209e4db918c1f893ce8257e53fd3909b52128a3179ce2a61ba2","gmp-native:do_create_spdx":"2a34388bbb405324f541a6e4c4cc94de8ec7ad2699f08228a854ca939d0bed78","kmod-native:do_create_spdx":"f0211b530ec5783010d0c48d2e308a81e23748be121590bc7750a262d949d0bf","libmpc-native:do_create_spdx":"4b1a44afb4fddd4cb0b0ba1464d73fb95a4715e902393d8cb05c5ba733f70fc0","linux-xlnx:do_unpack":"90a417645e61f7ae2c21fcad68164a3f31ca4324a34af0801e56e5e285d737be","openssl-native:do_create_spdx":"e8a54570dae7624528525b0e96e23da82c8c61501d32b13b77981844c9227cc8","pkgconfig-native:do_create_spdx":"1c8eff1d571d52ff2c5e7eeddde93722f14fcc2d373680b81fcf871cf73d495c","u-boot-tools-xlnx-native:do_create_spdx":"86eda0d79e948349211effce571031aa771143c0fb31631c818f5ef6f52fc8af","util-linux-native:do_create_spdx":"486c514e2ae19391a659e1fa066c06e6148fc8399e02a7464364cb54e077623f","xz-native:do_create_spdx":"609122245eb19f4ae4a0eb81c7c04bd154e2fc07497fd2042c613c1f7d058380"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"ce0c1c39bceed8507ed29188766579d4350926f9201b8b584615f3c8f90e7c59","taskhash_ignore_tasks":null,"unihash":"ce0c1c39bceed8507ed29188766579d4350926f9201b8b584615f3c8f90e7c59","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"}}