[edk2-devel] 回复: [PATCH 1/1] BaseTools: remove useless header inclusion

gaoliming via groups.io gaoliming=byosoft.com.cn at groups.io
Sun Jan 29 01:59:29 UTC 2023


With this change, does GenFv pass build on Linux environment?

> -----邮件原件-----
> 发件人: tlaronde at polynum.com <tlaronde at polynum.com>
> 发送时间: 2023年1月26日 18:03
> 收件人: devel at edk2.groups.io
> 抄送: Bob Feng <bob.c.feng at intel.com>; Liming Gao
> <gaoliming at byosoft.com.cn>; Yuwei Chen <yuwei.chen at intel.com>
> 主题: [PATCH 1/1] BaseTools: remove useless header inclusion
> 
> GenFvInternalLib.c: useless inclusion and dependency on uuid.h.
> 
> From 6c0ba96fa11390750e102ebd277f59ef38970394 Mon Sep 17 00:00:00
> 2001
> From: Thierry LARONDE <tlaronde at polynum.com>
> Date: Thu, 26 Jan 2023 10:49:12 +0100
> Subject: [PATCH] Remove useless uuid.h include.
> 
> Signed-off-by: Thierry LARONDE <tlaronde at polynum.com>
> ---
>  BaseTools/Source/C/GenFv/GenFvInternalLib.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/BaseTools/Source/C/GenFv/GenFvInternalLib.c
> b/BaseTools/Source/C/GenFv/GenFvInternalLib.c
> index 6bd59515b1..2df7182f8b 100644
> --- a/BaseTools/Source/C/GenFv/GenFvInternalLib.c
> +++ b/BaseTools/Source/C/GenFv/GenFvInternalLib.c
> @@ -14,11 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
>  // Include files
>  //
> 
> -#if defined(__FreeBSD__)
> -#include <uuid.h>
> -#elif defined(__GNUC__)
> -#include <uuid/uuid.h>
> -#endif
>  #ifdef __GNUC__
>  #include <sys/stat.h>
>  #endif
> --
> 2.39.0
> 
> --
>         Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
>                      http://www.kergis.com/
>                     http://kertex.kergis.com/
> Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#99249): https://edk2.groups.io/g/devel/message/99249
Mute This Topic: https://groups.io/mt/96599454/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list