From: Leif Lindholm <leif.lindholm@linaro.org>
To: "Kinney, Michael D" <michael.d.kinney@intel.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
"Carsey, Jaben" <jaben.carsey@intel.com>,
Daryl McDaniel <edk2-lists@mc2research.org>
Subject: Re: [PATCH 1/6] AppPkg: fix webserver build for !Ia32/X64
Date: Thu, 1 Nov 2018 17:56:21 +0000 [thread overview]
Message-ID: <CAF7UmSyM1+yHGTyk69w9UMTDfep8JC8DU1Mw82fCaJjzT+_+0A@mail.gmail.com> (raw)
In-Reply-To: <E92EE9817A31E24EB0585FDF735412F5B8B287CA@ORSMSX113.amr.corp.intel.com>
On 1 November 2018 at 17:19, Kinney, Michael D <michael.d.kinney@intel.com>
wrote:
>
> Leif,
>
> The MSR definitions are only used by Mtrr.c, and Mtrr.c is only
> used for IA32 and X64 builds in the INF file.
Ah, yes, that actually means the rest of the application may be completely
valid on ARM.
> It would be simpler to move the #include <Register/Msr.h>
> into Mtrr.c. That would avoid the use of #if.
Yeah, that sounds like the better fix. I was being lazy :)
Thanks, will do that for v2.
Regards,
Leif
> Mike
>
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-
> > bounces@lists.01.org] On Behalf Of Leif Lindholm
> > Sent: Thursday, November 1, 2018 8:37 AM
> > To: edk2-devel@lists.01.org
> > Cc: Carsey, Jaben <jaben.carsey@intel.com>; Daryl
> > McDaniel <edk2-lists@mc2research.org>
> > Subject: [edk2] [PATCH 1/6] AppPkg: fix webserver build
> > for !Ia32/X64
> >
> > The WebServer application is really quite Ia32/X64
> > specific, but fundamentally
> > it builds for other architectures as long as the
> > architecture-specific
> > #include <Register/Msr.h>
> > header file is filtered out.
> > So add an architecture-based filter on that to enable
> > AppPkg.dsc to build for
> > AARCH64/ARM (both listed in SUPPORTED_ARCHITECTURES).
> >
> > Cc: Daryl McDaniel <edk2-lists@mc2research.org>
> > Cc: Jaben Carsey <jaben.carsey@intel.com>
> > Contributed-under: TianoCore Contribution Agreement 1.1
> > Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
> > ---
> >
> > Note: there is definitely a case here for just
> > disabling this component
> > for !Ia32/X64, but the _interesting_ bits of this
> > application are
> > completely architecture independent, so my
> > preference would be to
> > do this for now, and worry about remaining issues
> > (like MTRR dump)
> > at some point in the future.
> >
> > AppPkg/Applications/Sockets/WebServer/WebServer.h | 2
> > ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git
> > a/AppPkg/Applications/Sockets/WebServer/WebServer.h
> > b/AppPkg/Applications/Sockets/WebServer/WebServer.h
> > index 21b07b63df..610abdcf9e 100644
> > --- a/AppPkg/Applications/Sockets/WebServer/WebServer.h
> > +++ b/AppPkg/Applications/Sockets/WebServer/WebServer.h
> > @@ -20,7 +20,9 @@
> >
> > #include <Guid/EventGroup.h>
> >
> > +#if defined(__x86_64__) || defined(__i386__)
> > #include <Register/Msr.h>
> > +#endif
> > #include <Library/BaseMemoryLib.h>
> > #include <Library/DebugLib.h>
> > #include <Library/MemoryAllocationLib.h>
> > --
> > 2.11.0
> >
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel
next prev parent reply other threads:[~2018-11-01 17:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 15:36 [PATCH 0/6] fix top-level package builds for AARCH64/ARM Leif Lindholm
2018-11-01 15:36 ` [PATCH 1/6] AppPkg: fix webserver build for !Ia32/X64 Leif Lindholm
2018-11-01 17:19 ` Kinney, Michael D
2018-11-01 17:56 ` Leif Lindholm [this message]
2018-11-01 15:36 ` [PATCH 2/6] IntelFrameworkModulePkg: fix build for AARCH64/ARM Leif Lindholm
2018-11-02 1:39 ` Gao, Liming
2018-11-02 10:15 ` Leif Lindholm
2018-11-02 14:20 ` Gao, Liming
2018-11-01 15:36 ` [PATCH 3/6] IntelFrameworkPkg: " Leif Lindholm
2018-11-01 17:23 ` Kinney, Michael D
2018-11-01 15:36 ` [PATCH 4/6] MdeModulePkg: drop DebugSupportDxe from AARCH64 components Leif Lindholm
2018-11-02 1:24 ` Zeng, Star
2018-11-01 15:36 ` [PATCH 5/6] SecurityPkg: fix package build on ARM Leif Lindholm
2018-11-02 0:00 ` Yao, Jiewen
2018-11-01 15:36 ` [PATCH 6/6] SignedCapsulePkg: enable package build for AARCH64/ARM Leif Lindholm
2018-11-02 0:00 ` Yao, Jiewen
2019-02-04 17:13 ` [PATCH 0/6] fix top-level package builds " Leif Lindholm
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-list 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=CAF7UmSyM1+yHGTyk69w9UMTDfep8JC8DU1Mw82fCaJjzT+_+0A@mail.gmail.com \
--to=devel@edk2.groups.io \
/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