mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-10 10:45:41 +02:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user