{"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":"1dfe296887a6704a6fde64b1aa2e8d4c2c7344ff7c5a9d61f6432164c3221116","binutils-cross-arm:do_create_spdx":"ab5026ca8ffdfd2157a5a1b1078ef7c4f251e26c8b236f2ad73353de2b48516e","bison-native:do_create_spdx":"d0522c32291bed1c5ee6d8a6b193fce519eb253984db0be5ab2135a319ec9f82","gcc-cross-arm:do_create_spdx":"0379db39bec5ef6665986b398eb9d681f4c328026de93326cb154f19d7d3ab4d","gmp-native:do_create_spdx":"51715ce1ee5421bed02d88e9302f078d765ffee5a9695524fde7c62b40eb5c55","kmod-native:do_create_spdx":"d2af136b0469edacd67bf483cdd16ea3ddbab1dd68bc52352a435084525c26b9","libmpc-native:do_create_spdx":"5f77afc4272e9320bb5e280885cea3a1bd0dfdffcd81504ae8198f856e3d2106","linux-xlnx:do_unpack":"db6df75609b96fc9868f8a5ee8c7df0b36294bbd2bbe8b29623044969b9aab4c","openssl-native:do_create_spdx":"a9c592a2db76a2df4333684e663124266d129a4fc2cd8ea83fa3d501507218ab","pkgconfig-native:do_create_spdx":"9c45ee09c4d8afc645a7ef1c821a4412164000f1258c108dd32d77dcf102aab9","u-boot-tools-xlnx-native:do_create_spdx":"31cb136aaa1731ecf745c57158afe5cf3cedacfed6cf6529d2e65d9e9532ff83","util-linux-native:do_create_spdx":"c4eff6ad436a09627eb9a9206e0ee63de5574e20f404713d4c9d89242f978083","xz-native:do_create_spdx":"d6c90d2506b3f2e2e02fea8eaef5ae047141e6cd5d212ca305bd133681dddf1e"},"task":"do_collect_spdx_deps","taskdeps":{"_set_object":["DEPENDS","PN","SPDXDEPS","SPDXDIR","collect_direct_deps"]},"taskhash":"093066a2d634acdb176411f7e42d55e22ed5306b2b3122956130441813ae0ce5","taskhash_ignore_tasks":null,"unihash":"093066a2d634acdb176411f7e42d55e22ed5306b2b3122956130441813ae0ce5","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"}}