Skip to content

system/Config.in: introduce pre-build script

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am 20200202100432.1ada7720@windsurf

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

Patches in v1 No applies recorded yet

The patch the cover letter announces is not 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] [PATCH 0/1] system/Config.in: introduce pre-build script

Hello Markus,

Quoted 12 lines · On Tue, 21 Jan 2020 15:09:55 -0800 Markus Mayer <[email protected]> wrote:

Specifically, we are building ARM64 images that also contain a 32-bit run-time environment from an Aarch32 toolchain (just the shared libraries and ld.so from sys-root, nothing fancier than that). -- No, we aren't doing this for fun, but because there are some binaries, which we don't have the sources for, that only come as 32-bit variants and they need to be able to execute in an ARM64 environment, as well.

We used to use /lib64 and /lib to store the shared libraries in the target file system. However, we have come to realize that using /lib and /lib32 makes a lot of things much easier (/lib64 merely becomes a symlink to /lib in this setup) and began the transition.

Quoted 5 lines

However, introducing the change leads to a problem for developers they don't
expect: they simply update their GIT repo as they are used to doing, and suddenly their already existing build is inconsistent with what is now expected, whereas in the past it has always been possible to do an incremental build even after a "git pull."

We simply don't support incremental builds like you describe, i.e there is no way for Buildroot to guarantee after a "git pull" and a partial rebuild with just "make" that changes will be taken into account. A simple thing that adding a new --enable-foo option in a package that has already been built will not see this package being rebuilt when running "make".

So, while there may possibly be other situations where a pre-build script could be useful, your particular use-case is not a very convincing argument at all, because it clearly falls outside of what Buildroot supports.

So what would be nice to see is if there are other use-cases for a pre-build script that make sense.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com