Skip to content

support building from read-only source tree

Yann E. MORIN buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [RFC/PATCH 0/4] support building from read-only source tree

Nathan, All,

On 2012-06-18 10:02 -0500, Nathan Lynch spake thusly:

Quoted 15 lines

There are several places in Buildroot where files are copied from the source tree to the output directory and then modified. The most obvious case is copying a .config or equivalent to the build directory and then modifying it with sed, as with uClibc or busybox.

This works fine when the source file has write permissions; this is preserved in the destination copy. This is the behavior in the common case of running from a git repository or a release tarball.

However, when the source file is read-only, the destination copy is also not writable and such fixups fail. This occurs when the the Buildroot source tree is being hosted in a Perforce repository. Perforce uses local file permissions to track whether a file is being edited and checks out all regular files read-only by design.

Quoted 3 lines

The following changes were enough to get qemu_mips_malta_defconfig to build and run successfully. I submit these patches for discussion and illustration of the effort required to support this use case.

Unfortunately, those patches mostly no longer apply, since there have been some code churn (reoridering) in the meantime.

I'll take whatever I can, and adapt the remaining.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'