u-boot-starfive: Build outside source tree

u-boot common files set O=.. option for make which actually
sets KBUILD_SRC, which triggers a step in u-boot system called
prepare3. This step checks if make has been run inside sourcedir
and since we are setting O=${B} and B is set to S, it has run
inside S during do_configure, so do_compile fails to build e.g.

|   /mnt/b/yoe/master/build/tmp/work/visionfive-yoe-linux/u-boot-starfive/v2021.04-r0/git is not clean, please run 'make mrproper'
|   in the '/mnt/b/yoe/master/build/tmp/work/visionfive-yoe-linux/u-boot-starfive/v2021.04-r0/git' directory.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2022-10-10 19:25:25 -07:00
parent dc77d097a8
commit b5de81a229

View File

@@ -43,3 +43,7 @@ do_deploy:append:visionfive() {
COMPATIBLE_MACHINE = "(beaglev-starlight-jh7100|visionfive)"
TOOLCHAIN = "gcc"
# U-boot sets O=... which needs it to build outside of S
B = "${WORKDIR}/build"