LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nicholas Piggin" <npiggin@gmail.com>
To: "Christophe Leroy" <christophe.leroy@csgroup.eu>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH 2/2] powerpc/64: Rename entry_64.S to prom_entry.S
Date: Tue, 28 Mar 2023 16:51:17 +1000	[thread overview]
Message-ID: <CRHTFLEGR6RH.3NTYMVN9N1WBZ@bobo> (raw)
In-Reply-To: <ffded830-6081-5e8a-b51d-fd1882e9b8a8@csgroup.eu>

On Tue Mar 28, 2023 at 3:48 AM AEST, Christophe Leroy wrote:
>
>
> Le 25/03/2023 à 14:06, Nicholas Piggin a écrit :
> > This file contains only the enter_prom implementation now.
> > Trim includes and update header comment while we're here.
> > 
> > Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> > ---
> >   arch/powerpc/kernel/Makefile                  |  8 +++--
> >   .../kernel/{entry_64.S => prom_entry.S}       | 30 ++-----------------
> >   scripts/head-object-list.txt                  |  2 +-
> >   3 files changed, 9 insertions(+), 31 deletions(-)
> >   rename arch/powerpc/kernel/{entry_64.S => prom_entry.S} (73%)
> > 
> > diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
> > index ec70a1748506..ebba0896998a 100644
> > --- a/arch/powerpc/kernel/Makefile
> > +++ b/arch/powerpc/kernel/Makefile
> > @@ -209,10 +209,12 @@ CFLAGS_paca.o			+= -fno-stack-protector
> >   
> >   obj-$(CONFIG_PPC_FPU)		+= fpu.o
> >   obj-$(CONFIG_ALTIVEC)		+= vector.o
> > -obj-$(CONFIG_PPC64)		+= entry_64.o
> > -obj-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE)	+= prom_init.o
> >   
> > -extra-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE)	+= prom_init_check
> > +ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE
>
> You don't need that ifdef construct, you can do:
>
> obj64-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_entry.o

Nice. So that could have been obj64-y from the start?

Thanks,
Nick

>
> > +obj-y				+= prom_init.o
> > +obj-$(CONFIG_PPC64)		+= prom_entry.o
> > +extra-y				+= prom_init_check
> > +endif
> >   
> >   quiet_cmd_prom_init_check = PROMCHK $@
> >         cmd_prom_init_check = $(CONFIG_SHELL) $< "$(NM)" $(obj)/prom_init.o; touch $@
>
>
> Christophe


  reply	other threads:[~2023-03-28  6:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-25 13:06 [PATCH 1/2] powerpc: merge 32-bit and 64-bit _switch implementation Nicholas Piggin
2023-03-25 13:06 ` [PATCH 2/2] powerpc/64: Rename entry_64.S to prom_entry.S Nicholas Piggin
2023-03-27 17:48   ` Christophe Leroy
2023-03-28  6:51     ` Nicholas Piggin [this message]
2023-03-28  7:08       ` Christophe Leroy
2023-03-27 17:46 ` [PATCH 1/2] powerpc: merge 32-bit and 64-bit _switch implementation Christophe Leroy
2023-03-28  5:51   ` Nicholas Piggin

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=CRHTFLEGR6RH.3NTYMVN9N1WBZ@bobo \
    --to=npiggin@gmail.com \
    --cc=christophe.leroy@csgroup.eu \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox