public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH edk2-platforms v2 1/1] Platform/VExpressPkg: Avoid overriding defines
@ 2022-02-28 17:57 Patrik Berglund
  2022-03-02 16:38 ` Sami Mujawar
  2022-03-03 14:51 ` Sami Mujawar
  0 siblings, 2 replies; 3+ messages in thread
From: Patrik Berglund @ 2022-02-28 17:57 UTC (permalink / raw)
  To: devel; +Cc: Sami Mujawar, Patrik Berglund

From: Patrik Berglund <patrik.berglund@arm.com>

The definition of macros (e.g. SECURE_BOOT_ENABLE and others) in
ArmVExpress.dsc.inc overrides the setting configured in the platform
DSC file, thereby preventing the configurations from being enabled.
Therefore, add checks to only define the macros if not already defined
in the platform DSC file.

Signed-off-by: Patrik Berglund <patrik.berglund@arm.com>
---
 Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
index d6f31ecda42f..c75efe0ccf0a 100644
--- a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
+++ b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
@@ -1,21 +1,33 @@
 #
-#  Copyright (c) 2011-2020, Arm Limited. All rights reserved.
+#  Copyright (c) 2011-2022, Arm Limited. All rights reserved.
 #
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 #
 
 [Defines]
+!ifndef SECURE_BOOT_ENABLE
   SECURE_BOOT_ENABLE    = FALSE
+!endif
+!ifndef INCLUDE_TFTP_COMMAND
   INCLUDE_TFTP_COMMAND  = TRUE
+!endif
 
   #
   # Network definition
   #
+!ifndef NETWORK_SNP_ENABLE
   DEFINE NETWORK_SNP_ENABLE             = FALSE
+!endif
+!ifndef NETWORK_IP6_ENABLE
   DEFINE NETWORK_IP6_ENABLE             = FALSE
+!endif
+!ifndef NETWORK_TLS_ENABLE
   DEFINE NETWORK_TLS_ENABLE             = FALSE
+!endif
+!ifndef NETWORK_HTTP_BOOT_ENABLE
   DEFINE NETWORK_HTTP_BOOT_ENABLE       = FALSE
+!endif
 
 [BuildOptions.common]
   *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH edk2-platforms v2 1/1] Platform/VExpressPkg: Avoid overriding defines
  2022-02-28 17:57 [PATCH edk2-platforms v2 1/1] Platform/VExpressPkg: Avoid overriding defines Patrik Berglund
@ 2022-03-02 16:38 ` Sami Mujawar
  2022-03-03 14:51 ` Sami Mujawar
  1 sibling, 0 replies; 3+ messages in thread
From: Sami Mujawar @ 2022-03-02 16:38 UTC (permalink / raw)
  To: patrik.berglund, devel, nd

Hi Patrik,

Thank you for this patch.

These changes look good to me.

Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>

Regards,

Sami Mujawar


