In order to facilitate the build for older BSPs after CAF shutdown (versions prior to 34.0), we have implemented a bash script which is able to change the manifest and Yocto files by adapting the old CAF git repository links to corresponding NXP GitHub repository links. This will allow Yocto builds to be performed without the need to pull sources from CAF.
The script and usage instructions below have also been uploaded to github:
https://github.com/nxp-auto-linux/linux-bsp-utils/tree/master/codeaurora_migration
However please feel free to use this article for reference as well as for comments.
Currently, there are 2 operating modes:
./migrate.sh --full --work_path ./testfolder --release_branch release/bsp32.0
source nxp-setup-alb.sh -m <target_machine>
bitbake <target-image>
MANIFEST="adas.xml" ./migrate.sh --full --work_path ./bsp_23.1_adas --release_branch release/s32v_bsp23.1
MANIFEST="vnp.xml" ./migrate.sh --full --work_path ./bsp_22.0_vnp --release_branch release/bsp22.0
PROJECT_DIRNAME="release" ./migrate.sh --full --work_path <path> --release_branch <branch>
./migrate.sh --postsync --work_path ./testfolder
Additionally, the help section of the script can be accessed via:
./migrate.sh --help
There are some cases when additional manuals steps have to be performed after running the script "migrate.sh" and before running "bitbake" commands. These manual sets are requried due to some issues in some of the layers used by the Auto Linux BSP.
ERROR: No recipes in default available for:
<recipe-full-path>.bbappend
This happens because some .bbappend files were left is some layers after their base recipes have been removed from the product. Workaround in this case is to add to "conf/local.conf":
BB_DANGLINGAPPENDS_WARNONLY = "1"
git am 0001-meta-vnp-fix-azure-recipes.patch
git am 0001-meta-vnp-fix-cmm-recipe-install.patch
then run "nxp-setup-alb.sh" and/or "bitbake" commands as usual.NOTE: If `git am <patch>` fails, the alternative is to use `patch`:
patch --backup-if-mismatch -F 10 -u -p 1 -i <patch>
Currently the script creates and uses the intermediate subdirectory which by default is named "fsl-image-auto-bsp".