aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorneonloop2021-03-07 14:47:57 +0000
committerneonloop2021-03-07 14:47:57 +0000
commit9ab73f47aedebd94eb4d353262a582d9fd3a8cec (patch)
treee73509334e64bd337d9524cf03f1d910c90ca521 /README.md
parent4ad5efd6071cefe6cc813d5d6b38869b54a44eaf (diff)
downloadtrimui-toolchain-9ab73f47aedebd94eb4d353262a582d9fd3a8cec.tar.gz
trimui-toolchain-9ab73f47aedebd94eb4d353262a582d9fd3a8cec.tar.bz2
trimui-toolchain-9ab73f47aedebd94eb4d353262a582d9fd3a8cec.zip
Clear buildroot source after building
This saves an enormous amount of disk space in the image. Since fewer packages are installed, there is a method for installing extra packages. This also adds a helper script for setting up common cross-compiling variables.
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index cf180ae..69f3c85 100644
--- a/README.md
+++ b/README.md
@@ -10,8 +10,13 @@ After building the first time, unless a dependency of the image has changed, `ma
- On your host machine, clone repositories into `./workspace` and make changes as usual.
- In the container shell, find the repository in `~/workspace` and build as usual.
+ - Optionally, `source ~/env-setup.sh` in the shell to set common cross-compiling and path variables.
-### Adding additional files to the toolchain sysroot
+### Installing extra packages
+
+To install extra packages into your container, add the ubuntu package names to `./extra_packages.txt`, one per line. They will be installed the next time you start a new shell. To keep git from tracking your changes to this file, run `git update-index --skip-worktree ./extra_packages.txt`.
+
+### Adding libraries to the toolchain sysroot
Put files that you want included in the sysroot (libs and headers, you've built, etc.) in `./extras`. They will be copied to `$SYSROOT/usr` as the container is built.