* [PATCH v3] arm-toolchain: merge binary toolchain recipes
@ 2020-06-02 12:11 Jon Mason
2020-06-02 12:15 ` Diego Sueiro
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jon Mason @ 2020-06-02 12:11 UTC (permalink / raw)
To: meta-arm
Merge the majority of the binary toolchain recipes for building on an
x86 host into a common include file.
Also, found and fixed an error with both install commands where the name
was double nested on the copy. For example,
/usr/share/arm-none-eabi/arm-none-eabi/ due to the way it was being
copied.
Signed-off-by: Jon Mason <jdmason@kudzu.us>
---
.../gcc-aarch64-none-elf_9.2-2019.12.bb | 27 ++-----------------
.../gcc-arm-none-eabi_9-2019-q4-major.bb | 27 ++-----------------
.../external-arm-toolchain/gcc-x86host.inc | 24 +++++++++++++++++
3 files changed, 28 insertions(+), 50 deletions(-)
create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
index 2ec0f9c..1e4689c 100644
--- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
+++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
@@ -1,6 +1,8 @@
# Copyright (C) 2020 Texas Instruments Inc.
# Released under the MIT license (see COPYING.MIT for the terms)
+require gcc-x86host.inc
+
SUMMARY = "Baremetal GCC for Aarch64 processors"
LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
@@ -11,28 +13,3 @@ PROVIDES = "virtual/aarch64-none-elf-gcc"
SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-${PV}-x86_64-aarch64-none-elf.tar.xz"
SRC_URI[sha256sum] = "36d2cbe7c2984f2c20f562ac2f3ba524c59151adfa8ee10f1326c88de337b6d1"
-
-S = "${WORKDIR}/gcc-arm-${PV}-x86_64-aarch64-none-elf"
-
-COMPATIBLE_HOST = "x86_64.*-linux"
-
-do_install() {
- install -d ${D}${datadir}/aarch64-none-elf/
- cp -r ${S}/. ${D}${datadir}/aarch64-none-elf/
-
- install -d ${D}${bindir}
- # Symlink all executables into bindir
- for f in ${D}${datadir}/aarch64-none-elf/bin/aarch64-none-elf-*; do
- lnr $f ${D}${bindir}/$(basename $f)
- done
-}
-
-FILES_${PN} = "${datadir} ${bindir}"
-
-INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
-
-INHIBIT_SYSROOT_STRIP = "1"
-INHIBIT_PACKAGE_STRIP = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
-
-BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
index 84f6dba..a36f0aa 100644
--- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
+++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
@@ -1,6 +1,8 @@
# Copyright (C) 2019 Garmin Ltd. or its subsidiaries
# Released under the MIT license (see COPYING.MIT for the terms)
+require gcc-x86host.inc
+
SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
@@ -12,28 +14,3 @@ SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/${B
SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
SRC_URI[sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
-
-S = "${WORKDIR}/${BPN}-${PV}"
-
-COMPATIBLE_HOST = "x86_64.*-linux"
-
-do_install() {
- install -d ${D}${datadir}/arm-none-eabi/
- cp -r ${S}/. ${D}${datadir}/arm-none-eabi/
-
- install -d ${D}${bindir}
- # Symlink all executables into bindir
- for f in ${D}${datadir}/arm-none-eabi/bin/arm-none-eabi-*; do
- lnr $f ${D}${bindir}/$(basename $f)
- done
-}
-
-FILES_${PN} = "${datadir} ${bindir}"
-
-INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
-
-INHIBIT_SYSROOT_STRIP = "1"
-INHIBIT_PACKAGE_STRIP = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
-
-BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
new file mode 100644
index 0000000..f823f4f
--- /dev/null
+++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
@@ -0,0 +1,24 @@
+COMPATIBLE_HOST = "x86_64.*-linux"
+
+FILES_${PN} = "${datadir} ${bindir}"
+
+BINNAME = "${@d.getVar("BPN").strip("gcc-")}"
+
+do_install() {
+ install -d ${D}${datadir}/${BINNAME}/
+ cp -r ${S}/. ${D}${datadir}/
+
+ install -d ${D}${bindir}
+ # Symlink all executables into bindir
+ for f in ${D}${datadir}/${BINNAME}/bin/${BINNAME}-*; do
+ lnr $f ${D}${bindir}/$(basename $f)
+ done
+}
+
+INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
+
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3] arm-toolchain: merge binary toolchain recipes
2020-06-02 12:11 [PATCH v3] arm-toolchain: merge binary toolchain recipes Jon Mason
@ 2020-06-02 12:15 ` Diego Sueiro
2020-06-05 22:02 ` [meta-arm] " Denys Dmytriyenko
[not found] ` <1615C4F109492695.2031@lists.yoctoproject.org>
2 siblings, 0 replies; 4+ messages in thread
From: Diego Sueiro @ 2020-06-02 12:15 UTC (permalink / raw)
To: meta-arm
On Tue, Jun 2, 2020 at 01:11 PM, Jon Mason wrote:
>
> Merge the majority of the binary toolchain recipes for building on an
> x86 host into a common include file.
>
> Also, found and fixed an error with both install commands where the name
> was double nested on the copy. For example,
> /usr/share/arm-none-eabi/arm-none-eabi/ due to the way it was being
> copied.
>
> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Reviewed-by: Diego Sueiro <diego.sueiro@arm.com>
> ---
> .../gcc-aarch64-none-elf_9.2-2019.12.bb | 27 ++-----------------
> .../gcc-arm-none-eabi_9-2019-q4-major.bb | 27 ++-----------------
> .../external-arm-toolchain/gcc-x86host.inc | 24 +++++++++++++++++
> 3 files changed, 28 insertions(+), 50 deletions(-)
> create mode 100644
> meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
>
> diff --git
> b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> index 2ec0f9c..1e4689c 100644
> ---
> a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> +++
> b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> @@ -1,6 +1,8 @@
> # Copyright (C) 2020 Texas Instruments Inc.
> # Released under the MIT license (see COPYING.MIT for the terms)
>
> +require gcc-x86host.inc
> +
> SUMMARY = "Baremetal GCC for Aarch64 processors"
> LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
>
> @@ -11,28 +13,3 @@ PROVIDES = "virtual/aarch64-none-elf-gcc"
> SRC_URI =
> "https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-${PV}-x86_64-aarch64-none-elf.tar.xz"
>
> SRC_URI[sha256sum] =
> "36d2cbe7c2984f2c20f562ac2f3ba524c59151adfa8ee10f1326c88de337b6d1"
> -
> -S = "${WORKDIR}/gcc-arm-${PV}-x86_64-aarch64-none-elf"
> -
> -COMPATIBLE_HOST = "x86_64.*-linux"
> -
> -do_install() {
> - install -d ${D}${datadir}/aarch64-none-elf/
> - cp -r ${S}/. ${D}${datadir}/aarch64-none-elf/
> -
> - install -d ${D}${bindir}
> - # Symlink all executables into bindir
> - for f in ${D}${datadir}/aarch64-none-elf/bin/aarch64-none-elf-*; do
> - lnr $f ${D}${bindir}/$(basename $f)
> - done
> -}
> -
> -FILES_${PN} = "${datadir} ${bindir}"
> -
> -INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> -
> -INHIBIT_SYSROOT_STRIP = "1"
> -INHIBIT_PACKAGE_STRIP = "1"
> -INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> -
> -BBCLASSEXTEND = "native nativesdk"
> diff --git
> b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> index 84f6dba..a36f0aa 100644
> ---
> a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> +++
> b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> @@ -1,6 +1,8 @@
> # Copyright (C) 2019 Garmin Ltd. or its subsidiaries
> # Released under the MIT license (see COPYING.MIT for the terms)
>
> +require gcc-x86host.inc
> +
> SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
> LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
>
> @@ -12,28 +14,3 @@ SRC_URI =
> "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/${B
>
> SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
> SRC_URI[sha256sum] =
> "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
> -
> -S = "${WORKDIR}/${BPN}-${PV}"
> -
> -COMPATIBLE_HOST = "x86_64.*-linux"
> -
> -do_install() {
> - install -d ${D}${datadir}/arm-none-eabi/
> - cp -r ${S}/. ${D}${datadir}/arm-none-eabi/
> -
> - install -d ${D}${bindir}
> - # Symlink all executables into bindir
> - for f in ${D}${datadir}/arm-none-eabi/bin/arm-none-eabi-*; do
> - lnr $f ${D}${bindir}/$(basename $f)
> - done
> -}
> -
> -FILES_${PN} = "${datadir} ${bindir}"
> -
> -INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> -
> -INHIBIT_SYSROOT_STRIP = "1"
> -INHIBIT_PACKAGE_STRIP = "1"
> -INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> -
> -BBCLASSEXTEND = "native nativesdk"
> diff --git
> a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
> b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
> new file mode 100644
> index 0000000..f823f4f
> --- /dev/null
> +++
> b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
> @@ -0,0 +1,24 @@
> +COMPATIBLE_HOST = "x86_64.*-linux"
> +
> +FILES_${PN} = "${datadir} ${bindir}"
> +
> +BINNAME = "${@d.getVar("BPN").strip("gcc-")}"
> +
> +do_install() {
> + install -d ${D}${datadir}/${BINNAME}/
> + cp -r ${S}/. ${D}${datadir}/
> +
> + install -d ${D}${bindir}
> + # Symlink all executables into bindir
> + for f in ${D}${datadir}/${BINNAME}/bin/${BINNAME}-*; do
> + lnr $f ${D}${bindir}/$(basename $f)
> + done
> +}
> +
> +INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> +
> +INHIBIT_SYSROOT_STRIP = "1"
> +INHIBIT_PACKAGE_STRIP = "1"
> +INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.20.1
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-arm] [PATCH v3] arm-toolchain: merge binary toolchain recipes
2020-06-02 12:11 [PATCH v3] arm-toolchain: merge binary toolchain recipes Jon Mason
2020-06-02 12:15 ` Diego Sueiro
@ 2020-06-05 22:02 ` Denys Dmytriyenko
[not found] ` <1615C4F109492695.2031@lists.yoctoproject.org>
2 siblings, 0 replies; 4+ messages in thread
From: Denys Dmytriyenko @ 2020-06-05 22:02 UTC (permalink / raw)
To: Jon Mason; +Cc: meta-arm
On Tue, Jun 02, 2020 at 08:11:55AM -0400, Jon Mason wrote:
> Merge the majority of the binary toolchain recipes for building on an
> x86 host into a common include file.
>
> Also, found and fixed an error with both install commands where the name
> was double nested on the copy. For example,
> /usr/share/arm-none-eabi/arm-none-eabi/ due to the way it was being
> copied.
>
> Signed-off-by: Jon Mason <jdmason@kudzu.us>
> ---
Changes in v3?
> .../gcc-aarch64-none-elf_9.2-2019.12.bb | 27 ++-----------------
> .../gcc-arm-none-eabi_9-2019-q4-major.bb | 27 ++-----------------
> .../external-arm-toolchain/gcc-x86host.inc | 24 +++++++++++++++++
> 3 files changed, 28 insertions(+), 50 deletions(-)
> create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
>
> diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> index 2ec0f9c..1e4689c 100644
> --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> @@ -1,6 +1,8 @@
> # Copyright (C) 2020 Texas Instruments Inc.
> # Released under the MIT license (see COPYING.MIT for the terms)
>
> +require gcc-x86host.inc
> +
> SUMMARY = "Baremetal GCC for Aarch64 processors"
> LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
>
> @@ -11,28 +13,3 @@ PROVIDES = "virtual/aarch64-none-elf-gcc"
> SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-${PV}-x86_64-aarch64-none-elf.tar.xz"
>
> SRC_URI[sha256sum] = "36d2cbe7c2984f2c20f562ac2f3ba524c59151adfa8ee10f1326c88de337b6d1"
> -
> -S = "${WORKDIR}/gcc-arm-${PV}-x86_64-aarch64-none-elf"
^^^
I see you dropped setting ${S} completely in the .inc - have you tried
gcc-aarch64-none-elf recipe, as default ${S} won't work from the first look
> -COMPATIBLE_HOST = "x86_64.*-linux"
> -
> -do_install() {
> - install -d ${D}${datadir}/aarch64-none-elf/
> - cp -r ${S}/. ${D}${datadir}/aarch64-none-elf/
> -
> - install -d ${D}${bindir}
> - # Symlink all executables into bindir
> - for f in ${D}${datadir}/aarch64-none-elf/bin/aarch64-none-elf-*; do
> - lnr $f ${D}${bindir}/$(basename $f)
> - done
> -}
> -
> -FILES_${PN} = "${datadir} ${bindir}"
> -
> -INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> -
> -INHIBIT_SYSROOT_STRIP = "1"
> -INHIBIT_PACKAGE_STRIP = "1"
> -INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> -
> -BBCLASSEXTEND = "native nativesdk"
> diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> index 84f6dba..a36f0aa 100644
> --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> @@ -1,6 +1,8 @@
> # Copyright (C) 2019 Garmin Ltd. or its subsidiaries
> # Released under the MIT license (see COPYING.MIT for the terms)
>
> +require gcc-x86host.inc
> +
> SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
> LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
>
> @@ -12,28 +14,3 @@ SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/${B
>
> SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
> SRC_URI[sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
> -
> -S = "${WORKDIR}/${BPN}-${PV}"
> -
> -COMPATIBLE_HOST = "x86_64.*-linux"
> -
> -do_install() {
> - install -d ${D}${datadir}/arm-none-eabi/
> - cp -r ${S}/. ${D}${datadir}/arm-none-eabi/
> -
> - install -d ${D}${bindir}
> - # Symlink all executables into bindir
> - for f in ${D}${datadir}/arm-none-eabi/bin/arm-none-eabi-*; do
> - lnr $f ${D}${bindir}/$(basename $f)
> - done
> -}
> -
> -FILES_${PN} = "${datadir} ${bindir}"
> -
> -INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> -
> -INHIBIT_SYSROOT_STRIP = "1"
> -INHIBIT_PACKAGE_STRIP = "1"
> -INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> -
> -BBCLASSEXTEND = "native nativesdk"
> diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
> new file mode 100644
> index 0000000..f823f4f
> --- /dev/null
> +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
> @@ -0,0 +1,24 @@
> +COMPATIBLE_HOST = "x86_64.*-linux"
> +
> +FILES_${PN} = "${datadir} ${bindir}"
> +
> +BINNAME = "${@d.getVar("BPN").strip("gcc-")}"
> +
> +do_install() {
> + install -d ${D}${datadir}/${BINNAME}/
> + cp -r ${S}/. ${D}${datadir}/
> +
> + install -d ${D}${bindir}
> + # Symlink all executables into bindir
> + for f in ${D}${datadir}/${BINNAME}/bin/${BINNAME}-*; do
> + lnr $f ${D}${bindir}/$(basename $f)
> + done
> +}
> +
> +INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> +
> +INHIBIT_SYSROOT_STRIP = "1"
> +INHIBIT_PACKAGE_STRIP = "1"
> +INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.20.1
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-arm] [PATCH v3] arm-toolchain: merge binary toolchain recipes
[not found] ` <1615C4F109492695.2031@lists.yoctoproject.org>
@ 2020-06-05 22:30 ` Denys Dmytriyenko
0 siblings, 0 replies; 4+ messages in thread
From: Denys Dmytriyenko @ 2020-06-05 22:30 UTC (permalink / raw)
To: Jon Mason; +Cc: meta-arm
On Fri, Jun 05, 2020 at 06:02:58PM -0400, Denys Dmytriyenko wrote:
> On Tue, Jun 02, 2020 at 08:11:55AM -0400, Jon Mason wrote:
> > Merge the majority of the binary toolchain recipes for building on an
> > x86 host into a common include file.
> >
> > Also, found and fixed an error with both install commands where the name
> > was double nested on the copy. For example,
> > /usr/share/arm-none-eabi/arm-none-eabi/ due to the way it was being
> > copied.
> >
> > Signed-off-by: Jon Mason <jdmason@kudzu.us>
> > ---
>
> Changes in v3?
>
> > .../gcc-aarch64-none-elf_9.2-2019.12.bb | 27 ++-----------------
> > .../gcc-arm-none-eabi_9-2019-q4-major.bb | 27 ++-----------------
> > .../external-arm-toolchain/gcc-x86host.inc | 24 +++++++++++++++++
> > 3 files changed, 28 insertions(+), 50 deletions(-)
> > create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
> >
> > diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> > index 2ec0f9c..1e4689c 100644
> > --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> > +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb
> > @@ -1,6 +1,8 @@
> > # Copyright (C) 2020 Texas Instruments Inc.
> > # Released under the MIT license (see COPYING.MIT for the terms)
> >
> > +require gcc-x86host.inc
> > +
> > SUMMARY = "Baremetal GCC for Aarch64 processors"
> > LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
> >
> > @@ -11,28 +13,3 @@ PROVIDES = "virtual/aarch64-none-elf-gcc"
> > SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-${PV}-x86_64-aarch64-none-elf.tar.xz"
> >
> > SRC_URI[sha256sum] = "36d2cbe7c2984f2c20f562ac2f3ba524c59151adfa8ee10f1326c88de337b6d1"
> > -
> > -S = "${WORKDIR}/gcc-arm-${PV}-x86_64-aarch64-none-elf"
>
> ^^^
> I see you dropped setting ${S} completely in the .inc - have you tried
> gcc-aarch64-none-elf recipe, as default ${S} won't work from the first look
So, I see you merged this to master w/o testing...
ERROR: nativesdk-gcc-aarch64-none-elf-9.2-2019.12-r0 do_populate_lic: QA Issue: nativesdk-gcc-aarch64-none-elf: LIC_FILES_CHKSUM points to an invalid file:
.../nativesdk-gcc-aarch64-none-elf/9.2-2019.12-r0/gcc-aarch64-none-elf-9.2-2019.12/share/doc/gcc/GNU-Free-Documentation-License.html [license-checksum]
ERROR: gcc-aarch64-none-elf-native-9.2-2019.12-r0 do_populate_lic: QA Issue: gcc-aarch64-none-elf-native: LIC_FILES_CHKSUM points to an invalid file:
.../gcc-aarch64-none-elf-native/9.2-2019.12-r0/gcc-aarch64-none-elf-9.2-2019.12/share/doc/gcc/GNU-Free-Documentation-License.html [license-checksum]
And even if you suppress license-checksum QA, you'll get empty package/sysroot.
> > -COMPATIBLE_HOST = "x86_64.*-linux"
> > -
> > -do_install() {
> > - install -d ${D}${datadir}/aarch64-none-elf/
> > - cp -r ${S}/. ${D}${datadir}/aarch64-none-elf/
> > -
> > - install -d ${D}${bindir}
> > - # Symlink all executables into bindir
> > - for f in ${D}${datadir}/aarch64-none-elf/bin/aarch64-none-elf-*; do
> > - lnr $f ${D}${bindir}/$(basename $f)
> > - done
> > -}
> > -
> > -FILES_${PN} = "${datadir} ${bindir}"
> > -
> > -INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> > -
> > -INHIBIT_SYSROOT_STRIP = "1"
> > -INHIBIT_PACKAGE_STRIP = "1"
> > -INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> > -
> > -BBCLASSEXTEND = "native nativesdk"
> > diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> > index 84f6dba..a36f0aa 100644
> > --- a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> > +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
> > @@ -1,6 +1,8 @@
> > # Copyright (C) 2019 Garmin Ltd. or its subsidiaries
> > # Released under the MIT license (see COPYING.MIT for the terms)
> >
> > +require gcc-x86host.inc
> > +
> > SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
> > LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
> >
> > @@ -12,28 +14,3 @@ SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/${B
> >
> > SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
> > SRC_URI[sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
> > -
> > -S = "${WORKDIR}/${BPN}-${PV}"
> > -
> > -COMPATIBLE_HOST = "x86_64.*-linux"
> > -
> > -do_install() {
> > - install -d ${D}${datadir}/arm-none-eabi/
> > - cp -r ${S}/. ${D}${datadir}/arm-none-eabi/
> > -
> > - install -d ${D}${bindir}
> > - # Symlink all executables into bindir
> > - for f in ${D}${datadir}/arm-none-eabi/bin/arm-none-eabi-*; do
> > - lnr $f ${D}${bindir}/$(basename $f)
> > - done
> > -}
> > -
> > -FILES_${PN} = "${datadir} ${bindir}"
> > -
> > -INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> > -
> > -INHIBIT_SYSROOT_STRIP = "1"
> > -INHIBIT_PACKAGE_STRIP = "1"
> > -INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> > -
> > -BBCLASSEXTEND = "native nativesdk"
> > diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
> > new file mode 100644
> > index 0000000..f823f4f
> > --- /dev/null
> > +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc
> > @@ -0,0 +1,24 @@
> > +COMPATIBLE_HOST = "x86_64.*-linux"
> > +
> > +FILES_${PN} = "${datadir} ${bindir}"
> > +
> > +BINNAME = "${@d.getVar("BPN").strip("gcc-")}"
> > +
> > +do_install() {
> > + install -d ${D}${datadir}/${BINNAME}/
> > + cp -r ${S}/. ${D}${datadir}/
> > +
> > + install -d ${D}${bindir}
> > + # Symlink all executables into bindir
> > + for f in ${D}${datadir}/${BINNAME}/bin/${BINNAME}-*; do
> > + lnr $f ${D}${bindir}/$(basename $f)
> > + done
> > +}
> > +
> > +INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
> > +
> > +INHIBIT_SYSROOT_STRIP = "1"
> > +INHIBIT_PACKAGE_STRIP = "1"
> > +INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > --
> > 2.20.1
> >
>
> >
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-06-05 22:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-02 12:11 [PATCH v3] arm-toolchain: merge binary toolchain recipes Jon Mason
2020-06-02 12:15 ` Diego Sueiro
2020-06-05 22:02 ` [meta-arm] " Denys Dmytriyenko
[not found] ` <1615C4F109492695.2031@lists.yoctoproject.org>
2020-06-05 22:30 ` Denys Dmytriyenko
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.