Hello xuhui,
After you set up yocto environment according to linux BSP document, you should compile u-boot, linux kernel, if compiling is successful, you can find u-boot & kernel source code in your building path.
As for how to add a new layer to yocto, you will have to read document of yocto, and do it by yourself, the question is out of our support range !
Regards,
Weidong