edk2/BaseTools/Source/Python/GenFds
Yang Gang 3ac092cf72 BaseTools: Clean up os.path.normcase and os.path.normpath usage
Refer to the docs of python, `os.path.normcase(path)` function:
"Normalize the case of a pathname. On Windows, convert all characters in
the pathname to lowercase, and also convert forward slashes to backward
slashes. On other operating systems, return the path unchanged."

`os.path.normpath(path)` also convert forward slashes to backward slashes.

So call `os.path.normcase` after `os.path.normpath` just convert path to
lowercase on Windows(only).

And Windows is case-insensitive but case-preserving.

So the usage of `os.path.normcase(os.path.normpath(path))` can be
simplified to `os.path.normpath(path)`. Then we can use case-preserving
paths rather than lowercase paths in compile_commands.json file
or build log.

But this patch continue to use `os.path.normcase`
when comparing/searching paths.

Signed-off-by: Yang Gang <yanggang@byosoft.com.cn>
2025-01-09 07:25:45 +00:00
..
__init__.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
AprioriSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
Capsule.py BaseTools/GenFds: Apply OEM_CAPSULE_FLAGS during Capsule generation. 2024-03-13 10:53:30 +00:00
CapsuleData.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
CompressSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
DataSection.py BaseTools: Set section alignment as zero if its type is Auto 2020-09-25 02:27:35 +00:00
DepexSection.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
EfiSection.py BaseTools: Typo fixes 2024-12-11 09:00:21 +08:00
Fd.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
FdfParser.py BaseTools: Resolve regex syntax warnings 2023-12-21 00:33:31 +00:00
Ffs.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
FfsFileStatement.py BaseTools: Clean the ffs folder before generating files in it 2020-09-25 02:27:35 +00:00
FfsInfStatement.py BaseTools: Typo fixes 2024-12-11 09:00:21 +08:00
Fv.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
FvImageSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
GenFds.py BaseTools: Clean up os.path.normcase and os.path.normpath usage 2025-01-09 07:25:45 +00:00
GenFdsGlobalVariable.py BaseTools: Remove hard-coded strings for target and tools_def 2021-09-29 14:31:37 +00:00
GuidSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
OptionRom.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
OptRomFileStatement.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
OptRomInfStatement.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Region.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
Rule.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
RuleComplexFile.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
RuleSimpleFile.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Section.py BaseTools: Support COMPAT16 section generation 2022-10-19 06:32:07 +00:00
SubTypeGuidSection.py BaseTools: Add support for SUBTYPE_GUID section generation 2022-10-19 06:32:07 +00:00
UiSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
VerSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00