diff options
author | Jakub Czapiga <jacz@semihalf.com> | 2022-03-18 14:13:29 +0100 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2022-03-30 21:21:47 +0000 |
commit | 9760264a96b19e4cd35ad70d92c0db11a3813b67 (patch) | |
tree | 46ca10d9f49b8633ce8d09f5b682360b63af8d17 /src/commonlib/bsd/include | |
parent | 70f3d438546a62d116761bd84d5b517f3e627663 (diff) |
commonlib/bsd/helpers: Remove redundancy with libpayload defines
Move STRINGIFY() from coreboot string.h to commonlib/bsd/helpers.h
Remove redundant defines from libpayload.h and libpayloads' standard
headers.
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: I3263b2aa7657759207bf6ffda750d839e741f99c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62921
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/commonlib/bsd/include')
-rw-r--r-- | src/commonlib/bsd/include/commonlib/bsd/helpers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/helpers.h b/src/commonlib/bsd/include/commonlib/bsd/helpers.h index 733b05a8f1..49953055b0 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/helpers.h +++ b/src/commonlib/bsd/include/commonlib/bsd/helpers.h @@ -126,4 +126,10 @@ #define retry(attempts, condition, ...) \ _retry_impl(attempts, condition, __VA_ARGS__) +/* Stringify a token */ +#ifndef STRINGIFY +#define _STRINGIFY(x) #x +#define STRINGIFY(x) _STRINGIFY(x) +#endif + #endif /* COMMONLIB_BSD_HELPERS_H */ |