Move gcc target libs installation to target package
v2 cover 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
PATCH v2 1/7 package/gcc/gcc-final: rework installation of libgcc_s/libatomic
The installation of libgcc_s/libatomic (which have to go in /lib) is handled differently than all the other libraries (which go in /usr/lib). For consistency, and in preparation for additional changes in this area, handle both in a more consistent manner, with a new HOST_GCC_FINAL_LIBS that looks like HOST_GCC_FINAL_USR_LIBS.
Consequently, the hook HOST_GCC_FINAL_INSTALL_USR_LIBS is renamed to HOST_GCC_FINAL_INSTALL_LIBS, and made unconditional rather than being conditional on ifneq ($(HOST_GCC_FINAL_USR_LIBS),). Indeed, we now need to install libraries in /lib unconditionally, and if HOST_GCC_FINAL_USR_LIBS is empty, the loops will simply not iterate on any element, and they will not install anything in /usr/lib.
--- package/gcc/gcc-final/gcc-final.mk | 38 +++++++++++------------------- 1 file changed, 14 insertions(+), 24 deletions(-)
package/gcc/gcc-final/gcc-final.mk +14 -24
@@ -144,25 +144,7 @@ endef HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_M68K_LIBGCC_FIXUP endif -# Cannot use the HOST_GCC_FINAL_USR_LIBS mechanism below, because we want -# libgcc_s to be installed in /lib and not /usr/lib. -define HOST_GCC_FINAL_INSTALL_LIBGCC - -cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/libgcc_s* \ - $(STAGING_DIR)/lib/ - -cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/libgcc_s* \ - $(TARGET_DIR)/lib/ -endef - -HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_LIBGCC - -define HOST_GCC_FINAL_INSTALL_LIBATOMIC - -cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/libatomic* \ - $(STAGING_DIR)/lib/ - -cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/libatomic* \ - $(TARGET_DIR)/lib/ -endef - -HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_LIBATOMIC +HOST_GCC_FINAL_LIBS = libgcc_s libatomic # Handle the installation of libraries in /usr/lib HOST_GCC_FINAL_USR_LIBS =
@@ -189,8 +171,11 @@ endif HOST_GCC_FINAL_USR_LIBS += $(call qstrip,$(BR2_TOOLCHAIN_EXTRA_LIBS)) -ifneq ($(HOST_GCC_FINAL_USR_LIBS),) define HOST_GCC_FINAL_INSTALL_STATIC_LIBS + for i in $(HOST_GCC_FINAL_LIBS) ; do \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.a \ + $(STAGING_DIR)/lib/ ; \ + done for i in $(HOST_GCC_FINAL_USR_LIBS) ; do \ cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.a \ $(STAGING_DIR)/usr/lib/ ; \
@@ -199,6 +184,12 @@ endef ifeq ($(BR2_STATIC_LIBS),) define HOST_GCC_FINAL_INSTALL_SHARED_LIBS + for i in $(HOST_GCC_FINAL_LIBS) ; do \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.so* \ + $(STAGING_DIR)/lib/ ; \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.so* \ + $(TARGET_DIR)/lib/ ; \ + done for i in $(HOST_GCC_FINAL_USR_LIBS) ; do \ cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.so* \ $(STAGING_DIR)/usr/lib/ ; \
@@ -208,12 +199,11 @@ define HOST_GCC_FINAL_INSTALL_SHARED_LIBS endef endif -define HOST_GCC_FINAL_INSTALL_USR_LIBS - mkdir -p $(TARGET_DIR)/usr/lib +define HOST_GCC_FINAL_INSTALL_LIBS + mkdir -p $(TARGET_DIR)/lib $(TARGET_DIR)/usr/lib $(HOST_GCC_FINAL_INSTALL_STATIC_LIBS) $(HOST_GCC_FINAL_INSTALL_SHARED_LIBS) endef -HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_USR_LIBS -endif +HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_LIBS $(eval $(host-autotools-package))
Signature · 6 lines
2.41.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/7 package/gcc/gcc-final: remove useless comment and empty variable
In reply to Thomas Petazzoni via buildrootWe typically don't define empty variables in Buildroot, and the comment is a bit useless, so drop both.
--- package/gcc/gcc-final/gcc-final.mk | 3 --- 1 file changed, 3 deletions(-)
package/gcc/gcc-final/gcc-final.mk +0 -3
@@ -146,9 +146,6 @@ endif HOST_GCC_FINAL_LIBS = libgcc_s libatomic -# Handle the installation of libraries in /usr/lib -HOST_GCC_FINAL_USR_LIBS = - ifeq ($(BR2_INSTALL_LIBSTDCPP),y) HOST_GCC_FINAL_USR_LIBS += libstdc++ endif
Signature · 6 lines
2.41.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 3/7 package/gcc/gcc-final: move to make foreach loops
In reply to Thomas Petazzoni via buildrootThis provides better error handling, and is more in line with our current coding style. We also replace ";" by "&&" for the same reason of proper error handling.
--- package/gcc/gcc-final/gcc-final.mk | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-)
package/gcc/gcc-final/gcc-final.mk +20 -20
@@ -169,30 +169,30 @@ endif HOST_GCC_FINAL_USR_LIBS += $(call qstrip,$(BR2_TOOLCHAIN_EXTRA_LIBS)) define HOST_GCC_FINAL_INSTALL_STATIC_LIBS - for i in $(HOST_GCC_FINAL_LIBS) ; do \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.a \ - $(STAGING_DIR)/lib/ ; \ - done - for i in $(HOST_GCC_FINAL_USR_LIBS) ; do \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.a \ - $(STAGING_DIR)/usr/lib/ ; \ - done + $(foreach lib,$(HOST_GCC_FINAL_LIBS), \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).a \ + $(STAGING_DIR)/lib/ + ) + $(foreach lib,$(HOST_GCC_FINAL_USR_LIBS), \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).a \ + $(STAGING_DIR)/usr/lib/ + ) endef ifeq ($(BR2_STATIC_LIBS),) define HOST_GCC_FINAL_INSTALL_SHARED_LIBS - for i in $(HOST_GCC_FINAL_LIBS) ; do \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.so* \ - $(STAGING_DIR)/lib/ ; \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.so* \ - $(TARGET_DIR)/lib/ ; \ - done - for i in $(HOST_GCC_FINAL_USR_LIBS) ; do \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.so* \ - $(STAGING_DIR)/usr/lib/ ; \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$${i}.so* \ - $(TARGET_DIR)/usr/lib/ ; \ - done + $(foreach lib,$(HOST_GCC_FINAL_LIBS), \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).so* \ + $(STAGING_DIR)/lib/ && \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).so* \ + $(TARGET_DIR)/lib/ + ) + $(foreach lib,$(HOST_GCC_FINAL_USR_LIBS), \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).so* \ + $(STAGING_DIR)/usr/lib/ && \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).so* \ + $(TARGET_DIR)/usr/lib/ + ) endef endif
Signature · 6 lines
2.41.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 4/7 package/gcc/gcc-final: split lib install by target/staging
In reply to Thomas Petazzoni via buildrootRight now the library installation was split between installation of static libs vs. shared libs. In preparation for additional rework, it makes more sense to split it between target installation and staging installation.
For staging installation we simply install $(lib)* so that both static and shared libraries are copied.
For target installation, we only install when shared libraries are used, and we copy $(lib).so*
--- package/gcc/gcc-final/gcc-final.mk | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-)
package/gcc/gcc-final/gcc-final.mk +7 -11
@@ -168,28 +168,25 @@ endif HOST_GCC_FINAL_USR_LIBS += $(call qstrip,$(BR2_TOOLCHAIN_EXTRA_LIBS)) -define HOST_GCC_FINAL_INSTALL_STATIC_LIBS +define HOST_GCC_FINAL_INSTALL_STAGING_LIBS $(foreach lib,$(HOST_GCC_FINAL_LIBS), \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).a \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib)* \ $(STAGING_DIR)/lib/ ) $(foreach lib,$(HOST_GCC_FINAL_USR_LIBS), \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).a \ + cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib)* \ $(STAGING_DIR)/usr/lib/ ) endef ifeq ($(BR2_STATIC_LIBS),) -define HOST_GCC_FINAL_INSTALL_SHARED_LIBS +define HOST_GCC_FINAL_INSTALL_TARGET_LIBS + mkdir -p $(TARGET_DIR)/lib $(TARGET_DIR)/usr/lib $(foreach lib,$(HOST_GCC_FINAL_LIBS), \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).so* \ - $(STAGING_DIR)/lib/ && \ cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).so* \ $(TARGET_DIR)/lib/ ) $(foreach lib,$(HOST_GCC_FINAL_USR_LIBS), \ - cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).so* \ - $(STAGING_DIR)/usr/lib/ && \ cp -dpf $(HOST_GCC_FINAL_GCC_LIB_DIR)/$(lib).so* \ $(TARGET_DIR)/usr/lib/ )
@@ -197,9 +194,8 @@ endef endif define HOST_GCC_FINAL_INSTALL_LIBS - mkdir -p $(TARGET_DIR)/lib $(TARGET_DIR)/usr/lib - $(HOST_GCC_FINAL_INSTALL_STATIC_LIBS) - $(HOST_GCC_FINAL_INSTALL_SHARED_LIBS) + $(HOST_GCC_FINAL_INSTALL_STAGING_LIBS) + $(HOST_GCC_FINAL_INSTALL_TARGET_LIBS) endef HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_LIBS
Signature · 6 lines
2.41.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 5/7 package/gcc/gcc-final: move hook further down
In reply to Thomas Petazzoni via buildrootThe HOST_GCC_FINAL_M68K_LIBGCC_FIXUP hook is tweaking the staging directory. In preparation for additional rework, let's move it further down in the file so that the diff of the rework will be easier to look at.
--- package/gcc/gcc-final/gcc-final.mk | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
package/gcc/gcc-final/gcc-final.mk +9 -9
@@ -135,15 +135,6 @@ HOST_GCC_FINAL_POST_INSTALL_HOOKS += TOOLCHAIN_WRAPPER_INSTALL # -cc symlink to the wrapper is not created. HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_INSTALL_WRAPPER_AND_SIMPLE_SYMLINKS -# coldfire is not working without removing these object files from libgcc.a -ifeq ($(BR2_m68k_cf),y) -define HOST_GCC_FINAL_M68K_LIBGCC_FIXUP - find $(STAGING_DIR) -name libgcc.a -print | \ - while read t; do $(GNU_TARGET_NAME)-ar dv "$t" _ctors.o; done -endef -HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_M68K_LIBGCC_FIXUP -endif - HOST_GCC_FINAL_LIBS = libgcc_s libatomic ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
@@ -199,4 +190,13 @@ define HOST_GCC_FINAL_INSTALL_LIBS endef HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_LIBS +# coldfire is not working without removing these object files from libgcc.a +ifeq ($(BR2_m68k_cf),y) +define HOST_GCC_FINAL_M68K_LIBGCC_FIXUP + find $(STAGING_DIR) -name libgcc.a -print | \ + while read t; do $(GNU_TARGET_NAME)-ar dv "$t" _ctors.o; done +endef +HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_M68K_LIBGCC_FIXUP +endif + $(eval $(host-autotools-package))
Signature · 6 lines
2.41.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 6/7 package/gcc/gcc-final: add a target variant in charge of target installation
In reply to Thomas Petazzoni via buildrootThis commit adds a target package "gcc-final", which is a target package responsible for installing the gcc runtime libraries to STAGING_DIR and TARGET_DIR. This task was so far done by the host gcc-final package.
The motivation for splitting it up into a target package is to be able to properly handle the licensing situation of GCC, where the host part of GCC (the compiler itself) is under GPLv3, but the runtime libraries on the target are under GPLv3-with-exception. So far, we were not handling at all the license of gcc.
So what this commit does is:
* Add a gcc-final target package, which is depended on by the toolchain-buildroot package, and which depends on host-gcc-final.
* Moves to gcc-final the logic for installing target/staging libraries
--- package/gcc/Config.in | 3 ++ package/gcc/gcc-final/gcc-final.mk | 42 +++++++++---------- toolchain/toolchain-buildroot/Config.in | 1 + .../toolchain-buildroot.mk | 4 +- 4 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 package/gcc/Config.in
package/gcc/Config.in new file +3 -0
@@ -0,0 +1,3 @@ +config BR2_PACKAGE_GCC_FINAL + bool + default y if BR2_TOOLCHAIN_BUILDROOT
package/gcc/gcc-final/gcc-final.mk +21 -21
95 lines not on this page · raw message
toolchain/toolchain-buildroot/Config.in +1 -0
@@ -111,4 +111,5 @@ source "package/uclibc/Config.in" source "package/glibc/Config.in" source "package/binutils/Config.in.host" source "package/gcc/Config.in.host" +source "package/gcc/Config.in" endif
toolchain/toolchain-buildroot/toolchain-buildroot.mk +2 -2
@@ -6,11 +6,11 @@ BR_LIBC = $(call qstrip,$(BR2_TOOLCHAIN_BUILDROOT_LIBC)) -# Triggering the build of the host-gcc-final will automatically do the +# Triggering the build of the gcc-final will automatically do the # build of binutils, uClibc, kernel headers and all the intermediate # gcc steps. -TOOLCHAIN_BUILDROOT_DEPENDENCIES = host-gcc-final +TOOLCHAIN_BUILDROOT_DEPENDENCIES = gcc-final TOOLCHAIN_BUILDROOT_ADD_TOOLCHAIN_DEPENDENCY = NO
Signature · 6 lines
2.41.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 7/7 package/gcc: add license information
In reply to Thomas Petazzoni via buildrootThis commit adds the licensing information for the host-gcc-initial, host-gcc-final and gcc-final packages.
For host-gcc-initial and host-gcc-final, instead of duplicating the information, we use common variables coming from gcc.mk.
Of course for the target gcc-final, we use a different license than for host-gcc-final, as it's the whole point of this series: be able to describe that the target side of gcc is GPL-3.0 with linking exception.
--- package/gcc/gcc-final/gcc-final.mk | 4 ++++ package/gcc/gcc-initial/gcc-initial.mk | 2 ++ package/gcc/gcc.hash | 7 +++++++ package/gcc/gcc.mk | 3 +++ 4 files changed, 16 insertions(+)
package/gcc/gcc-final/gcc-final.mk +4 -0
@@ -7,6 +7,10 @@ GCC_FINAL_VERSION = $(GCC_VERSION) GCC_FINAL_SITE = $(GCC_SITE) GCC_FINAL_SOURCE = $(GCC_SOURCE) +GCC_FINAL_LICENSE = GPL-3.0-with-GCC-exception +GCC_FINAL_LICENSE_FILES = COPYING.RUNTIME +HOST_GCC_FINAL_LICENSE = $(HOST_GCC_LICENSE) +HOST_GCC_FINAL_LICENSE_FILES = $(HOST_GCC_LICENSE_FILES) GCC_FINAL_DEPENDENCIES = host-gcc-final GCC_FINAL_ADD_TOOLCHAIN_DEPENDENCY = NO
package/gcc/gcc-initial/gcc-initial.mk +2 -0
@@ -7,6 +7,8 @@ GCC_INITIAL_VERSION = $(GCC_VERSION) GCC_INITIAL_SITE = $(GCC_SITE) GCC_INITIAL_SOURCE = $(GCC_SOURCE) +HOST_GCC_INITIAL_LICENSE = $(HOST_GCC_LICENSE) +HOST_GCC_INITIAL_LICENSE_FILES = $(HOST_GCC_LICENSE_FILES) # We do not have a 'gcc' package per-se; we only have two incarnations, # gcc-initial and gcc-final. gcc-initial is just an internal step that
package/gcc/gcc.hash +7 -0
@@ -13,3 +13,10 @@ sha512 d99e4826a70db04504467e349e9fbaedaa5870766cda7c5cab50cdebedc4be755ebca5b7 sha512 b0853e2b1c5998044392023fa653e399e74118c46e616504ac59e1a2cf27620f94434767ce06b6cf4ca3dfb57f81d6eda92752befaf095ea5e564a9181b4659c gcc-arc-2020.09-release.tar.gz # Locally calculated (fetched from Github) sha512 2de7cf47333a4092b02d3bb98f4206f14966f1d139a724d09cf3b22f8a43ae0c704f33e6477d6367a03c29b265480dc900169e9d417006c5d46f0ae446b8c6f1 gcc-or1k-musl-5.4.0-20170218.tar.gz + +# Locally calculated +sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING +sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING3 +sha256 a853c2ffec17057872340eee242ae4d96cbf2b520ae27d903e1b2fef1a5f9d1c COPYING3.LIB +sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 COPYING.LIB +sha256 9d6b43ce4d8de0c878bf16b54d8e7a10d9bd42b75178153e3af6a815bdc90f74 COPYING.RUNTIME
package/gcc/gcc.mk +3 -0
@@ -18,6 +18,9 @@ GCC_SITE = $(BR2_GNU_MIRROR:/=)/gcc/gcc-$(GCC_VERSION) GCC_SOURCE = gcc-$(GCC_VERSION).tar.xz endif +HOST_GCC_LICENSE = GPL-2.0, GPL-3.0, LGPL-2.1, LGPL-3.0 +HOST_GCC_LICENSE_FILES = COPYING COPYING3 COPYING.LIB COPYING3.LIB + # # Xtensa special hook #
Signature · 6 lines
2.41.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Thomas,
Le 30/09/2023 à 09:54, Thomas Petazzoni via buildroot a écrit :
Quoted 9 lines
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.
Quoted 6 lines
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.
Series applied to master.
Best regards,
Romain
Quoted 20 lines
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
Quoted 10 lines
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
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot