From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Romain Naour <romain.naour@smile.fr>
Cc: Sebastian Weyer <sebastian.weyer@smile.fr>,
Jan-Benedict Glaw <jbglaw@lug-owl.de>,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] configs/qemu_ppc_mpc8544ds_defconfig: remove kernel patch
Date: Wed, 24 May 2023 21:15:46 +0200 [thread overview]
Message-ID: <20230524191546.GD2623@scaer> (raw)
In-Reply-To: <20230524094908.80784-1-romain.naour@smile.fr>
Romain, All,
On 2023-05-24 11:49 +0200, Romain Naour spake thusly:
> The ppc-mpc8544ds is the only qemu configuration that requires a kernel patch:
> board/qemu/ppc-mpc8544ds/patches/linux/0001-powerpc-Fix-mcpu-options-for-SPE-only-compiler.patch
>
> But this patch doesn't apply after a backport between v6.1.20 and v6.1.21
>
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=da0beae2449376326086e9f57468fd2b64736d2a
>
> So the patch 0001-powerpc-Fix-mcpu-options-for-SPE-only-compiler.patch doesn't
> seem required anymore.
>
> Welcome to Buildroot
> buildroot login: root
> # uname -a
> Linux buildroot 6.1.28 #1 Wed May 24 09:08:27 UTC 2023 ppc GNU/Linux
> # cat /proc/cpuinfo
> processor : 0
> cpu : e500v2
> clock : 400.000000MHz
> revision : 3.0 (pvr 8021 0030)
> bogomips : 800.00
>
> timebase : 400000000
> platform : MPC8544 DS
> model : MPC8544DS
> Memory : 128 MB
>
> Fixes:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/4306895282
> https://bugs.busybox.net/show_bug.cgi?id=15581
>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Cc: Jan-Benedict Glaw <jbglaw@lug-owl.de>
> Cc: Sebastian Weyer <sebastian.weyer@smile.fr>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> .checkpackageignore | 1 -
> ...x-mcpu-options-for-SPE-only-compiler.patch | 53 -------------------
> configs/qemu_ppc_mpc8544ds_defconfig | 1 -
> 3 files changed, 55 deletions(-)
> delete mode 100644 board/qemu/ppc-mpc8544ds/patches/linux/0001-powerpc-Fix-mcpu-options-for-SPE-only-compiler.patch
>
> diff --git a/.checkpackageignore b/.checkpackageignore
> index 947f4606aa..f2dea0dfd9 100644
> --- a/.checkpackageignore
> +++ b/.checkpackageignore
> @@ -74,7 +74,6 @@ board/pine64/rockpro64/post-build.sh Shellcheck
> board/qemu/aarch64-sbsa/assemble-flash-images Shellcheck
> board/qemu/microblazebe-mmu/0001-net-xilinx-xemaclite-add-2.00.b-revision.patch Upstream
> board/qemu/microblazeel-mmu/0001-net-xilinx-xemaclite-add-2.00.b-revision.patch Upstream
> -board/qemu/ppc-mpc8544ds/patches/linux/0001-powerpc-Fix-mcpu-options-for-SPE-only-compiler.patch Upstream
> board/qemu/x86/post-build.sh Shellcheck
> board/qemu/x86_64/post-build.sh Shellcheck
> board/qmtech/zynq/patches/linux/0001-DTS-for-QMTech-Zynq-starter-kit.patch Upstream
> diff --git a/board/qemu/ppc-mpc8544ds/patches/linux/0001-powerpc-Fix-mcpu-options-for-SPE-only-compiler.patch b/board/qemu/ppc-mpc8544ds/patches/linux/0001-powerpc-Fix-mcpu-options-for-SPE-only-compiler.patch
> deleted file mode 100644
> index b8c8a72587..0000000000
> --- a/board/qemu/ppc-mpc8544ds/patches/linux/0001-powerpc-Fix-mcpu-options-for-SPE-only-compiler.patch
> +++ /dev/null
> @@ -1,53 +0,0 @@
> -From a0919e3177295f4aaa9006915adcddc31788d809 Mon Sep 17 00:00:00 2001
> -From: Ben Hutchings <ben@decadent.org.uk>
> -Date: Wed, 26 Dec 2018 00:00:40 +0000
> -Subject: [PATCH] powerpc: Fix -mcpu= options for SPE-only compiler
> -
> -GCC for Debian's "powerpcspe" architecture only supports 32-bit
> -SPE targets, and using -mcpu=powerpc or -mcpu=powerpc64 is a fatal
> -error.
> -
> -* Change the test for a biarch compiler to pass both the -m32 and -m64
> - options, so that it doesn't catch 32-bit-only compilers
> -* Add an ifdef CONFIG_PPC64 around the 64-bit CPU option definitions
> -
> -Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> -[Romain: Patch from Debian repository:
> -https://salsa.debian.org/kernel-team/linux/-/blob/buster/debian/patches/bugfix/powerpc/powerpc-fix-mcpu-options-for-spe-only-compiler.patch]
> -Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ----
> - arch/powerpc/Makefile | 4 +++-
> - 1 file changed, 3 insertions(+), 1 deletion(-)
> -
> -diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
> -index 5c8c06215dd4..e3dbea6d7ae0 100644
> ---- a/arch/powerpc/Makefile
> -+++ b/arch/powerpc/Makefile
> -@@ -12,7 +12,7 @@
> - # Rewritten by Cort Dougan and Paul Mackerras
> - #
> -
> --HAS_BIARCH := $(call cc-option-yn, -m32)
> -+HAS_BIARCH := $(call cc-option-yn, -m32 -m64)
> -
> - # Set default 32 bits cross compilers for vdso and boot wrapper
> - CROSS32_COMPILE ?=
> -@@ -164,6 +164,7 @@ CFLAGS-$(CONFIG_PPC32) += $(call cc-option, $(MULTIPLEWORD))
> -
> - CFLAGS-$(CONFIG_PPC32) += $(call cc-option,-mno-readonly-in-sdata)
> -
> -+ifdef CONFIG_PPC64
> - ifdef CONFIG_PPC_BOOK3S_64
> - ifdef CONFIG_CPU_LITTLE_ENDIAN
> - CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8
> -@@ -175,6 +176,7 @@ endif
> - else
> - CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=powerpc64
> - endif
> -+endif
> -
> - ifdef CONFIG_FUNCTION_TRACER
> - CC_FLAGS_FTRACE := -pg
> ---
> -2.17.1
> -
> diff --git a/configs/qemu_ppc_mpc8544ds_defconfig b/configs/qemu_ppc_mpc8544ds_defconfig
> index ca1a429167..6d8a214e05 100644
> --- a/configs/qemu_ppc_mpc8544ds_defconfig
> +++ b/configs/qemu_ppc_mpc8544ds_defconfig
> @@ -3,7 +3,6 @@ BR2_powerpc=y
> BR2_powerpc_8548=y
>
> # System
> -BR2_GLOBAL_PATCH_DIR="board/qemu/ppc-mpc8544ds/patches"
> BR2_SYSTEM_DHCP="eth0"
>
> # Filesystem
> --
> 2.34.3
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2023-05-24 19:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-24 9:49 [Buildroot] [PATCH] configs/qemu_ppc_mpc8544ds_defconfig: remove kernel patch Romain Naour
2023-05-24 19:15 ` Yann E. MORIN [this message]
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=20230524191546.GD2623@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=jbglaw@lug-owl.de \
--cc=romain.naour@smile.fr \
--cc=sebastian.weyer@smile.fr \
/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.