Skip to contentSkip to conversation

arm-toolchain: use variables

PATCH In review Jon Mason 4 participants 7 messages Sep 27, 2021 – Oct 6, 2021

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 arm-toolchain: use variables

Use variables to make it easier to upgrade when the time comes.

Change-Id I9f2575279fe79bc0d895d47fdaffd2d5edd4aa59
---
 .../recipes-devtools/gcc/gcc-arm-10.3.inc              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +5 -5
index 72a6b46..187f4f4 100644
@@ -1,8 +1,8 @@
 require recipes-devtools/gcc/gcc-common.inc
 
 # Third digit in PV should be incremented after a minor release
-
-PV = "arm-10.3"
+GCC_VERSION = "10.3"
+PV = "arm-${GCC_VERSION}"
 CVE_VERSION = "10.3"
 
 # BINV should be incremented to a revision after a minor gcc release
@@ -13,7 +13,7 @@ MMYY = "21.07"
 RELEASE = "20${MMYY}"
 PR = "r${RELEASE}"
 
-FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-10.3:${FILE_DIRNAME}/gcc-arm-10.3/backport:"
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}:${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}/backport:"
 
 DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
@@ -28,7 +28,7 @@ LIC_FILES_CHKSUM = "\
     file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
 "
 
-BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/srcrel/gcc-arm-src-snapshot-10.3-2021.07.tar.xz"
+BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/${GCC_VERSION}-${RELEASE}/srcrel/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}.tar.xz"
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -72,7 +72,7 @@ SRC_URI = "\
 "
 SRC_URI[md5sum] = "5f582fd50eee0e40475b93d2d7a18979"
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-10.3-2021.07"
+S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}"
 
 # For dev release snapshotting
 #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 13 lines · Jon Mason

Use variables to make it easier to upgrade when the time comes.

Change-Id I9f2575279fe79bc0d895d47fdaffd2d5edd4aa59
---
 .../recipes-devtools/gcc/gcc-arm-10.3.inc              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +0 -0
index 72a6b46..187f4f4 100644

meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc line 4

Quoted 6 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +1 -2
@@ -1,8 +1,8 @@
 require recipes-devtools/gcc/gcc-common.inc
 
 # Third digit in PV should be incremented after a minor release
-
-PV = "arm-10.3"
+GCC_VERSION = "10.3"

Isn't it too close to be confused with the global GCCVERSION variable in meta/conf/distro/include/tcmode-default.inc that specifies gcc preference. I realize this GCC_VERSION has a different use, but maybe the name should be a bit clearer?

Quoted 34 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +4 -3
+PV = "arm-${GCC_VERSION}"
 CVE_VERSION = "10.3"
 
 # BINV should be incremented to a revision after a minor gcc release
@@ -13,7 +13,7 @@ MMYY = "21.07"
 RELEASE = "20${MMYY}"
 PR = "r${RELEASE}"
 
-FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-10.3:${FILE_DIRNAME}/gcc-arm-10.3/backport:"
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}:${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}/backport:"
 
 DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
@@ -28,7 +28,7 @@ LIC_FILES_CHKSUM = "\
     file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
 "
 
-BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/srcrel/gcc-arm-src-snapshot-10.3-2021.07.tar.xz"
+BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/${GCC_VERSION}-${RELEASE}/srcrel/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}.tar.xz"
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -72,7 +72,7 @@ SRC_URI = "\
 "
 SRC_URI[md5sum] = "5f582fd50eee0e40475b93d2d7a18979"
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-10.3-2021.07"
+S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}"
 
 # For dev release snapshotting
 #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
Signature · 1 line
2.17.1
Signature · 4 lines
Regards,
Denys Dmytriyenko <[email protected]>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964
#2 lore raw
Quoted 17 lines · Denys Dmytriyenko
Quoted 15 lines · Jon Mason

Use variables to make it easier to upgrade when the time comes.

Change-Id I9f2575279fe79bc0d895d47fdaffd2d5edd4aa59
---
 .../recipes-devtools/gcc/gcc-arm-10.3.inc              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +0 -0
index 72a6b46..187f4f4 100644
@@ -1,8 +1,8 @@
 require recipes-devtools/gcc/gcc-common.inc
 