On 28/02/2022 05:57 PM, patrik.berglund@arm.com wrote:
> From: Patrik Berglund <patrik.berglund@arm.com>
>
> The definition of macros (e.g. SECURE_BOOT_ENABLE and others) in
> ArmVExpress.dsc.inc overrides the setting configured in the platform
> DSC file, thereby preventing the configurations from being enabled.
> Therefore, add checks to only define the macros if not already defined
> in the platform DSC file.
>
> Signed-off-by: Patrik Berglund <patrik.berglund@arm.com>
> ---
>   Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 14 +++++++++++++-
>   1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> index d6f31ecda42f..c75efe0ccf0a 100644
> --- a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> +++ b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> @@ -1,21 +1,33 @@
>   #
> -#  Copyright (c) 2011-2020, Arm Limited. All rights reserved.
> +#  Copyright (c) 2011-2022, Arm Limited. All rights reserved.
>   #
>   #  SPDX-License-Identifier: BSD-2-Clause-Patent
>   #
>   #
>
>   [Defines]
> +!ifndef SECURE_BOOT_ENABLE
>     SECURE_BOOT_ENABLE    = FALSE
> +!endif
> +!ifndef INCLUDE_TFTP_COMMAND
>     INCLUDE_TFTP_COMMAND  = TRUE
> +!endif
>
>     #
>     # Network definition
>     #
> +!ifndef NETWORK_SNP_ENABLE
>     DEFINE NETWORK_SNP_ENABLE             = FALSE
> +!endif
> +!ifndef NETWORK_IP6_ENABLE
>     DEFINE NETWORK_IP6_ENABLE             = FALSE
> +!endif
> +!ifndef NETWORK_TLS_ENABLE
>     DEFINE NETWORK_TLS_ENABLE             = FALSE
> +!endif
> +!ifndef NETWORK_HTTP_BOOT_ENABLE
>     DEFINE NETWORK_HTTP_BOOT_ENABLE       = FALSE
> +!endif
>
>   [BuildOptions.common]
>     *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH edk2-platforms v2 1/1] Platform/VExpressPkg: Avoid overriding defines
  2022-02-28 17:57 [PATCH edk2-platforms v2 1/1] Platform/VExpressPkg: Avoid overriding defines Patrik Berglund
  2022-03-02 16:38 ` Sami Mujawar
@ 2022-03-03 14:51 ` Sami Mujawar
  1 sibling, 0 replies; 3+ messages in thread
From: Sami Mujawar @ 2022-03-03 14:51 UTC (permalink / raw)
  To: patrik.berglund, devel, nd

Thanks.

Pushed as c9e377b00fc0..958fc02b1593

Regards,

Sami Mujawar


On 28/02/2022 05:57 PM, patrik.berglund@arm.com wrote:
> From: Patrik Berglund <patrik.berglund@arm.com>
>
> The definition of macros (e.g. SECURE_BOOT_ENABLE and others) in
> ArmVExpress.dsc.inc overrides the setting configured in the platform
> DSC file, thereby preventing the configurations from being enabled.
> Therefore, add checks to only define the macros if not already defined
> in the platform DSC file.
>
> Signed-off-by: Patrik Berglund <patrik.berglund@arm.com>
> ---
>   Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 14 +++++++++++++-
>   1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> index d6f31ecda42f..c75efe0ccf0a 100644
> --- a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> +++ b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
> @@ -1,21 +1,33 @@
>   #
> -#  Copyright (c) 2011-2020, Arm Limited. All rights reserved.
> +#  Copyright (c) 2011-2022, Arm Limited. All rights reserved.
>   #
>   #  SPDX-License-Identifier: BSD-2-Clause-Patent
>   #
>   #
>
>   [Defines]
> +!ifndef SECURE_BOOT_ENABLE
>     SECURE_BOOT_ENABLE    = FALSE
> +!endif
> +!ifndef INCLUDE_TFTP_COMMAND
>     INCLUDE_TFTP_COMMAND  = TRUE
> +!endif
>
>     #
>     # Network definition
>     #
> +!ifndef NETWORK_SNP_ENABLE
>     DEFINE NETWORK_SNP_ENABLE             = FALSE
> +!endif
> +!ifndef NETWORK_IP6_ENABLE
>     DEFINE NETWORK_IP6_ENABLE             = FALSE
> +!endif
> +!ifndef NETWORK_TLS_ENABLE
>     DEFINE NETWORK_TLS_ENABLE             = FALSE
> +!endif
> +!ifndef NETWORK_HTTP_BOOT_ENABLE
>     DEFINE NETWORK_HTTP_BOOT_ENABLE       = FALSE
> +!endif
>
>   [BuildOptions.common]
>     *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-03 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-28 17:57 [PATCH edk2-platforms v2 1/1] Platform/VExpressPkg: Avoid overriding defines Patrik Berglund
2022-03-02 16:38 ` Sami Mujawar
2022-03-03 14:51 ` Sami Mujawar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox