uthreads: Make use of CONFIG_IS_ENABLED consistently
PATCH 1/1 uthreads: Make use of CONFIG_IS_ENABLED consistently
We do not yet support UTHREADS in xPL phases. However, we have the need to dummy out certain functions so that xPL can build when full U-Boot has UTHREADS enabled. Update the few places that need to use CONFIG_IS_ENABLED so that we have the correct dummy in xPL.
Signed-off-by Tom Rini <[email protected]>
---
Cc: Jerome Forissier <[email protected]>
--- include/uthread.h | 4 ++-- lib/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
include/uthread.h +2 -2
@@ -72,7 +72,7 @@ struct uthread_mutex {#define UTHREAD_MUTEX_INITIALIZER { .state = UTHREAD_MUTEX_UNLOCKED } -#ifdef CONFIG_UTHREAD +#if CONFIG_IS_ENABLED (UTHREAD )/** * uthread_create() - Create a uthread object and make it ready for execution
@@ -184,5 +184,5 @@ static inline bool uthread_grp_done(unsigned int grp_id)#define uthread_mutex_trylock (_mutex) ({ 0 })#define uthread_mutex_unlock (_mutex) ({ 0; }) -#endif /* CONFIG_UTHREAD */ +#endif /* CONFIG_IS_ENABLED(UTHREAD) */ #endif /* _UTHREAD_H_ */
lib/Makefile +1 -1
@@ -159,7 +159,7 @@ obj-$(CONFIG_LIB_ELF) += elf.o obj-$(CONFIG_$(PHASE_)SEMIHOSTING) += semihosting.o -obj-$(CONFIG_UTHREAD) += uthread.o +obj-$(CONFIG_$(PHASE_)UTHREAD) += uthread.o # # Build a fast OID lookup registry from include/linux/oid_registry.h
Signature · 1 line
2.43.0
Quoted 5 lines · Tom Rini
We do not yet support UTHREADS in xPL phases. However, we have the need to dummy out certain functions so that xPL can build when full U-Boot has UTHREADS enabled. Update the few places that need to use
CONFIG_IS_ENABLEDso that we have the correct dummy in xPL.
Quoted 7 lines
Signed-off-by Tom Rini <[email protected]>---
Cc: Jerome Forissier <[email protected]>--- include/uthread.h | 4 ++-- lib/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Acked-by Jerome Forissier <[email protected]>
Thanks,
Signature · 1 line
Jerome