[yocto] When I build kernel with toolchain comes from yocto, I met an issue

Lei, Maohui leimaohui at cn.fujitsu.com
Mon Jan 26 17:09:42 PST 2015


ping


> -----Original Message-----
> From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org]
> On Behalf Of Lei, Maohui
> Sent: Friday, January 23, 2015 10:37 AM
> To: yocto at yoctoproject.org
> Subject: [yocto] When I build kernel with toolchain comes from yocto, I met
> an issue
> 
> Hi all,
> 
> I compiled my kernel by toolchain that supported by yocto 1.7.
> The following is my steps:
> 1. Run the following command to install the toolchain.
>    # ./poky-lsb-glibc-x86_64-meta-toolchain-ppce500v2-toolchain-1.7.sh
> 
> 2. Set up the cross-development environment:
>    # . /opt/poky-lsb/1.7/environment-setup-ppce500v2-poky-linux-gnuspe
> 
> And then, I compiled the kernel source. But an error occurred:
> --------------------------------------------------------------------------
> --
> powerpc-poky-linux-gnuspe-ld: unrecognized option '-Wl,-O1'
> powerpc-poky-linux-gnuspe-ld: use the --help option for usage information
> make[1]: *** [init/mounts.o] Error 1
> make: *** [init] Error 2
> --------------------------------------------------------------------------
> --
> 
> I have to unset "LDFLAGS" to continue the build.
> 
> Is there some wrong with my step? Is there some good method to build a kernel
> source by the toolchain?
> 
> Cheers
> 
> Lei Maohui
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list