Default path of uboot


Changing source code to make changes in source code first need to create a local_repos

$ cd ~/CodeSetup_Trucrux
$ mkdir local_repos/u-boot
$ cp -a build_xwayland/tmp/work/imx8mq-trucrux-fslc-linux/u-boot-trucrux/1.0-r0/git local_repos/u-boot
$ cd local_repos/u-boot

now use git to create a branch or make changes in same branch (creating new branch is recommended)

now make changes in Uboot.

To add changes in build

$ cd ~/CodeSetup_Trucrux/sources/meta-trucrux/recipies-bsp/u-boot
$ touch linux-trucrux_5.4.bbappend

(ignore if already file is created)
and append the following in bbappend file

UBOOT_SRC = "git://${BSPDIR}/local_repos/uboot-imx;protocol=file"
SRCBRANCH = "< your branch name >
SRCREV = "< The commit id you'd like to use >"