{"basehash":"eb3215dbf25e9db3787dbbb476a9ad2e5a304012b2735698e0d1438df5d972b4","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","bison-native:do_create_spdx","dtc-native:do_create_spdx","flex-native:do_create_spdx","gnutls-native:do_create_spdx","openssl-native:do_create_spdx","pkgconfig-native:do_create_spdx","python3-native:do_create_spdx","python3-setuptools-native:do_create_spdx","swig-native:do_create_spdx","u-boot-tools-xlnx-native:do_unpack","util-linux-native:do_create_spdx"],"runtaskhashes":{"bc-native:do_create_spdx":"c838357b7cfb29d713c5114b95a48f4555ff59771b7831aa0aa1a95a701836cb","bison-native:do_create_spdx":"500ffb9f71057664d0667d9f4c9c47c322d4b26302e551474c7f90649dddbd5d","dtc-native:do_create_spdx":"f69b825d8e9e3de258c76309bb84fe68817babb05fc5c5e3224cafe1f9385908","flex-native:do_create_spdx":"e464c54a1153b541bcfe0560c2167865f127fc90017350d7092d8ef3c4fcf081","gnutls-native:do_create_spdx":"ad5a65e70f386ef2e77e90cd766cc50be4a99e4ffd47ab0fa565c6b0bbbd3f1f","openssl-native:do_create_spdx":"33c91f10bce47509031e4b16571e269c48a865655dc7030b90d28338a6ea5c4c","pkgconfig-native:do_create_spdx":"580eff58810cdc32e50e21ef0c491c354939b86a71870aa6e1e97af440b424e7","python3-native:do_create_spdx":"7237d94477047aaaad3a3ea1bfc66cb0d47b76fda6923a93ebd709cff13e6b49","python3-setuptools-native:do_create_spdx":"8e03630ec8670d9378815c65c02fe464a2e5d6099968d0d4d0470a2a6954104d","swig-native:do_create_spdx":"be1864ce0e07ed82a28b3bcefa2519a3495c196ebf1bd03bc3c1abea7059cde7","u-boot-tools-xlnx-native:do_unpack":"fa8db71f0da9fc8ffc00d6d4b256a2de87ec51a8497c9e5f92401df678a5a371","util-linux-native:do_create_spdx":"e1bd05ca480ca62568e6b7df30fe3ed9906613bed6f5cead52420d3d4b82a6d9"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"be8d16c81db59e2c33d787a449e7525bce2807f83a36b93539e353da3ca4bf58","taskhash_ignore_tasks":null,"unihash":"be8d16c81db59e2c33d787a449e7525bce2807f83a36b93539e353da3ca4bf58","varvals":{"DEPENDS":"pkgconfig-native flex-native bison-native python3-setuptools-native gnutls-native openssl-native util-linux-native swig-native bc-native dtc-native python3-setuptools-native gnutls-native python3-native","PN":"u-boot-tools-xlnx-native","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"}}