The build stops when trying to build the kernel-module-imx-gpu-viv.
DEBUG: git repository: /work/build/tmp/work/verdin_imx8mm-tdx-linux/kernel-module-imx-gpu-viv/6.4.0.p2.4-r0/git/src
fatal: your current branch 'master' does not have any commits yet
ERROR: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:create_source_date_epoch_stamp(d)
Note: I digged deeper into the problem and found that the problem happens, because the repository referenced in kernel-module-imx-gpu-viv_6.4.0.p2.0.bbappend" has no “master” branch. Due to this, the “reproducible_build.bbclass” git command to extract the epoch timestamp fails.
I am wondering how this can work on your side.
I temporarily worked around the issue by removing x11/wayland from the image features, but this isn’t a long term solution. Any hints?
Thanks for your reply. I did not exactly follow the reference build steps, as I am using a containerized build (via siemens kas container), perhaps there is a subtle difference in the environment. I will try and keep you informed.
Without this line, the fetch was done from git://git.toradex.com/linux-toradex.git via git clone --bare. And this caused the problem, because no master branch exists in this repo.
I know that it seems to be strange, but we strongly advise to use our recommended tools and our step-by-step for a Yocto Build, like instructed in Build a Reference Image with Yocto Project:
We don’t provide support for Siemens Kas, and there is also a lot of other factors to consider regarding the environment being used.