Quoted 9 lines

meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc line 4

Quoted 4 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +1 -2
 # Third digit in PV should be incremented after a minor release
-
-PV = "arm-10.3"
+GCC_VERSION = "10.3"

Isn't it too close to be confused with the global GCCVERSION variable in meta/conf/distro/include/tcmode-default.inc that specifies gcc preference. I realize this GCC_VERSION has a different use, but maybe the name should be a bit clearer?

I was a little quick on the trigger and pushed it already, but I agree with your point. I'll do a follow-on patch to change it to a better name. Suggestions?

Thanks,
Jon

Quoted 51 lines
Quoted 34 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +4 -4
+PV = "arm-${GCC_VERSION}"
 CVE_VERSION = "10.3"
 
 # BINV should be incremented to a revision after a minor gcc release
@@ -13,7 +13,7 @@ MMYY = "21.07"
 RELEASE = "20${MMYY}"
 PR = "r${RELEASE}"
 
-FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-10.3:${FILE_DIRNAME}/gcc-arm-10.3/backport:"
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}:${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}/backport:"
 
 DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
@@ -28,7 +28,7 @@ LIC_FILES_CHKSUM = "\
     file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
 "
 
-BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/srcrel/gcc-arm-src-snapshot-10.3-2021.07.tar.xz"
+BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/${GCC_VERSION}-${RELEASE}/srcrel/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}.tar.xz"
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -72,7 +72,7 @@ SRC_URI = "\
 "
 SRC_URI[md5sum] = "5f582fd50eee0e40475b93d2d7a18979"
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-10.3-2021.07"
+S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}"
 
 # For dev release snapshotting
 #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
--
Quoted 2 lines

2.17.1

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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#2237): https://lists.yoctoproject.org/g/meta-arm/message/2237
Mute This Topic: https://lists.yoctoproject.org/mt/85900244/3616920
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 29 lines · Jon Mason
Quoted 17 lines · Denys Dmytriyenko
Quoted 15 lines · Jon Mason

Use variables to make it easier to upgrade when the time comes.

Change-Id I9f2575279fe79bc0d895d47fdaffd2d5edd4aa59
---
 .../recipes-devtools/gcc/gcc-arm-10.3.inc              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +0 -0
index 72a6b46..187f4f4 100644
@@ -1,8 +1,8 @@
 require recipes-devtools/gcc/gcc-common.inc
 
Quoted 9 lines

meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc line 4

Quoted 4 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +1 -2
 # Third digit in PV should be incremented after a minor release
-
-PV = "arm-10.3"
+GCC_VERSION = "10.3"

Isn't it too close to be confused with the global GCCVERSION variable in meta/conf/distro/include/tcmode-default.inc that specifies gcc preference. I realize this GCC_VERSION has a different use, but maybe the name should be a bit clearer?

Quoted 3 lines

I was a little quick on the trigger and pushed it already, but I agree with your point. I'll do a follow-on patch to change it to a better name. Suggestions?

Maybe ARM_GCC_VERSION?

-Sumit

Quoted 58 lines

Thanks,
Jon

Quoted 31 lines
Quoted 31 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +4 -3
+PV = "arm-${GCC_VERSION}"
 CVE_VERSION = "10.3"
 
 # BINV should be incremented to a revision after a minor gcc release
@@ -13,7 +13,7 @@ MMYY = "21.07"
 RELEASE = "20${MMYY}"
 PR = "r${RELEASE}"
 
-FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-10.3:${FILE_DIRNAME}/gcc-arm-10.3/backport:"
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}:${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}/backport:"
 
 DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
@@ -28,7 +28,7 @@ LIC_FILES_CHKSUM = "\
     file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
 "
 
-BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/srcrel/gcc-arm-src-snapshot-10.3-2021.07.tar.xz"
+BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/${GCC_VERSION}-${RELEASE}/srcrel/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}.tar.xz"
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -72,7 +72,7 @@ SRC_URI = "\
 "
 SRC_URI[md5sum] = "5f582fd50eee0e40475b93d2d7a18979"
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-10.3-2021.07"
+S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}"
 
Quoted 14 lines
Quoted 5 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +0 -1
 # For dev release snapshotting
 #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
--

