Hi Nicolas,

On 20/01/2026 14:54, Nicolas Schier wrote:
> Out-of-source builds do not work on my system with podman.  If this is
> expected, I think it would be great to mention that somewhere in the
> documentation.

The v4 now mentions this and also includes a trick using bind-mount:

  mkdir -p $HOME/tmp/my-kernel-build
  mkdir -p build
  sudo mount --bind $HOME/tmp/my-kernel-build build
  scripts/container -i kernel.org/gcc -- make mrproper
  scripts/container -i kernel.org/gcc -- make O=build defconfig
  scripts/container -i kernel.org/gcc -- make O=build -j$(nproc)

Would this work for your use-case?  Directory names are entirely
arbitrary.  It's not ideal but might be good enough as a workaround
until this gets properly supported by the tool in a future version.

Cheers,
Guillaume


Reply via email to