[yocto] Building clang with Yocto

Jim Rafert jimr at spectralogic.com
Tue Dec 9 08:06:50 PST 2014


I have attached the script.  Basically, all that it does is extract the tarball from the install script, untar it into a temp directory, install the rpm created by the llvm build, then tar the temp directory back onto the tail of the script.
The script lives in a subdirectory of the main poky directory, and assumes that that is your current working directory when you execute it.  Of course, it will need modification on your part because it assumes filenames based upon my own llvm recipes.

I would appreciate if you figure out how to get them installed correctly from entirely within the Yocto framework, you will share the information.

-Jim-


________________________________________
From: Yu, Chan KitX [chan.kitx.yu at intel.com]
Sent: Monday, December 08, 2014 6:19 PM
To: Jim Rafert; yocto at yoctoproject.org
Subject: RE: Building clang with Yocto

Hi Jim,

How did you jam the clang compiler into the SDK tarball?

Chan Kit

-----Original Message-----
From: Jim Rafert [mailto:jimr at spectralogic.com]
Sent: Tuesday, December 09, 2014 1:48 AM
To: yocto at yoctoproject.org; Yu, Chan KitX
Subject: Building clang with Yocto

Hello Chan,

I have been working to a similar goal, to include clang in the toolchain to be used for compiling applications to run on the target.  Using clang to compile the OS and kernel are not required or  desired by me.

You may get some insight from the thread I started in November on the subject.  I'm not sure that this contains all of the posts on the subject. You may want to search the archive for November.

I have not been successful yet in getting clang actually packaged in the toolchain, in the Yocto build,  but at least it builds.  I have a postbuild script that takes the built clang compiler from the work directory and jams it into the SDK tarball that is embedded in the sdk install script.

-Jim-


________________________________________
From: yocto-bounces at yoctoproject.org [yocto-bounces at yoctoproject.org] on behalf of yocto-request at yoctoproject.org [yocto-request at yoctoproject.org]
Sent: Monday, December 08, 2014 2:56 AM
To: yocto at yoctoproject.org
Subject: yocto Digest, Vol 51, Issue 26

Send yocto mailing list submissions to
        yocto at yoctoproject.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.yoctoproject.org/listinfo/yocto
or, via email, send a message with subject or body 'help' to
        yocto-request at yoctoproject.org

You can reach the person managing the list at
        yocto-owner at yoctoproject.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of yocto digest..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MakeSDK.sh
Type: application/x-shellscript
Size: 1946 bytes
Desc: MakeSDK.sh
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141209/29aa3992/attachment.bin>


More information about the yocto mailing list