2.17.1

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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#2238): https://lists.yoctoproject.org/g/meta-arm/message/2238
Mute This Topic: https://lists.yoctoproject.org/mt/85900244/1777089
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 30 lines · Sumit Garg
Quoted 29 lines · Jon Mason
Quoted 26 lines · Denys Dmytriyenko
Quoted 13 lines · Jon Mason

Use variables to make it easier to upgrade when the time comes.

Change-Id I9f2575279fe79bc0d895d47fdaffd2d5edd4aa59
---
 .../recipes-devtools/gcc/gcc-arm-10.3.inc              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +0 -0
index 72a6b46..187f4f4 100644

meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc line 4

Quoted 6 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +1 -2
@@ -1,8 +1,8 @@
 require recipes-devtools/gcc/gcc-common.inc
 
 # Third digit in PV should be incremented after a minor release
-
-PV = "arm-10.3"
+GCC_VERSION = "10.3"

Isn't it too close to be confused with the global GCCVERSION variable in meta/conf/distro/include/tcmode-default.inc that specifies gcc preference. I realize this GCC_VERSION has a different use, but maybe the name should be a bit clearer?

Quoted 5 lines
Quoted 3 lines

I was a little quick on the trigger and pushed it already, but I agree with your point. I'll do a follow-on patch to change it to a better name. Suggestions?

Maybe ARM_GCC_VERSION?

Jon,

Any update on this? Are you still looking for a different variable name?

Signature · 1 line
Denys
Quoted 42 lines

-Sumit

Quoted 40 lines

Thanks,
Jon

Quoted 36 lines
Quoted 36 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +4 -4
+PV = "arm-${GCC_VERSION}"
 CVE_VERSION = "10.3"
 
 # BINV should be incremented to a revision after a minor gcc release
@@ -13,7 +13,7 @@ MMYY = "21.07"
 RELEASE = "20${MMYY}"
 PR = "r${RELEASE}"
 
-FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-10.3:${FILE_DIRNAME}/gcc-arm-10.3/backport:"
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}:${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}/backport:"
 
 DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
@@ -28,7 +28,7 @@ LIC_FILES_CHKSUM = "\
     file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
 "
 
-BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/srcrel/gcc-arm-src-snapshot-10.3-2021.07.tar.xz"
+BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/${GCC_VERSION}-${RELEASE}/srcrel/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}.tar.xz"
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -72,7 +72,7 @@ SRC_URI = "\
 "
 SRC_URI[md5sum] = "5f582fd50eee0e40475b93d2d7a18979"
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-10.3-2021.07"
+S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}"
 
 # For dev release snapshotting
 #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
--

2.17.1

#5 lore raw

Denys, I was waiting on you to ack the name Sumit suggested.

Thanks,
Jon

Quoted 87 lines · Denys Dmytriyenko
Quoted 30 lines · Sumit Garg
Quoted 29 lines · Jon Mason
Quoted 26 lines · Denys Dmytriyenko
Quoted 13 lines · Jon Mason

Use variables to make it easier to upgrade when the time comes.

Change-Id I9f2575279fe79bc0d895d47fdaffd2d5edd4aa59
---
 .../recipes-devtools/gcc/gcc-arm-10.3.inc              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +0 -0
index 72a6b46..187f4f4 100644

meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc line 4

Quoted 6 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +1 -2
@@ -1,8 +1,8 @@
 require recipes-devtools/gcc/gcc-common.inc
 
 # Third digit in PV should be incremented after a minor release
-
-PV = "arm-10.3"
+GCC_VERSION = "10.3"

Isn't it too close to be confused with the global GCCVERSION variable in meta/conf/distro/include/tcmode-default.inc that specifies gcc preference. I realize this GCC_VERSION has a different use, but maybe the name should be a bit clearer?

Quoted 5 lines
Quoted 3 lines

I was a little quick on the trigger and pushed it already, but I agree with your point. I'll do a follow-on patch to change it to a better name. Suggestions?

Maybe ARM_GCC_VERSION?

Jon,

Any update on this? Are you still looking for a different variable name?

--
Denys

Quoted 42 lines

-Sumit

Quoted 40 lines

Thanks,
Jon

