Hello, @arulom16
Thanks for your reply.
For different BSP version provisioned by NXP, there may be different Yocto/toolchain/environment/building flags involved.
From the available information you shared, you are likely talking about the BSP31, which is indeed an old version, below are the available information for BSP31:
1. Yocto version:3.2
2. For manually building the BSP components, the following toolchain is suggested:

Sorry that the BSP31 is quite outdated(5 years ago), I do not find a correct Host to build and deploy it, thus I am not able to double confirm the detailed name/combinations of the toolchain used in Yocto(maybe arch64-poky-linux, but not confirmed), I suggest you installing it on a Ubuntu 20.04 host according to the following guide
Then, you may get the BSP31 deployed on your host, and you are able to check the toolchain name/version from it.
At last, for more stable/convenient development, I suggest using more recent BSP version for your reference instead of BSP31 mentioned.
BR
Chenyin