diff options
| author | Khem Raj <raj.khem@gmail.com> | 2014-09-11 17:25:28 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2014-09-11 17:25:28 -0700 |
| commit | 7d75cff3a28f9635efd6a85af0a374cb41538f58 (patch) | |
| tree | 228078ef151eb305a8851a4415d13e8e3c4507a4 /README.md | |
| download | meta-clang-7d75cff3a28f9635efd6a85af0a374cb41538f58.tar.gz | |
Intial commit
Add clang recipes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..8b9961b --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | # meta-clang (a C language family frontend and LLVM compiler backend) | ||
| 2 | |||
| 3 | This layer provides [clang/llvm](http://clang.llvm.org/) as alternative to your system | ||
| 4 | C/C++ compiler for OpenEmbedded based distributions along with gcc | ||
| 5 | |||
| 6 | # Getting Started | ||
| 7 | |||
| 8 | ```shell | ||
| 9 | git clone git://github.com/openembedded/openembedded-core.git | ||
| 10 | cd openembeeded-core | ||
| 11 | git clone git://github.com/openembedded/bitbake.git | ||
| 12 | git clone git://github.com/kraj/meta-clang.git | ||
| 13 | |||
| 14 | $ . ./oe-init-build-env | ||
| 15 | ``` | ||
| 16 | |||
| 17 | Edit conf/bblayers.conf to add meta-musl to layer mix e.g. | ||
| 18 | |||
| 19 | ```python | ||
| 20 | BBLAYERS ?= " \ | ||
| 21 | /home/kraj/openembedded-core/meta-clang \ | ||
| 22 | /home/kraj/openembedded-core/meta \ | ||
| 23 | " | ||
| 24 | ``` | ||
| 25 | |||
| 26 | # Building | ||
| 27 | |||
| 28 | Below we build for qemuarm machine as an example | ||
| 29 | |||
| 30 | ```shell | ||
| 31 | $ MACHINE=qemuarm bitbake core-image-minimal | ||
| 32 | ``` | ||
| 33 | # Running | ||
| 34 | |||
| 35 | ```shell | ||
| 36 | $ runqemu qemuarm | ||
| 37 | ``` | ||
| 38 | |||
| 39 | # Limitations | ||
| 40 | |||
| 41 | Currently core-image-minimal is buildable/bootable for ARM, x86, x86_64 | ||
| 42 | based qemu machines | ||
| 43 | MACHINE variable and TCLIBC variables can also be set in conf/local.conf to avoid typing it on commandline on any bitbake invocation | ||
| 44 | |||
| 45 | |||
| 46 | # Dependencies | ||
| 47 | |||
| 48 | ``` | ||
| 49 | URI: git://github.com/openembedded/openembedded-core.git | ||
| 50 | branch: master | ||
| 51 | revision: HEAD | ||
| 52 | |||
| 53 | URI: git://github.com/openembedded/bitbake.git | ||
| 54 | branch: master | ||
| 55 | revision: HEAD | ||
| 56 | ``` | ||
| 57 | |||
| 58 | Send pull requests to openembedded-devel@lists.openembedded.org with '[meta-clang]' in the subject' | ||
| 59 | |||
| 60 | When sending single patches, please use something like: | ||
| 61 | |||
| 62 | 'git send-email -M -1 --to openembedded-devel@lists.openembedded.org --subject-prefix=meta-clang][PATCH' | ||
| 63 | |||
| 64 | You are encouraged to fork the mirror on [github](https://github.com/kraj/meta-clang/) | ||
| 65 | to share your patches, this is preferred for patch sets consisting of more than | ||
| 66 | one patch. Other services like gitorious, repo.or.cz or self hosted setups are | ||
| 67 | of course accepted as well, 'git fetch <remote>' works the same on all of them. | ||
| 68 | We recommend github because it is free, easy to use, has been proven to be reliable | ||
| 69 | and has a really good web GUI. | ||
| 70 | |||
| 71 | Layer Maintainer: Khem Raj <raj.khem@gmail.com> | ||