Quoted 36 lines
Quoted 36 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +4 -4
+PV = "arm-${GCC_VERSION}"
 CVE_VERSION = "10.3"
 
 # BINV should be incremented to a revision after a minor gcc release
@@ -13,7 +13,7 @@ MMYY = "21.07"
 RELEASE = "20${MMYY}"
 PR = "r${RELEASE}"
 
-FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-10.3:${FILE_DIRNAME}/gcc-arm-10.3/backport:"
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}:${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}/backport:"
 
 DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
@@ -28,7 +28,7 @@ LIC_FILES_CHKSUM = "\
     file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
 "
 
-BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/srcrel/gcc-arm-src-snapshot-10.3-2021.07.tar.xz"
+BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/${GCC_VERSION}-${RELEASE}/srcrel/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}.tar.xz"
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -72,7 +72,7 @@ SRC_URI = "\
 "
 SRC_URI[md5sum] = "5f582fd50eee0e40475b93d2d7a18979"
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-10.3-2021.07"
+S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}"
 
 # For dev release snapshotting
 #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
--

2.17.1

#6 lore raw
Quoted 1 line · Jon Mason

Denys, I was waiting on you to ack the name Sumit suggested.

Yeah, I'm fine with that name - I don't have any better suggestions.

Signature · 1 line
Denys
Quoted 92 lines

Thanks,
Jon

Quoted 87 lines · Denys Dmytriyenko
Quoted 30 lines · Sumit Garg
Quoted 29 lines · Jon Mason
Quoted 26 lines · Denys Dmytriyenko
Quoted 13 lines · Jon Mason

Use variables to make it easier to upgrade when the time comes.

Change-Id I9f2575279fe79bc0d895d47fdaffd2d5edd4aa59
---
 .../recipes-devtools/gcc/gcc-arm-10.3.inc              | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +0 -0
index 72a6b46..187f4f4 100644

meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc line 4

Quoted 6 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +1 -2
@@ -1,8 +1,8 @@
 require recipes-devtools/gcc/gcc-common.inc
 
 # Third digit in PV should be incremented after a minor release
-
-PV = "arm-10.3"
+GCC_VERSION = "10.3"

Isn't it too close to be confused with the global GCCVERSION variable in meta/conf/distro/include/tcmode-default.inc that specifies gcc preference. I realize this GCC_VERSION has a different use, but maybe the name should be a bit clearer?

Quoted 5 lines
Quoted 3 lines

I was a little quick on the trigger and pushed it already, but I agree with your point. I'll do a follow-on patch to change it to a better name. Suggestions?

Maybe ARM_GCC_VERSION?

Jon,

Any update on this? Are you still looking for a different variable name?

--
Denys

Quoted 42 lines

-Sumit

Quoted 40 lines

Thanks,
Jon

Quoted 36 lines
Quoted 36 lines
meta-arm-toolchain/recipes-devtools/gcc/gcc-arm-10.3.inc +4 -4
+PV = "arm-${GCC_VERSION}"
 CVE_VERSION = "10.3"
 
 # BINV should be incremented to a revision after a minor gcc release
@@ -13,7 +13,7 @@ MMYY = "21.07"
 RELEASE = "20${MMYY}"
 PR = "r${RELEASE}"
 
-FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-10.3:${FILE_DIRNAME}/gcc-arm-10.3/backport:"
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}:${FILE_DIRNAME}/gcc-arm-${GCC_VERSION}/backport:"
 
 DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
 NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
@@ -28,7 +28,7 @@ LIC_FILES_CHKSUM = "\
     file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
 "
 
-BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/srcrel/gcc-arm-src-snapshot-10.3-2021.07.tar.xz"
+BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu-a/${GCC_VERSION}-${RELEASE}/srcrel/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}.tar.xz"
 SRC_URI = "\
            ${BASEURI} \
            file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -72,7 +72,7 @@ SRC_URI = "\
 "
 SRC_URI[md5sum] = "5f582fd50eee0e40475b93d2d7a18979"
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-10.3-2021.07"
+S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-arm-src-snapshot-${GCC_VERSION}-${RELEASE}"
 
 # For dev release snapshotting
 #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
--

2.17.1

Signature · 4 lines
Regards,
Denys Dmytriyenko <[email protected]>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964