diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-08-22 12:23:00 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2015-08-22 12:23:00 -0700 |
commit | 8aaf23c3f5cfcba28d75ee098483393273338d8b (patch) | |
tree | da930fd0b01456c53c86e6f1f59ae176ded9f234 | |
parent | c4ae42363ecbaa506ce66d1f025382572281b511 (diff) | |
download | meta-clang-8aaf23c3f5cfcba28d75ee098483393273338d8b.tar.gz |
Update README.md
-rw-r--r-- | README.md | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -28,25 +28,30 @@ BBLAYERS ?= " \ | |||
28 | Below we build for qemuarm machine as an example | 28 | Below we build for qemuarm machine as an example |
29 | 29 | ||
30 | ```shell | 30 | ```shell |
31 | $ MACHINE=qemuarm bitbake core-image-minimal | 31 | $ MACHINE=qemux86 bitbake core-image-minimal |
32 | ``` | 32 | ``` |
33 | # Running | 33 | # Running |
34 | 34 | ||
35 | ```shell | 35 | ```shell |
36 | $ runqemu qemuarm | 36 | $ runqemu qemux86 |
37 | ``` | 37 | ``` |
38 | 38 | ||
39 | # Limitations | 39 | # Limitations |
40 | 40 | ||
41 | Currently only few components are building with clang if you want to port/add more then please add | 41 | Currently only few components do not build with clang, if you have a component to add to that list |
42 | simply create a bbappend under recipes-excluded/nonclangable e.g. | ||
43 | |||
42 | ```shell | 44 | ```shell |
43 | TOOLCHAIN_pn-<recipe-name> = "clang" | 45 | TOOLCHAIN = "gcc" |
44 | DEPENDS_append_pn-<recipe-name> = " clang-cross-${TARGET_ARCH} " | ||
45 | ``` | 46 | ``` |
46 | 47 | ||
47 | to clang.conf | 48 | and OE will start using gcc to cross compile that recipe, please note that by default when meta-clang is in layermix |
49 | it will use clang as default system compiler, if you would like to disable that behaviour please add | ||
48 | 50 | ||
49 | and OE will start using clang to cross compile that recipe | 51 | ```shell |
52 | TOOLCHAIN = "gcc" | ||
53 | ``` | ||
54 | to your local.conf or some other global configuration metadata file. | ||
50 | 55 | ||
51 | # Dependencies | 56 | # Dependencies |
52 | 57 | ||