Skip to content

Move gcc target libs installation to target package

Thomas Petazzoni via buildroot buildroot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest7 patches 1 replyIn review

Changes in v2 from the cover letter

- Instead of introducing a separate gcc-runtime package, keep the logic in gcc-final, but with a target variant package. This was suggested by Romain Naour and indeed makes a lot of sense.

- Split into finer grained commits now that we're keeping things in gcc-final.mk.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7package/gcc/gcc-final: rework installation of libgcc_s/libatomicpackage/gcc/gcc-final/gcc-final.mk+14 -240 replies
2/7package/gcc/gcc-final: remove useless comment and empty variablepackage/gcc/gcc-final/gcc-final.mk+0 -30 replies
3/7package/gcc/gcc-final: move to make foreach loopspackage/gcc/gcc-final/gcc-final.mk+20 -200 replies
4/7package/gcc/gcc-final: split lib install by target/stagingpackage/gcc/gcc-final/gcc-final.mk+7 -110 replies
5/7package/gcc/gcc-final: move hook further downpackage/gcc/gcc-final/gcc-final.mk+9 -90 replies
6/7package/gcc/gcc-final: add a target variant in charge of target installationpackage/gcc/Config.in package/gcc/gcc-final/gcc-final.mk toolchain/toolchain-buildroot/Config.in +1 more+27 -230 replies
7/7package/gcc: add license informationpackage/gcc/gcc-final/gcc-final.mk package/gcc/gcc-initial/gcc-initial.mk package/gcc/gcc.hash +1 more+16 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Buildroot] [PATCH v2 0/7] Move gcc target libs installation to target package

Hello,

Currently, the gcc runtime libraries installed in STAGING_DIR/TARGET_DIR are installed by host-gcc-final, a host package. It works of course, but isn't very clean. But more importantly, it prevents us from having a sane handling of licensing for gcc. Indeed, the host gcc components are GPLv3, but the target components of gcc are GPLv3 with the important linking exception.

In order to handle this, this series proposes to split the host-gcc-final package into a host package (which already exists) and a target package (which is added as part of this series). The logic installing the gcc runtime libraries is moved to the target gcc-final package. Once this is done, the series adds the relevant licensing information to host-gcc-initial, host-gcc-final and gcc-final.

Changes from v1:

- Instead of introducing a separate gcc-runtime package, keep the logic in gcc-final, but with a target variant package. This was suggested by Romain Naour and indeed makes a lot of sense.

- Split into finer grained commits now that we're keeping things in gcc-final.mk.

Thomas Petazzoni (7):
package/gcc/gcc-final: rework installation of libgcc_s/libatomic package/gcc/gcc-final: remove useless comment and empty variable package/gcc/gcc-final: move to make foreach loops package/gcc/gcc-final: split lib install by target/staging package/gcc/gcc-final: move hook further down package/gcc/gcc-final: add a target variant in charge of target
installation
package/gcc: add license information

 package/gcc/Config.in                         |  3 +
 package/gcc/gcc-final/gcc-final.mk            | 97 ++++++++-----------
 package/gcc/gcc-initial/gcc-initial.mk        |  2 +
 package/gcc/gcc.hash                          |  7 ++
 package/gcc/gcc.mk                            |  3 +
 toolchain/toolchain-buildroot/Config.in       |  1 +
 .../toolchain-buildroot.mk                    |  4 +-
 7 files changed, 60 insertions(+), 57 deletions(-)
 create mode 100644 package/gcc/Config.in
Signature · 6 lines
2.41.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot