build: custom build directory with symlink technique

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-12-30 00:00:01 +00:00
parent b795dd7572
commit 3a8f2fcff5

View File

@@ -20403,6 +20403,17 @@ Verify with:
ls "$(./getvar buildroot_build_build_dir)" ls "$(./getvar buildroot_build_build_dir)"
.... ....
=== Custom build directory
For now there is no way to change the build directory from `out/` (resp. `out.docker` for <<docker>.) to something else.
However, if you just want to place the build storage in your hard drive and the source in your SSD, which is a good configuration if you are doing lots of builds, just create a symlink as:
....
mkdir -p /mnt/hd/linux-kernel-module-cheat-out
ln -s out /mnt/hd/linux-kernel-module-cheat-out
....
=== ccache === ccache
https://en.wikipedia.org/wiki/Ccache[ccache] <<benchmark-builds,might>> save you a lot of re-build when you decide to <<clean-the-build>> or create a new <<build-variants,build variant>>. https://en.wikipedia.org/wiki/Ccache[ccache] <<benchmark-builds,might>> save you a lot of re-build when you decide to <<clean-the-build>> or create a new <<build-variants,build variant>>.