On 08/05/2026 20:03, Simon Glass wrote:
>> diff --git a/board/tq/common/Makefile b/board/tq/common/Makefile
>> @@ -8,3 +8,7 @@
>> +ifneq ($(CONFIG_XPL_BUILD),y)
>> +obj-$(CONFIG_TQ_COMMON_SYSINFO) += tq_sysinfo.o
>> +endif
> Can you use the standard obj-$(CONFIG_$(PHASE_)FOO) pattern here? Then
> just ensure that TQ_COMMON_SYSINFO is not selected in SPL - that is
> the convention elsewhere and avoids the matching #ifndef
> CONFIG_XPL_BUILD in the header.
Can I configure TQ_COMMON_SYSINFO to throw an error in some other way
when being selected in SPL? I can append `depends on !SPL_BUILD` to
`config TQ_COMMON_SYSINFO` - but I'm not sure if thats what you had in mind.
It looks like it can only be silently disabled this way.

Reply via email to