* [rocko/master][PATCH] gcc-arm-none-eabi: extend to nativesdk class
@ 2019-02-20 14:12 Jacob Stiffler
2019-02-22 2:29 ` Denys Dmytriyenko
0 siblings, 1 reply; 4+ messages in thread
From: Jacob Stiffler @ 2019-02-20 14:12 UTC (permalink / raw)
To: meta-ti
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
...1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
rename recipes-ti/devtools/{gcc-arm-none-eabi-native_6-2017-q1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} (67%)
diff --git a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
similarity index 67%
rename from recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb
rename to recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
index 1140f27..c10ee16 100644
--- a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb
+++ b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
@@ -3,7 +3,6 @@ LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=c224e429f53a1a6ce70bf8986ea2990b"
-inherit native
require recipes-ti/includes/ti-paths.inc
SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2;name=gcc-arm-none"
@@ -13,6 +12,17 @@ SRC_URI[gcc-arm-none.sha256sum] = "e7aad2579f02e3b095c6d7899ca5e6a70cfa9b8a8cbd6
S = "${WORKDIR}/gcc-arm-none-eabi-6-2017-q1-update"
+# only x86_64 is supported
+python __anonymous() {
+ host_arch = d.getVar("HOST_ARCH")
+
+ if host_arch != "x86_64":
+ pkgn = d.getVar("PN")
+ pkgv = d.getVar("PV")
+
+ raise bb.parse.SkipPackage("%s-%s ONLY supported for x86_64 target" % (pkgn, pkgv))
+}
+
do_install() {
install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
@@ -20,4 +30,6 @@ do_install() {
FILES_${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*"
-INSANE_SKIP_${PN} = "already-stripped"
+INSANE_SKIP_${PN} = "already-stripped libdir staticdev"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [rocko/master][PATCH] gcc-arm-none-eabi: extend to nativesdk class
2019-02-20 14:12 [rocko/master][PATCH] gcc-arm-none-eabi: extend to nativesdk class Jacob Stiffler
@ 2019-02-22 2:29 ` Denys Dmytriyenko
2019-02-22 17:12 ` Jacob Stiffler
0 siblings, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2019-02-22 2:29 UTC (permalink / raw)
To: Jacob Stiffler; +Cc: meta-ti
On Wed, Feb 20, 2019 at 09:12:06AM -0500, Jacob Stiffler wrote:
> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
> ...1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} | 16 ++++++++++++++--
> 1 file changed, 14 insertions(+), 2 deletions(-)
> rename recipes-ti/devtools/{gcc-arm-none-eabi-native_6-2017-q1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} (67%)
>
> diff --git a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
> similarity index 67%
> rename from recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb
> rename to recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
> index 1140f27..c10ee16 100644
> --- a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb
> +++ b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
> @@ -3,7 +3,6 @@ LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
>
> LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=c224e429f53a1a6ce70bf8986ea2990b"
>
> -inherit native
> require recipes-ti/includes/ti-paths.inc
>
> SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2;name=gcc-arm-none"
> @@ -13,6 +12,17 @@ SRC_URI[gcc-arm-none.sha256sum] = "e7aad2579f02e3b095c6d7899ca5e6a70cfa9b8a8cbd6
>
> S = "${WORKDIR}/gcc-arm-none-eabi-6-2017-q1-update"
>
> +# only x86_64 is supported
> +python __anonymous() {
> + host_arch = d.getVar("HOST_ARCH")
> +
> + if host_arch != "x86_64":
> + pkgn = d.getVar("PN")
> + pkgv = d.getVar("PV")
> +
> + raise bb.parse.SkipPackage("%s-%s ONLY supported for x86_64 target" % (pkgn, pkgv))
> +}
> +
I've been thinking about this one.
Would it be better to have a common .inc file and 2 one-line native and
nativesdk recipes that include that .inc file, and avoid __anonymous()
function altogether?
> do_install() {
> install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
> cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
> @@ -20,4 +30,6 @@ do_install() {
>
> FILES_${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*"
>
> -INSANE_SKIP_${PN} = "already-stripped"
> +INSANE_SKIP_${PN} = "already-stripped libdir staticdev"
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [rocko/master][PATCH] gcc-arm-none-eabi: extend to nativesdk class
2019-02-22 2:29 ` Denys Dmytriyenko
@ 2019-02-22 17:12 ` Jacob Stiffler
2019-02-22 20:23 ` Denys Dmytriyenko
0 siblings, 1 reply; 4+ messages in thread
From: Jacob Stiffler @ 2019-02-22 17:12 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: meta-ti
On 2/21/2019 9:29 PM, Denys Dmytriyenko wrote:
> On Wed, Feb 20, 2019 at 09:12:06AM -0500, Jacob Stiffler wrote:
>> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
>> ---
>> ...1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} | 16 ++++++++++++++--
>> 1 file changed, 14 insertions(+), 2 deletions(-)
>> rename recipes-ti/devtools/{gcc-arm-none-eabi-native_6-2017-q1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} (67%)
>>
>> diff --git a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
>> similarity index 67%
>> rename from recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb
>> rename to recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
>> index 1140f27..c10ee16 100644
>> --- a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb
>> +++ b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
>> @@ -3,7 +3,6 @@ LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
>>
>> LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=c224e429f53a1a6ce70bf8986ea2990b"
>>
>> -inherit native
>> require recipes-ti/includes/ti-paths.inc
>>
>> SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2;name=gcc-arm-none"
>> @@ -13,6 +12,17 @@ SRC_URI[gcc-arm-none.sha256sum] = "e7aad2579f02e3b095c6d7899ca5e6a70cfa9b8a8cbd6
>>
>> S = "${WORKDIR}/gcc-arm-none-eabi-6-2017-q1-update"
>>
>> +# only x86_64 is supported
>> +python __anonymous() {
>> + host_arch = d.getVar("HOST_ARCH")
>> +
>> + if host_arch != "x86_64":
>> + pkgn = d.getVar("PN")
>> + pkgv = d.getVar("PV")
>> +
>> + raise bb.parse.SkipPackage("%s-%s ONLY supported for x86_64 target" % (pkgn, pkgv))
>> +}
>> +
> I've been thinking about this one.
> Would it be better to have a common .inc file and 2 one-line native and
> nativesdk recipes that include that .inc file, and avoid __anonymous()
> function altogether?
>
Would COMPATIBLE_HOST be more appropriate here? It appears that it will
have the same effect as this anonymous function.
>
>> do_install() {
>> install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
>> cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
>> @@ -20,4 +30,6 @@ do_install() {
>>
>> FILES_${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*"
>>
>> -INSANE_SKIP_${PN} = "already-stripped"
>> +INSANE_SKIP_${PN} = "already-stripped libdir staticdev"
>> +
>> +BBCLASSEXTEND = "native nativesdk"
>> --
>> 2.7.4
>>
>> --
>> _______________________________________________
>> meta-ti mailing list
>> meta-ti@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-ti
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [rocko/master][PATCH] gcc-arm-none-eabi: extend to nativesdk class
2019-02-22 17:12 ` Jacob Stiffler
@ 2019-02-22 20:23 ` Denys Dmytriyenko
0 siblings, 0 replies; 4+ messages in thread
From: Denys Dmytriyenko @ 2019-02-22 20:23 UTC (permalink / raw)
To: Jacob Stiffler; +Cc: meta-ti
On Fri, Feb 22, 2019 at 12:12:44PM -0500, Jacob Stiffler wrote:
>
> On 2/21/2019 9:29 PM, Denys Dmytriyenko wrote:
> >On Wed, Feb 20, 2019 at 09:12:06AM -0500, Jacob Stiffler wrote:
> >>Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> >>---
> >> ...1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} | 16 ++++++++++++++--
> >> 1 file changed, 14 insertions(+), 2 deletions(-)
> >> rename recipes-ti/devtools/{gcc-arm-none-eabi-native_6-2017-q1-update.bb => gcc-arm-none-eabi_6-2017-q1-update.bb} (67%)
> >>
> >>diff --git a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
> >>similarity index 67%
> >>rename from recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb
> >>rename to recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
> >>index 1140f27..c10ee16 100644
> >>--- a/recipes-ti/devtools/gcc-arm-none-eabi-native_6-2017-q1-update.bb
> >>+++ b/recipes-ti/devtools/gcc-arm-none-eabi_6-2017-q1-update.bb
> >>@@ -3,7 +3,6 @@ LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
> >> LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=c224e429f53a1a6ce70bf8986ea2990b"
> >>-inherit native
> >> require recipes-ti/includes/ti-paths.inc
> >> SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2;name=gcc-arm-none"
> >>@@ -13,6 +12,17 @@ SRC_URI[gcc-arm-none.sha256sum] = "e7aad2579f02e3b095c6d7899ca5e6a70cfa9b8a8cbd6
> >> S = "${WORKDIR}/gcc-arm-none-eabi-6-2017-q1-update"
> >>+# only x86_64 is supported
> >>+python __anonymous() {
> >>+ host_arch = d.getVar("HOST_ARCH")
> >>+
> >>+ if host_arch != "x86_64":
> >>+ pkgn = d.getVar("PN")
> >>+ pkgv = d.getVar("PV")
> >>+
> >>+ raise bb.parse.SkipPackage("%s-%s ONLY supported for x86_64 target" % (pkgn, pkgv))
> >>+}
> >>+
> >I've been thinking about this one.
> >Would it be better to have a common .inc file and 2 one-line native and
> >nativesdk recipes that include that .inc file, and avoid __anonymous()
> >function altogether?
> >
>
> Would COMPATIBLE_HOST be more appropriate here? It appears that it will have
> the same effect as this anonymous function.
Fine with me, thanks.
> >> do_install() {
> >> install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
> >> cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
> >>@@ -20,4 +30,6 @@ do_install() {
> >> FILES_${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*"
> >>-INSANE_SKIP_${PN} = "already-stripped"
> >>+INSANE_SKIP_${PN} = "already-stripped libdir staticdev"
> >>+
> >>+BBCLASSEXTEND = "native nativesdk"
> >>--
> >>2.7.4
> >>
> >>--
> >>_______________________________________________
> >>meta-ti mailing list
> >>meta-ti@yoctoproject.org
> >>https://lists.yoctoproject.org/listinfo/meta-ti
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-02-22 20:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-20 14:12 [rocko/master][PATCH] gcc-arm-none-eabi: extend to nativesdk class Jacob Stiffler
2019-02-22 2:29 ` Denys Dmytriyenko
2019-02-22 17:12 ` Jacob Stiffler
2019-02-22 20:23 ` 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.