* [Buildroot] [PATCH 2/4] Revert "configs/stm32f469: force usage of binutils 2.28.x"
2018-05-31 10:17 [Buildroot] [PATCH 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
@ 2018-05-31 10:17 ` Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 3/4] package/binutils: Cortex-M targets require version <2.29 Christophe PRIOUZEAU
2 siblings, 0 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 10:17 UTC (permalink / raw)
To: buildroot
This reverts commit 12049cc8b8972a9d0f1e27f1382cc5752d45312f.
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
configs/stm32f469_disco_defconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/stm32f469_disco_defconfig b/configs/stm32f469_disco_defconfig
index e5cacaf..8b77d8c 100644
--- a/configs/stm32f469_disco_defconfig
+++ b/configs/stm32f469_disco_defconfig
@@ -2,7 +2,6 @@ BR2_arm=y
BR2_cortex_m4=y
BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f469-disco/patches"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
-BR2_BINUTILS_VERSION_2_28_X=y
BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/stm32-post-build.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x"
@ 2018-05-31 10:17 Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 2/4] Revert "configs/stm32f469: " Christophe PRIOUZEAU
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 10:17 UTC (permalink / raw)
To: buildroot
This reverts commit cbe43fd417d77f846f1ca47cdacd51a73be1aaec.
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
configs/stm32f429_disco_defconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/stm32f429_disco_defconfig b/configs/stm32f429_disco_defconfig
index fc167d0..5237e9a 100644
--- a/configs/stm32f429_disco_defconfig
+++ b/configs/stm32f429_disco_defconfig
@@ -2,7 +2,6 @@ BR2_arm=y
BR2_cortex_m4=y
BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f429-disco/patches"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
-BR2_BINUTILS_VERSION_2_28_X=y
BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/stm32-post-build.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 3/4] package/binutils: Cortex-M targets require version <2.29
2018-05-31 10:17 [Buildroot] [PATCH 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 2/4] Revert "configs/stm32f469: " Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
@ 2018-05-31 10:17 ` Christophe PRIOUZEAU
2 siblings, 0 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 10:17 UTC (permalink / raw)
To: buildroot
From: Laurent GONZALEZ <br22@gezedo.com>
binutils 2.29 changed the implementation of adr pseudo instruction
it breaks linux kernel and impacts Cortex-M targets (eg. stm32)
Signed-off-by: Laurent GONZALEZ <br22@gezedo.com>
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
package/binutils/Config.in.host | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index 03b2281..9a4caad 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -2,8 +2,9 @@ comment "Binutils Options"
choice
prompt "Binutils Version"
- default BR2_BINUTILS_VERSION_2_29_X if !BR2_arc
- default BR2_BINUTILS_VERSION_ARC if BR2_arc
+ default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_CPU_ARMV7M
+ default BR2_BINUTILS_VERSION_2_29_X if !BR2_arc && !BR2_ARM_CPU_ARMV7M
+ default BR2_BINUTILS_VERSION_ARC if BR2_arc && !BR2_ARM_CPU_ARMV7M
help
Select the version of binutils you wish to use.
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M
2018-05-31 10:17 [Buildroot] [PATCH 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 2/4] Revert "configs/stm32f469: " Christophe PRIOUZEAU
@ 2018-05-31 10:17 ` Christophe PRIOUZEAU
2018-05-31 11:39 ` Arnout Vandecappelle
2018-05-31 12:09 ` [Buildroot] [PATCH v2 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 3/4] package/binutils: Cortex-M targets require version <2.29 Christophe PRIOUZEAU
2 siblings, 2 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 10:17 UTC (permalink / raw)
To: buildroot
When binutils > 2.28 are selected on Arm Cortex-M cpu,
linux kernel does not boot due to a new implementation
of 'adr pseudo instruction' on binutils.
Bugzilla thread: https://bugs.busybox.net/show_bug.cgi?id=11051
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
linux/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux/Config.in b/linux/Config.in
index 73a3299..fbd886c 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -8,6 +8,10 @@ config BR2_LINUX_KERNEL
if BR2_LINUX_KERNEL
+comment "Linux kernel will not boot with binutils >= 2.29"
+ depends on !BR2_ARMV7M
+ depends on BR2_BINUTILS_VERSION_2_28_X
+
# Packages that need to have a kernel with support for loadable modules,
# but do not use the kernel-modules infrastructure, should select that
# option.
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M
2018-05-31 10:17 ` [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
@ 2018-05-31 11:39 ` Arnout Vandecappelle
2018-05-31 11:50 ` Christophe PRIOUZEAU
2018-05-31 12:02 ` Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
1 sibling, 2 replies; 14+ messages in thread
From: Arnout Vandecappelle @ 2018-05-31 11:39 UTC (permalink / raw)
To: buildroot
On 31-05-18 12:17, Christophe PRIOUZEAU wrote:
> When binutils > 2.28 are selected on Arm Cortex-M cpu,
> linux kernel does not boot due to a new implementation
> of 'adr pseudo instruction' on binutils.
>
> Bugzilla thread: https://bugs.busybox.net/show_bug.cgi?id=11051
>
> Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
> ---
> linux/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/linux/Config.in b/linux/Config.in
> index 73a3299..fbd886c 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -8,6 +8,10 @@ config BR2_LINUX_KERNEL
>
> if BR2_LINUX_KERNEL
>
> +comment "Linux kernel will not boot with binutils >= 2.29"
> + depends on !BR2_ARMV7M
> + depends on BR2_BINUTILS_VERSION_2_28_X
The logic is inverted here: it should be
depends on BR2_ARMV7M
depends on !BR2_BINUTILS_VERSION_2_28_X
I guess you didn't test it?
Regards,
Arnout
> +
> # Packages that need to have a kernel with support for loadable modules,
> # but do not use the kernel-modules infrastructure, should select that
> # option.
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M
2018-05-31 11:39 ` Arnout Vandecappelle
@ 2018-05-31 11:50 ` Christophe PRIOUZEAU
2018-05-31 12:02 ` Christophe PRIOUZEAU
1 sibling, 0 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 11:50 UTC (permalink / raw)
To: buildroot
On 05/31/2018 01:39 PM, Arnout Vandecappelle wrote:
On 31-05-18 12:17, Christophe PRIOUZEAU wrote:
When binutils > 2.28 are selected on Arm Cortex-M cpu,
linux kernel does not boot due to a new implementation
of 'adr pseudo instruction' on binutils.
Bugzilla thread: https://bugs.busybox.net/show_bug.cgi?id=11051
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com><mailto:christophe.priouzeau@st.com>
---
linux/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux/Config.in b/linux/Config.in
index 73a3299..fbd886c 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -8,6 +8,10 @@ config BR2_LINUX_KERNEL
if BR2_LINUX_KERNEL
+comment "Linux kernel will not boot with binutils >= 2.29"
+ depends on !BR2_ARMV7M
+ depends on BR2_BINUTILS_VERSION_2_28_X
The logic is inverted here: it should be
depends on BR2_ARMV7M
depends on !BR2_BINUTILS_VERSION_2_28_X
I guess you didn't test it?
Sorry, I have made the test with the patch on binutils/config.in, and I have inverted the value.
It's my fault.
Regards,
Arnout
+
# Packages that need to have a kernel with support for loadable modules,
# but do not use the kernel-modules infrastructure, should select that
# option.
Regards
Christophe
--
Best regards / Cordialement,
[cid:part1.6C50213D.8A91E88A at st.com]
Christophe Priouzeau | TINA: 166 7320 | Tel: +33 244027320
STMicroelectronics
ST oneline: www.st.com<http://www.st.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180531/202a86fd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: st_mail.png
Type: image/png
Size: 9916 bytes
Desc: st_mail.png
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180531/202a86fd/attachment.png>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M
2018-05-31 11:39 ` Arnout Vandecappelle
2018-05-31 11:50 ` Christophe PRIOUZEAU
@ 2018-05-31 12:02 ` Christophe PRIOUZEAU
1 sibling, 0 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 12:02 UTC (permalink / raw)
To: buildroot
Hello,
On 05/31/2018 01:39 PM, Arnout Vandecappelle wrote:
On 31-05-18 12:17, Christophe PRIOUZEAU wrote:
When binutils > 2.28 are selected on Arm Cortex-M cpu,
linux kernel does not boot due to a new implementation
of 'adr pseudo instruction' on binutils.
Bugzilla thread: https://bugs.busybox.net/show_bug.cgi?id=11051
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com><mailto:christophe.priouzeau@st.com>
---
linux/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux/Config.in b/linux/Config.in
index 73a3299..fbd886c 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -8,6 +8,10 @@ config BR2_LINUX_KERNEL
if BR2_LINUX_KERNEL
+comment "Linux kernel will not boot with binutils >= 2.29"
+ depends on !BR2_ARMV7M
+ depends on BR2_BINUTILS_VERSION_2_28_X
The logic is inverted here: it should be
depends on BR2_ARMV7M
depends on !BR2_BINUTILS_VERSION_2_28_X
I guess you didn't test it?
After, new test:
$> grep BINUTILS_VERSION_2_29 .config
BR2_BINUTILS_VERSION_2_29_X=y
The depends must be
depends on !BR2_ARMV7M
depends on !BR2_BINUTILS_VERSION_2_28_X
I will update the patch.
Regards,
Arnout
+
# Packages that need to have a kernel with support for loadable modules,
# but do not use the kernel-modules infrastructure, should select that
# option.
Regards
Christophe
--
Best regards / Cordialement,
[cid:part1.979821E0.7643D799 at st.com]
Christophe Priouzeau | TINA: 166 7320 | Tel: +33 244027320
STMicroelectronics
ST oneline: www.st.com<http://www.st.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180531/95304a4a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: st_mail.png
Type: image/png
Size: 9916 bytes
Desc: st_mail.png
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180531/95304a4a/attachment.png>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v2 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x"
2018-05-31 10:17 ` [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
2018-05-31 11:39 ` Arnout Vandecappelle
@ 2018-05-31 12:09 ` Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 3/4] package/binutils: Cortex-M targets require version <2.29 Christophe PRIOUZEAU
` (2 more replies)
1 sibling, 3 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 12:09 UTC (permalink / raw)
To: buildroot
This reverts commit cbe43fd417d77f846f1ca47cdacd51a73be1aaec.
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
configs/stm32f429_disco_defconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/stm32f429_disco_defconfig b/configs/stm32f429_disco_defconfig
index fc167d0..5237e9a 100644
--- a/configs/stm32f429_disco_defconfig
+++ b/configs/stm32f429_disco_defconfig
@@ -2,7 +2,6 @@ BR2_arm=y
BR2_cortex_m4=y
BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f429-disco/patches"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
-BR2_BINUTILS_VERSION_2_28_X=y
BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/stm32-post-build.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v2 3/4] package/binutils: Cortex-M targets require version <2.29
2018-05-31 12:09 ` [Buildroot] [PATCH v2 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
@ 2018-05-31 12:09 ` Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 2/4] Revert "configs/stm32f469: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
2 siblings, 0 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 12:09 UTC (permalink / raw)
To: buildroot
From: Laurent GONZALEZ <br22@gezedo.com>
binutils 2.29 changed the implementation of adr pseudo instruction
it breaks linux kernel and impacts Cortex-M targets (eg. stm32)
Signed-off-by: Laurent GONZALEZ <br22@gezedo.com>
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
package/binutils/Config.in.host | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index 03b2281..9a4caad 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -2,8 +2,9 @@ comment "Binutils Options"
choice
prompt "Binutils Version"
- default BR2_BINUTILS_VERSION_2_29_X if !BR2_arc
- default BR2_BINUTILS_VERSION_ARC if BR2_arc
+ default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_CPU_ARMV7M
+ default BR2_BINUTILS_VERSION_2_29_X if !BR2_arc && !BR2_ARM_CPU_ARMV7M
+ default BR2_BINUTILS_VERSION_ARC if BR2_arc && !BR2_ARM_CPU_ARMV7M
help
Select the version of binutils you wish to use.
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v2 2/4] Revert "configs/stm32f469: force usage of binutils 2.28.x"
2018-05-31 12:09 ` [Buildroot] [PATCH v2 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 3/4] package/binutils: Cortex-M targets require version <2.29 Christophe PRIOUZEAU
@ 2018-05-31 12:09 ` Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
2 siblings, 0 replies; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 12:09 UTC (permalink / raw)
To: buildroot
This reverts commit 12049cc8b8972a9d0f1e27f1382cc5752d45312f.
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
configs/stm32f469_disco_defconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/stm32f469_disco_defconfig b/configs/stm32f469_disco_defconfig
index e5cacaf..8b77d8c 100644
--- a/configs/stm32f469_disco_defconfig
+++ b/configs/stm32f469_disco_defconfig
@@ -2,7 +2,6 @@ BR2_arm=y
BR2_cortex_m4=y
BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f469-disco/patches"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
-BR2_BINUTILS_VERSION_2_28_X=y
BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/stm32-post-build.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v2 4/4] linux: config.in: add comment for Arm Cortex-M
2018-05-31 12:09 ` [Buildroot] [PATCH v2 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 3/4] package/binutils: Cortex-M targets require version <2.29 Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 2/4] Revert "configs/stm32f469: force usage of binutils 2.28.x" Christophe PRIOUZEAU
@ 2018-05-31 12:09 ` Christophe PRIOUZEAU
2018-05-31 12:20 ` Thomas Petazzoni
2 siblings, 1 reply; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 12:09 UTC (permalink / raw)
To: buildroot
When binutils > 2.28 are selected on Arm Cortex-M cpu,
linux kernel does not boot due to a new implementation
of 'adr pseudo instruction' on binutils.
Bugzilla thread: https://bugs.busybox.net/show_bug.cgi?id=11051
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
Changes v1 -> v2
- correct depends on for comment
linux/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux/Config.in b/linux/Config.in
index 73a3299..04d4548 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -8,6 +8,10 @@ config BR2_LINUX_KERNEL
if BR2_LINUX_KERNEL
+comment "Linux kernel will not boot with binutils >= 2.29"
+ depends on !BR2_ARMV7M
+ depends on !BR2_BINUTILS_VERSION_2_28_X
+
# Packages that need to have a kernel with support for loadable modules,
# but do not use the kernel-modules infrastructure, should select that
# option.
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v2 4/4] linux: config.in: add comment for Arm Cortex-M
2018-05-31 12:09 ` [Buildroot] [PATCH v2 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
@ 2018-05-31 12:20 ` Thomas Petazzoni
2018-05-31 12:36 ` Christophe PRIOUZEAU
0 siblings, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2018-05-31 12:20 UTC (permalink / raw)
To: buildroot
Hello Christophe,
Thanks for coming up with a patch series for this issue.
On Thu, 31 May 2018 12:09:42 +0000, Christophe PRIOUZEAU wrote:
> When binutils > 2.28 are selected on Arm Cortex-M cpu,
> linux kernel does not boot due to a new implementation
> of 'adr pseudo instruction' on binutils.
>
> Bugzilla thread: https://bugs.busybox.net/show_bug.cgi?id=11051
>
> Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
> ---
> Changes v1 -> v2
> - correct depends on for comment
>
> linux/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/linux/Config.in b/linux/Config.in
> index 73a3299..04d4548 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -8,6 +8,10 @@ config BR2_LINUX_KERNEL
>
> if BR2_LINUX_KERNEL
>
> +comment "Linux kernel will not boot with binutils >= 2.29"
> + depends on !BR2_ARMV7M
So this comment will never appear on ARMv7M, which is exactly the
opposite of what we want. Did you test this ? Did you verify that the
comment actually appears when expected ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v2 4/4] linux: config.in: add comment for Arm Cortex-M
2018-05-31 12:20 ` Thomas Petazzoni
@ 2018-05-31 12:36 ` Christophe PRIOUZEAU
2018-05-31 12:42 ` Thomas Petazzoni
0 siblings, 1 reply; 14+ messages in thread
From: Christophe PRIOUZEAU @ 2018-05-31 12:36 UTC (permalink / raw)
To: buildroot
On 05/31/2018 02:20 PM, Thomas Petazzoni wrote:
> Hello Christophe,
>
> Thanks for coming up with a patch series for this issue.
>
> On Thu, 31 May 2018 12:09:42 +0000, Christophe PRIOUZEAU wrote:
>> When binutils > 2.28 are selected on Arm Cortex-M cpu,
>> linux kernel does not boot due to a new implementation
>> of 'adr pseudo instruction' on binutils.
>>
>> Bugzilla thread: https://bugs.busybox.net/show_bug.cgi?id=11051
>>
>> Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
>> ---
>> Changes v1 -> v2
>> - correct depends on for comment
>>
>> linux/Config.in | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/linux/Config.in b/linux/Config.in
>> index 73a3299..04d4548 100644
>> --- a/linux/Config.in
>> +++ b/linux/Config.in
>> @@ -8,6 +8,10 @@ config BR2_LINUX_KERNEL
>>
>> if BR2_LINUX_KERNEL
>>
>> +comment "Linux kernel will not boot with binutils >= 2.29"
>> + depends on !BR2_ARMV7M
> So this comment will never appear on ARMv7M, which is exactly the
> opposite of what we want. Did you test this ? Did you verify that the
> comment actually appears when expected ?
Ok, I have made a bad copy/paste from the proposition of Arnoult and is
why the depends of !BR2_ARMV7M are always true (it's not defined), the
correct
tag are "BR2_ARM_CPU_ARMV7M".
Sorry, I started to send a new series.
>
> Best regards,
>
> Thomas
Regards
Christophe
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v2 4/4] linux: config.in: add comment for Arm Cortex-M
2018-05-31 12:36 ` Christophe PRIOUZEAU
@ 2018-05-31 12:42 ` Thomas Petazzoni
0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2018-05-31 12:42 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 31 May 2018 12:36:06 +0000, Christophe PRIOUZEAU wrote:
> On 05/31/2018 02:20 PM, Thomas Petazzoni wrote:
> > Hello Christophe,
> >
> > Thanks for coming up with a patch series for this issue.
> >
> > On Thu, 31 May 2018 12:09:42 +0000, Christophe PRIOUZEAU wrote:
> >> When binutils > 2.28 are selected on Arm Cortex-M cpu,
> >> linux kernel does not boot due to a new implementation
> >> of 'adr pseudo instruction' on binutils.
> >>
> >> Bugzilla thread: https://bugs.busybox.net/show_bug.cgi?id=11051
> >>
> >> Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
> >> ---
> >> Changes v1 -> v2
> >> - correct depends on for comment
> >>
> >> linux/Config.in | 4 ++++
> >> 1 file changed, 4 insertions(+)
> >>
> >> diff --git a/linux/Config.in b/linux/Config.in
> >> index 73a3299..04d4548 100644
> >> --- a/linux/Config.in
> >> +++ b/linux/Config.in
> >> @@ -8,6 +8,10 @@ config BR2_LINUX_KERNEL
> >>
> >> if BR2_LINUX_KERNEL
> >>
> >> +comment "Linux kernel will not boot with binutils >= 2.29"
> >> + depends on !BR2_ARMV7M
> > So this comment will never appear on ARMv7M, which is exactly the
> > opposite of what we want. Did you test this ? Did you verify that the
> > comment actually appears when expected ?
> Ok, I have made a bad copy/paste from the proposition of Arnoult and is
> why the depends of !BR2_ARMV7M are always true (it's not defined), the
> correct
> tag are "BR2_ARM_CPU_ARMV7M".
> Sorry, I started to send a new series.
This was indeed one problem. But the other problem is that the
condition is inverted, it should be:
depends on <we are on ARMv7M>
and not:
depends on !<we are on ARMv7M>
Indeed, we want the comment to be visible when we are on ARMv7M, and
invisible in all other cases.
Please test your change by running menuconfig and making sure that the
comment is visible vs. invisible as expected.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2018-05-31 12:42 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-31 10:17 [Buildroot] [PATCH 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 2/4] Revert "configs/stm32f469: " Christophe PRIOUZEAU
2018-05-31 10:17 ` [Buildroot] [PATCH 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
2018-05-31 11:39 ` Arnout Vandecappelle
2018-05-31 11:50 ` Christophe PRIOUZEAU
2018-05-31 12:02 ` Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 1/4] Revert "configs/stm32f429: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 3/4] package/binutils: Cortex-M targets require version <2.29 Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 2/4] Revert "configs/stm32f469: force usage of binutils 2.28.x" Christophe PRIOUZEAU
2018-05-31 12:09 ` [Buildroot] [PATCH v2 4/4] linux: config.in: add comment for Arm Cortex-M Christophe PRIOUZEAU
2018-05-31 12:20 ` Thomas Petazzoni
2018-05-31 12:36 ` Christophe PRIOUZEAU
2018-05-31 12:42 ` Thomas Petazzoni
2018-05-31 10:17 ` [Buildroot] [PATCH 3/4] package/binutils: Cortex-M targets require version <2.29 Christophe PRIOUZEAU
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox