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.
- [PATCH 0/6] TQMa7 eeprom sysinfo driver Alexander Feilke
- [PATCH 2/6] sysinfo: add sysinfo_get_and_detect() h... Alexander Feilke
- Re: [PATCH 2/6] sysinfo: add sysinfo_get_and_de... Feilke, Alexander
- Re: [PATCH 2/6] sysinfo: add sysinfo_get_and_de... Simon Glass
- [PATCH 1/6] sysinfo: uclass: use sysinfo_priv size ... Alexander Feilke
- [PATCH 6/6] boards: tqma7: integrate sysinfo_tq_eep... Alexander Feilke
- [PATCH 5/6] board: tq: common: add sysinfo helpers Alexander Feilke
- Re: [PATCH 5/6] board: tq: common: add sysinfo ... Simon Glass
- Re: [PATCH 5/6] board: tq: common: add sysi... Feilke, Alexander
- [PATCH 3/6] sysinfo: tq_eeprom: new driver Alexander Feilke
- Re: [PATCH 3/6] sysinfo: tq_eeprom: new driver Simon Glass
- [PATCH 4/6] sysinfo: add IDs for RAM size and varia... Alexander Feilke
- Re: [PATCH 4/6] sysinfo: add IDs for RAM size a... Simon Glass
- Re: [PATCH 4/6] sysinfo: add IDs for RAM si... Feilke, Alexander
- Re: [0/6] TQMa7 eeprom sysinfo driver Simon Glass

