From: Simon Horman <horms@verge.net.au>
To: Pratyush Anand <panand@redhat.com>
Cc: Dave Young <dyoung@redhat.com>, kexec@lists.infradead.org
Subject: Re: [PATCH kexec-tools] arm: do not build iomem.o target with no soruce
Date: Fri, 9 Dec 2016 11:58:36 +0100 [thread overview]
Message-ID: <20161209105836.GB9789@verge.net.au> (raw)
In-Reply-To: <ad1d1741-7619-9e73-fbdc-0b18e6839274@redhat.com>
On Fri, Dec 09, 2016 at 03:58:21PM +0530, Pratyush Anand wrote:
>
>
> On Friday 09 December 2016 02:42 PM, Simon Horman wrote:
> >Header files should be added to the distribution but not
> >used to derive targets for compilation. In this an attempt was
> >made to build iomem.o, but iomem.c does not exist so this fails.
> >
> >Fixes: 1574ff1aae4f ("arm: include phys_to_virt.h and iomem.h in distribution")
> >Cc: Dave Young <dyoung@redhat.com>
> >Signed-off-by: Simon Horman <horms@verge.net.au>
> >---
> > kexec/arch/arm/Makefile | 8 ++++----
> > 1 file changed, 4 insertions(+), 4 deletions(-)
> >
> >diff --git a/kexec/arch/arm/Makefile b/kexec/arch/arm/Makefile
> >index 871979e0ae26..a1b730034de8 100644
> >--- a/kexec/arch/arm/Makefile
> >+++ b/kexec/arch/arm/Makefile
> >@@ -27,9 +27,9 @@ arm_KEXEC_SRCS += $(libfdt_SRCS)
> >
> > arm_UIMAGE = kexec/kexec-uImage.c
> > arm_PHYS_TO_VIRT = kexec/arch/arm/phys_to_virt.c
> >-arm_PHYS_TO_VIRT += kexec/arch/arm/iomem.h
> >-arm_PHYS_TO_VIRT += kexec/arch/arm/phys_to_virt.h
> >+arm_PHYS_TO_VIRT_INCLUDE = kexec/arch/arm/iomem.h
> >+arm_PHYS_TO_VIRT_INCLUDE += kexec/arch/arm/phys_to_virt.h
>
> Since they are needed only in dist definition, so probably we could have
> avoided to define arm_PHYS_TO_VIRT_INCLUDE and could have added these files
> directly to dist. It will keep it similar like other makefiles
> (kexec/arch/x86_64/Makefile)
>
> >
> > dist += kexec/arch/arm/Makefile $(arm_KEXEC_SRCS) $(arm_PHYS_TO_VIRT) \
> >- kexec/arch/arm/crashdump-arm.h kexec/arch/arm/kexec-arm.h \
> >- kexec/arch/arm/include/arch/options.h
> >+ $(arm_PHYS_TO_VIRT_INCLUDE) kexec/arch/arm/crashdump-arm.h \
> >+ kexec/arch/arm/kexec-arm.h kexec/arch/arm/include/arch/options.h
> >
>
> Otherwise, changes looks fine to me.
Thanks, I will post a v2.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
prev parent reply other threads:[~2016-12-09 10:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-09 9:12 [PATCH kexec-tools] arm: do not build iomem.o target with no soruce Simon Horman
2016-12-09 10:28 ` Pratyush Anand
2016-12-09 10:58 ` Simon Horman [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=20161209105836.GB9789@verge.net.au \
--to=horms@verge.net.au \
--cc=dyoung@redhat.com \
--cc=kexec@lists.infradead.org \
--cc=panand@redhat.com \
/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