summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-09-15 13:35:50 -0700
committerGitHub <noreply@github.com>2019-09-15 13:35:50 -0700
commit5dd4c4bb8f5692354cd47309b75cc8c76eaed984 (patch)
tree0bc291129b735fe4e0a481e6723c60a462463461 /README.md
parentff4ce184dcb6baf59bdf01d2ad8e1e806afac8d9 (diff)
downloadmeta-clang-5dd4c4bb8f5692354cd47309b75cc8c76eaed984.tar.gz
More syntax changes
Diffstat (limited to 'README.md')
-rw-r--r--README.md36
1 files changed, 16 insertions, 20 deletions
diff --git a/README.md b/README.md
index e8bb981..ecba661 100644
--- a/README.md
+++ b/README.md
@@ -16,41 +16,39 @@ git clone git://github.com/kraj/meta-clang.git
16$ . ./oe-init-build-env 16$ . ./oe-init-build-env
17``` 17```
18 18
19Edit conf/bblayers.conf to add meta-clang to layer mix e.g. 19Add meta-clang overlay
20
21```python
22BBLAYERS ?= " \
23 /home/kraj/openembedded-core/meta-clang \
24 /home/kraj/openembedded-core/meta \
25 "
26``` 20```
21bitbake-layers add-layer ../meta-clang
22```
23
24Check `conf/bblayers.conf` to see that meta-clang is added to layer mix e.g.
27 25
28# Default Compiler Switch 26# Default Compiler Switch
29 27
30Note that by default gcc will remain the system compiler, however if you wish 28Note that by default gcc will remain the system compiler, however if you wish
31clang to be the default compiler then set 29clang to be the default compiler then set
32 30
33```python 31```shell
34TOOLCHAIN ?= "clang" 32TOOLCHAIN ?= "clang"
35``` 33```
36 34
37in local.conf, this would now switch to using clang as default compiler systemwide 35in `local.conf`, this would now switch default cross-compiler to be clang
38you can select clang per package too by writing bbappends for them containing 36you can select clang per recipe too by writing bbappends for them containing
39 37
40```python 38```shell
41TOOLCHAIN = "clang" 39TOOLCHAIN = "clang"
42``` 40```
43 41
44# Default C++ Standard Library Switch 42# Default C++ Standard Library Switch
45 43
46Note that by default clang libc++ is default C++ standard library, however if you wish 44Note that by default clang libc++ is default C++ standard library, however if you wish
47GNU libstdc++ to be the default one then set 45to keep GNU libstdc++ to be the default then set
48 46
49```python 47```shell
50LIBCPLUSPLUS = "" 48LIBCPLUSPLUS = ""
51``` 49```
52 50
53in local.conf. 51in `local.conf`.
54You can select libstdc++ per package too by writing bbappends for them containing 52You can select libstdc++ per package too by writing bbappends for them containing
55 53
56```python 54```python
@@ -63,7 +61,7 @@ By default, clang build from meta-clang uses clang runtime ( compiler-rt + libc+
63However, it is possible to switch to using gcc runtime as default, In order to do that 61However, it is possible to switch to using gcc runtime as default, In order to do that
64following settings are needed in site configurations e.g. in local.conf 62following settings are needed in site configurations e.g. in local.conf
65 63
66```python 64```shell
67TOOLCHAIN ?= "clang" 65TOOLCHAIN ?= "clang"
68TARGET_CXXFLAGS_remove_toolchain-clang = " --stdlib=libc++" 66TARGET_CXXFLAGS_remove_toolchain-clang = " --stdlib=libc++"
69TUNE_CCARGS_remove_toolchain-clang = " --rtlib=compiler-rt --unwindlib=libunwind --stdlib=libc++" 67TUNE_CCARGS_remove_toolchain-clang = " --rtlib=compiler-rt --unwindlib=libunwind --stdlib=libc++"
@@ -101,7 +99,7 @@ CXX_remove_pn-<recipe>_toolchain-clang = " -stdlib=libc++ "
101 99
102# Dependencies 100# Dependencies
103 101
104``` 102```shell
105URI: git://github.com/openembedded/openembedded-core.git 103URI: git://github.com/openembedded/openembedded-core.git
106branch: master 104branch: master
107revision: HEAD 105revision: HEAD
@@ -113,9 +111,7 @@ revision: HEAD
113 111
114# Contributing 112# Contributing
115 113
116Send github pull requests 114You are encouraged to follow Github Pull request workflow
117 115to share changes and following commit message guidelines are recommended [OE patch guidelines](https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines)
118You are encouraged to fork the mirror on [github](https://github.com/kraj/meta-clang/)
119to share changes Following commit message guidelines are recommended [OE patch guidelines](https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines)
120 116
121Layer Maintainer: [Khem Raj](<mailto:raj.khem@gmail.com>) 117Layer Maintainer: [Khem Raj](<mailto:raj.khem@gmail.com>)