Skip to content

Commit 0f4f45c

Browse files
committed
README: Add Gentoo documentation
binutils-libs and cmake are already build time dependency for clang but won't get pulled in when using the binary package as they don't need build time dependencies so add them to the set too. Signed-off-by: zyxhere💭 <[email protected]>
1 parent a6fa7a0 commit 0f4f45c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,45 @@ These scripts have been tested in a Docker image of the following distributions
8989
python3 \
9090
uboot-tools
9191
```
92+
* ### Gentoo
93+
94+
A convenient way to manage all the required packages is to use [package sets](https://wiki.gentoo.org/wiki//etc/portage/sets). Create a set for tc-build:
95+
96+
```
97+
$ sudo mkdir /etc/portage/sets && sudo $EDITOR /etc/portage/sets/tc-build
98+
```
99+
100+
With the file `tc-build` containing:
101+
102+
```
103+
llvm-core/clang
104+
llvm-core/lld
105+
sys-libs/binutils-libs
106+
dev-build/cmake
107+
dev-vcs/git
108+
dev-util/ccache
109+
dev-libs/elfutils
110+
app-arch/cpio
111+
dev-embedded/u-boot-tools
112+
```
113+
114+
Afterwards emerge the set:
115+
116+
```
117+
$ sudo emerge --ask --verbose @tc-build
118+
```
119+
120+
To avoid building from source Gentoo also provides [binary packages](https://wiki.gentoo.org/wiki/Binary_package_guide).
121+
122+
```
123+
$ sudo emerge --ask --verbose --getbinpkg @tc-build
124+
```
125+
126+
Or for short:
127+
128+
```
129+
$ sudo emerge -avg @tc-build
130+
```
92131

93132
* ### Clear Linux
94133

0 commit comments

Comments
 (0)