Thanks for the question.
Yes, the BSP is indeed available online, I understand that you may need the BSP itself, also, the compiler is needed due to the cross compiling for your own application.
- Installing the BSP:
Carefully following the README from
https://github.com/nxp-auto-linux/auto_yocto_bsp/tree/release/bsp39.0, the following commands may be useful for your reference:
mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
PATH=${PATH}:~/bin
mkdir fsl-auto-yocto-bsp
cd fsl-auto-yocto-bsp
repo init -u https://github.com/nxp-auto-linux/auto_yocto_bsp -b release/bsp39.0
repo sync
./sources/meta-alb/scripts/host-prepare.sh
. nxp-setup-alb.sh -m s32g399ardb3
cd build_s32g399ardb3
bitbake fsl-image-auto
After the building, the BSP components including ATF, u-boot, Linux kernel and rootfs should be built successfully.
- Get the toolchain
According to the BSP39.0 User manual, the link for a compatible pre-built GCC 11.3.0 for ARM64 toolchain, as delivered by Arm at:
https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x...
Once you have downloaded the toolchain package, in order to install it, you just need to untar it in a directory of your choice, for example, you put it into the /home/test/toolchain
Then this toolchain could be used with your own application for cross compiling.
Hope it helps.
Best Regards
Chenyin