Add toupper, tolower, and ws_to_under macros

Add a few additional macros that can be used throughout the coreboot

tolower: returns the value in all lowercase
toupper: returns the value in all uppercase
ws_to_under: returns the value with any whitespace changed to underscores

Change-Id: Icd0e6586481d8f229af0e899e0c94ef7c5c672c3
Signed-off-by: Martin Roth <>
Tested-by: build bot (Jenkins)
Reviewed-by: Werner Zeh <>
Reviewed-by: Stefan Reinauer <>
1 file changed