Skip to contentSkip to conversation

samples: pfsm: add CC_CAN_LINK dependency

PATCH New Arnd Bergmann 1 participant 1 message Jun 16, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samples: pfsm: add CC_CAN_LINK dependency

From: Arnd Bergmann <[email protected]>

When no libc for the target architecture is available, cross-compiling the same cannot work:

samples/pfsm/pfsm-wakeup.c:12:10: fatal error: fcntl.h: No such file or directory

Fixes 9e66fb5244953 ("samples: Add userspace example for TI TPS6594 PFSM")
---
 samples/Kconfig | 1 +
 1 file changed, 1 insertion(+)
samples/Kconfig +1 -0
index 3edf73a3dc9bf..bf49ed0d73623 100644
@@ -256,6 +256,7 @@ config SAMPLE_INTEL_MEI
 config SAMPLE_TPS6594_PFSM
 	bool "Build example program working with TPS6594 PFSM driver"
 	depends on HEADERS_INSTALL
+	depends on CC_CAN_LINK
 	help
 	  Build a sample program to work with PFSM devices.
 
Signature · 1 line
2.39.2