From 0f4f45cf00b6aad08be030379f81f92c48649da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zyxhere=F0=9F=92=AD?= Date: Sat, 11 Oct 2025 05:08:42 +0500 Subject: [PATCH] README: Add Gentoo documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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💭 --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index 28727c17b..6acf5cfed 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,45 @@ These scripts have been tested in a Docker image of the following distributions python3 \ uboot-tools ``` +* ### Gentoo + + 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: + + ``` + $ sudo mkdir /etc/portage/sets && sudo $EDITOR /etc/portage/sets/tc-build + ``` + + With the file `tc-build` containing: + + ``` + llvm-core/clang + llvm-core/lld + sys-libs/binutils-libs + dev-build/cmake + dev-vcs/git + dev-util/ccache + dev-libs/elfutils + app-arch/cpio + dev-embedded/u-boot-tools + ``` + + Afterwards emerge the set: + + ``` + $ sudo emerge --ask --verbose @tc-build + ``` + + To avoid building from source Gentoo also provides [binary packages](https://wiki.gentoo.org/wiki/Binary_package_guide). + + ``` + $ sudo emerge --ask --verbose --getbinpkg @tc-build + ``` + + Or for short: + + ``` + $ sudo emerge -avg @tc-build + ``` * ### Clear Linux