All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Denys Dmytriyenko" <denis@denix.org>
To: timothy.mertz@garmin.com
Cc: meta-arm@lists.yoctoproject.org, Joshua Watt <Joshua.Watt@garmin.com>
Subject: Re: [meta-arm] [PATCH v2] external-arm-sdk-toolchain: Fix parsing error with INCOMPATIBLE_LICENSE
Date: Tue, 29 Jun 2021 20:12:55 -0400	[thread overview]
Message-ID: <20210630001255.GC1528@denix.org> (raw)
In-Reply-To: <20210629210207.32008-1-timothy.mertz@garmin.com>

On Tue, Jun 29, 2021 at 04:02:07PM -0500, Timothy Mertz via lists.yoctoproject.org wrote:
> This change fixes parsing error that occurs when INCOMPATIBLE_LICENSE =
> "GPLv3" by defining EAT_BFD_LICENSE, EAT_GDB_LICENSE and EAT_RLE_LICENSE
> in license.inc and requiring it in external-arm-sdk-toolchain.bb
> 
> Definitions in external-arm-toolchain-versions.inc are made redundant so
> they are removed.
> 
> Signed-off-by: Timothy Mertz <timothy.mertz@garmin.com>
> Signed-off-by: Joshua Watt <Joshua.Watt@garmin.com>

Reviewed-by: Denys Dmytriyenko <denis@denix.org>


> ---
>  .../include/external-arm-toolchain-versions.inc    | 14 --------------
>  .../external-arm-sdk-toolchain.bb                  |  5 ++---
>  .../external-arm-toolchain/license.inc             |  3 +++
>  3 files changed, 5 insertions(+), 17 deletions(-)
> 
> diff --git a/meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc b/meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc
> index 9d4f967..a89f2f0 100644
> --- a/meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc
> +++ b/meta-arm-toolchain/conf/distro/include/external-arm-toolchain-versions.inc
> @@ -139,19 +139,5 @@ python external_arm_toolchain_version_handler () {
>      d.setVar('EAT_VER_KERNEL', eat_get_kernel_version(ld))
>      d.setVar('EAT_VER_GDB', eat_get_gdb_version(ld))
>      d.setVar('EAT_VER_BFD', eat_get_bfd_version(ld))
> -
> -    lc_libc = "LGPL-2.1"
> -    lc_gcc = "GPL-3.0"
> -    lc_rle = "GPL-3.0-with-GCC-exception"
> -    lc_gdb = "GPL-3.0"
> -    lc_bfd = "GPL-3.0"
> -
> -    d.setVar('EAT_LIBC_LICENSE', lc_libc)
> -    d.setVar('EAT_GCC_LICENSE', lc_gcc)
> -    d.setVar('EAT_RLE_LICENSE', lc_rle)
> -    d.setVar('EAT_GDB_LICENSE', lc_gdb)
> -    d.setVar('EAT_BFD_LICENSE', lc_bfd)
> -
> -    d.setVar('EAT_LICENSE', "%s & %s & %s & %s & %s" % (lc_libc, lc_gcc, lc_rle, lc_gdb, lc_bfd))
>  }
>  addhandler external_arm_toolchain_version_handler
> diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-sdk-toolchain.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-sdk-toolchain.bb
> index 3f12b4d..4f0adce 100644
> --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-sdk-toolchain.bb
> +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-sdk-toolchain.bb
> @@ -1,5 +1,7 @@
>  inherit cross-canadian
>  
> +require license.inc
> +
>  PN = "external-arm-sdk-toolchain-${TARGET_ARCH}"
>  BPN = "external-arm-sdk-toolchain"
>  PV = "${EAT_VER_MAIN}"
> @@ -10,9 +12,6 @@ INHIBIT_SYSROOT_STRIP = "1"
>  INHIBIT_DEFAULT_DEPS = "1"
>  EXCLUDE_FROM_SHLIBS = "1"
>  
> -EAT_LICENSE ??= ""
> -
> -LICENSE = "${EAT_LICENSE}"
>  LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
>  
>  # Skip packaging QA checks for prebuilt binaries
> diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/license.inc b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/license.inc
> index b6ee42c..fcc9268 100644
> --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/license.inc
> +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/license.inc
> @@ -1,7 +1,10 @@
>  LICENSE = "GPL-3.0-with-GCC-exception & GPLv3 & GPLv2 & LGPLv3 & LGPLv2.1 & LGPLv2"
>  
> +EAT_BFD_LICENSE = "GPL-3.0"
>  EAT_GCC_LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
> +EAT_GDB_LICENSE = "GPL-3.0"
>  EAT_LIBC_LICENSE = "GPLv2 & LGPLv2.1"
> +EAT_RLE_LICENSE = "GPL-3.0-with-GCC-exception"
>  
>  LICENSE_${PN} = "${EAT_LIBC_LICENSE}"
>  LICENSE_${PN}-dev = "${EAT_LIBC_LICENSE}"
> -- 
> 2.17.1
> 

-- 
Regards,
Denys Dmytriyenko <denis@denix.org>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964

  reply	other threads:[~2021-06-30  0:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210511150609.15943-1-Joshua.Watt@garmin.com>
2021-06-29 21:02 ` [PATCH v2] external-arm-sdk-toolchain: Fix parsing error with INCOMPATIBLE_LICENSE timothy.mertz
2021-06-30  0:12   ` Denys Dmytriyenko [this message]
2021-07-01 13:11   ` Timothy Mertz
2021-07-01 13:18   ` [meta-arm] " Sumit Garg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210630001255.GC1528@denix.org \
    --to=denis@denix.org \
    --cc=Joshua.Watt@garmin.com \
    --cc=meta-arm@lists.yoctoproject.org \
    --cc=timothy.mertz@garmin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.