diff mbox

[Linaro-uefi] Platforms/AMD/Styx: fix broken build due to iasl command line change

Message ID 1480954340-6487-1-git-send-email-ard.biesheuvel@linaro.org
State Accepted
Commit 69961b4f42956e39c0ce57c316a8c0cdb97d86dd
Headers show

Commit Message

Ard Biesheuvel Dec. 5, 2016, 4:12 p.m. UTC
The upstream BaseTools where modified to allow the use of PCDs in
ASL source code, but this requires the -P option to be removed from
the iasl command line. The Styx platforms need ARCHCC_FLAGS on the
iasl command line, but since we use the single, additive '=', there
is no need to duplicate the other options, and we can safely remove
them.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc                 | 4 ++--
 Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc | 4 ++--
 Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc         | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

Comments

Leif Lindholm Dec. 5, 2016, 4:32 p.m. UTC | #1
On Mon, Dec 05, 2016 at 04:12:20PM +0000, Ard Biesheuvel wrote:
> The upstream BaseTools where modified to allow the use of PCDs in
> ASL source code, but this requires the -P option to be removed from
> the iasl command line. The Styx platforms need ARCHCC_FLAGS on the
> iasl command line, but since we use the single, additive '=', there
> is no need to duplicate the other options, and we can safely remove
> them.
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Thanks!

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

> ---
>  Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc                 | 4 ++--
>  Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc | 4 ++--
>  Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc         | 4 ++--
>  3 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
> index e668b6b06d13..f833fe200422 100644
> --- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
> +++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
> @@ -254,8 +254,8 @@ DEFINE DO_KCS    = 0
>    GCC:RELEASE_*_*_CC_FLAGS  = -DMDEPKG_NDEBUG
>  
>    *_*_*_ASL_FLAGS               = -tc -li -l -so
> -  *_*_*_ASLPP_FLAGS             = -x c -E -P $(ARCHCC_FLAGS)
> -  *_*_*_ASLCC_FLAGS             = -x c $(ARCHCC_FLAGS)
> +  *_*_*_ASLPP_FLAGS             = $(ARCHCC_FLAGS)
> +  *_*_*_ASLCC_FLAGS             = $(ARCHCC_FLAGS)
>  
>    GCC:*_*_AARCH64_ARCHCC_FLAGS = -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
>    GCC:*_*_AARCH64_PP_FLAGS = -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
> diff --git a/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc b/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc
> index 5fd6d841072d..107205386c55 100644
> --- a/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc
> +++ b/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc
> @@ -259,8 +259,8 @@ DEFINE DO_KCS       = 1
>    GCC:RELEASE_*_*_CC_FLAGS  = -DMDEPKG_NDEBUG
>  
>    *_*_*_ASL_FLAGS               = -tc -li -l -so
> -  *_*_*_ASLPP_FLAGS             = -x c -E -P $(ARCHCC_FLAGS)
> -  *_*_*_ASLCC_FLAGS             = -x c $(ARCHCC_FLAGS)
> +  *_*_*_ASLPP_FLAGS             = $(ARCHCC_FLAGS)
> +  *_*_*_ASLCC_FLAGS             = $(ARCHCC_FLAGS)
>  
>    GCC:*_*_AARCH64_ARCHCC_FLAGS = -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
>    GCC:*_*_AARCH64_PP_FLAGS = -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
> diff --git a/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc b/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
> index 70b94df7d6da..92721064a51f 100644
> --- a/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
> +++ b/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
> @@ -261,8 +261,8 @@ DEFINE DO_KCS       = 1
>    GCC:RELEASE_*_*_CC_FLAGS  = -DMDEPKG_NDEBUG
>  
>    *_*_*_ASL_FLAGS               = -tc -li -l -so
> -  *_*_*_ASLPP_FLAGS             = -x c -E -P $(ARCHCC_FLAGS)
> -  *_*_*_ASLCC_FLAGS             = -x c $(ARCHCC_FLAGS)
> +  *_*_*_ASLPP_FLAGS             = $(ARCHCC_FLAGS)
> +  *_*_*_ASLCC_FLAGS             = $(ARCHCC_FLAGS)
>  
>    GCC:*_*_AARCH64_ARCHCC_FLAGS = -DDO_XGBE=$(DO_XGBE) -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
>    GCC:*_*_AARCH64_PP_FLAGS = -DDO_XGBE=$(DO_XGBE) -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
> -- 
> 2.7.4
>
diff mbox

Patch

diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
index e668b6b06d13..f833fe200422 100644
--- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
+++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
@@ -254,8 +254,8 @@  DEFINE DO_KCS    = 0
   GCC:RELEASE_*_*_CC_FLAGS  = -DMDEPKG_NDEBUG
 
   *_*_*_ASL_FLAGS               = -tc -li -l -so
-  *_*_*_ASLPP_FLAGS             = -x c -E -P $(ARCHCC_FLAGS)
-  *_*_*_ASLCC_FLAGS             = -x c $(ARCHCC_FLAGS)
+  *_*_*_ASLPP_FLAGS             = $(ARCHCC_FLAGS)
+  *_*_*_ASLCC_FLAGS             = $(ARCHCC_FLAGS)
 
   GCC:*_*_AARCH64_ARCHCC_FLAGS = -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
   GCC:*_*_AARCH64_PP_FLAGS = -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
diff --git a/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc b/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc
index 5fd6d841072d..107205386c55 100644
--- a/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc
+++ b/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc
@@ -259,8 +259,8 @@  DEFINE DO_KCS       = 1
   GCC:RELEASE_*_*_CC_FLAGS  = -DMDEPKG_NDEBUG
 
   *_*_*_ASL_FLAGS               = -tc -li -l -so
-  *_*_*_ASLPP_FLAGS             = -x c -E -P $(ARCHCC_FLAGS)
-  *_*_*_ASLCC_FLAGS             = -x c $(ARCHCC_FLAGS)
+  *_*_*_ASLPP_FLAGS             = $(ARCHCC_FLAGS)
+  *_*_*_ASLCC_FLAGS             = $(ARCHCC_FLAGS)
 
   GCC:*_*_AARCH64_ARCHCC_FLAGS = -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
   GCC:*_*_AARCH64_PP_FLAGS = -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
diff --git a/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc b/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
index 70b94df7d6da..92721064a51f 100644
--- a/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
+++ b/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
@@ -261,8 +261,8 @@  DEFINE DO_KCS       = 1
   GCC:RELEASE_*_*_CC_FLAGS  = -DMDEPKG_NDEBUG
 
   *_*_*_ASL_FLAGS               = -tc -li -l -so
-  *_*_*_ASLPP_FLAGS             = -x c -E -P $(ARCHCC_FLAGS)
-  *_*_*_ASLCC_FLAGS             = -x c $(ARCHCC_FLAGS)
+  *_*_*_ASLPP_FLAGS             = $(ARCHCC_FLAGS)
+  *_*_*_ASLCC_FLAGS             = $(ARCHCC_FLAGS)
 
   GCC:*_*_AARCH64_ARCHCC_FLAGS = -DDO_XGBE=$(DO_XGBE) -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64
   GCC:*_*_AARCH64_PP_FLAGS = -DDO_XGBE=$(DO_XGBE) -DDO_KCS=$(DO_KCS) -DNUM_CORES=$(NUM_CORES) -DARM_CPU_AARCH64