The PTXdist binutils package gets its version from the toolchain. So it
always has the same version as the toolchain cross-binutils package.
Export the license data here, so it can be imported in the ptxdist package.

Signed-off-by: Michael Olbrich <[email protected]>
---

Something like this I think. And then:

-include 
$(PTXDIST_PLATFORMDIR)/selected_toolchain/../share/compliance/binutils.make

in rules/binutils.make in PTXdist.

Michael

 rules/cross-binutils.make | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/rules/cross-binutils.make b/rules/cross-binutils.make
index f29c2f821a02..2cdfdfc5d9a7 100644
--- a/rules/cross-binutils.make
+++ b/rules/cross-binutils.make
@@ -75,6 +75,13 @@ endif
        @for bin in 
$(CROSS_BINUTILS_PKGDIR)$(PTXCONF_PREFIX_CROSS)/$(PTXCONF_GNU_TARGET)/bin/*; do 
\
                ln -vsf ../../bin/$(COMPILER_PREFIX)$$(basename $${bin}) 
$${bin} || break; \
        done
+
+       @$(call world/env, CROSS_BINUTILS) \
+               pkg_license_target=binutils \
+               pkg_license_target_license=$(PTXCONF_CROSS_BINUTILS_LICENSE) \
+               pkg_license_target_pattern=$(PTXCONF_CROSS_BINUTILS_LICENSES) \
+               ptxd_make_world_copy_license
+
        @$(call touch)
 
 $(STATEDIR)/cross-binutils.install.post:
-- 
2.20.1


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to