From 9760264a96b19e4cd35ad70d92c0db11a3813b67 Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Fri, 18 Mar 2022 14:13:29 +0100 Subject: 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 Change-Id: I3263b2aa7657759207bf6ffda750d839e741f99c Reviewed-on: https://review.coreboot.org/c/coreboot/+/62921 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Julius Werner --- src/commonlib/bsd/include/commonlib/bsd/helpers.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/commonlib') 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 */ -- cgit v1.2.3