Open icchalmers opened 2 years ago
Dear Iain
Your described issue is fixed in the develop branch of bsp-xilinx. When you switch branch in an already cloned bsp-xilinx repository, please make sure that the buildscripts submodule gets updated properly. To do that, you can delete the "buildscripts" directory which gets cloned again with the correct branch when you run the build.sh script.
Using v1.10, on Ubuntu 20.04, a project-mode build of U-Boot for the Mars ZX3 with ST3 fails. Full reproduction details below. The initial build done when you choose project mode is actually done on the sources in {repo}/sources/ and passes fine. My guess is that there is a config not being passed to the project directory when then trying to do subsequent project-based builds.
Reproduction on a fresh clone:
./build.sh
cd out_20220421104635_Zynq-7000_Mars_ZX3_Mars_ST3_MMC
./build.sh
It looks like the _enclustragenerated.dts file is not being generated correctly.
Non-project mode: _{repo}/enclustragenerated.dts:
Project mode: _{repo}/out_20220421104635_Zynq-7000_Mars_ZX3_Mars_ST3_MMC/xilinx-uboot/arch/arm/dts/enclustragenerated.dts:
In case they help, here is a non-project based config for the above and the project-based .ini
As a side note, it seems pointless that when generating a project-mode build, an initial build is also done on the non-project mode source, but then the repos are re-cloned to the target project.