Skip to content

Commit a5052c8

Browse files
arndbgregkh
authored andcommitted
samples: pfsm: add CC_CAN_LINK dependency
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: 9e66fb5 ("samples: Add userspace example for TI TPS6594 PFSM") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20230616145013.3889906-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent af2e19d commit a5052c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

samples/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ config SAMPLE_INTEL_MEI
256256
config SAMPLE_TPS6594_PFSM
257257
bool "Build example program working with TPS6594 PFSM driver"
258258
depends on HEADERS_INSTALL
259+
depends on CC_CAN_LINK
259260
help
260261
Build a sample program to work with PFSM devices.
261262

0 commit comments

Comments
 (0)