Hi NXP,
I am trying to use sstate to increase build speed and reduce the disk space needed.
First, create a clean build.
DISTRO=fsl-imx-wayland MACHINE=imx8qxpc0mek source imx-setup-release.sh -b build
Then edit build/conf/local.conf
SSTATE_DIR ?="/share/yocto-sstate/"
And build, all good.
bitbake imx-image-multimedia
But the other build tries to use the same sstate getting an error.
DISTRO=fsl-imx-wayland MACHINE=imx8qxpc0mek source imx-setup-release.sh -b build2
# build2/conf/local.conf
SSTATE_DIR ?="/share/yocto-sstate/"
#Then build
bitbake imx-image-multimedia
And getting error
ERROR: imx-image-multimedia-1.0-r0 do_rootfs: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:license_create_manifest(d)
0003:
File: '/path/to/imx5.15.52/sources/poky/meta/classes/license_image.bbclass', lineno: 38, function: license_create_manifest
0034: pkg_dic = {}
0035: for pkg in sorted(image_list_installed_packages(d)):
0036: pkg_info = os.path.join(d.getVar('PKGDATA_DIR'),
0037: 'runtime-reverse', pkg)
*** 0038: pkg_name = os.path.basename(os.readlink(pkg_info))
0039:
0040: pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
0041: if not "LICENSE" in pkg_dic[pkg_name].keys():
0042: pkg_lic_name = "LICENSE:" + pkg_name
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/path/to/imx5.15.52/build2/tmp/pkgdata/imx8qxpc0mek/runtime-reverse/kernel-5.15.52+ga3a946ec1ef5'
ERROR: Logfile of failure stored in: /path/to/imx5.15.52/build2/tmp/work/imx8qxpc0mek-poky-linux/imx-image-multimedia/1.0-r0/temp/log.do_rootfs.3670757
ERROR: Task (/path/to/imx5.15.52/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-multimedia.bb:do_rootfs) failed with exit code '1'
How can I fix it?
Hi @WolsYang
The problem seems not caused by sstate but dependencies files missed. you can try to edit DL_DIR using previous successful DL_DIR for source fetching.
Best regards
Harvey
Hi @Harvey021
In both build directories (build and build2) conf, they have the same download directory.
DL_DIR ?= "/media/wols/WOLSDATAHDD/imx5.15.52/downloads/"
After the error showed, I try to re-clean build in the build directory, and it is work fine.
That is why I think is not DL_DIR problem.