From: Arnd Bergmann <arnd@kernel.org>
To: Julien Panis <jpanis@baylibre.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
Alex Williamson <alex.williamson@redhat.com>,
Jason Gunthorpe <jgg@ziepe.ca>,
Tony Krowiak <akrowiak@linux.ibm.com>,
Mark Rutland <mark.rutland@arm.com>, Hao Ge <gehao@kylinos.cn>,
ye xingchen <ye.xingchen@zte.com.cn>,
Miguel Ojeda <ojeda@kernel.org>,
Florent Revest <revest@chromium.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH] samples: pfsm: add CC_CAN_LINK dependency
Date: Fri, 16 Jun 2023 16:50:10 +0200 [thread overview]
Message-ID: <20230616145013.3889906-1-arnd@kernel.org> (raw)
From: Arnd Bergmann <arnd@arndb.de>
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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
samples/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/samples/Kconfig b/samples/Kconfig
index 3edf73a3dc9bf..bf49ed0d73623 100644
--- a/samples/Kconfig
+++ b/samples/Kconfig
@@ -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.
--
2.39.2
reply other threads:[~2023-06-16 14:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230616145013.3889906-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=akrowiak@linux.ibm.com \
--cc=alex.williamson@redhat.com \
--cc=arnd@arndb.de \
--cc=gehao@kylinos.cn \
--cc=gregkh@linuxfoundation.org \
--cc=jgg@ziepe.ca \
--cc=jpanis@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=ojeda@kernel.org \
--cc=revest@chromium.org \
--cc=ye.xingchen@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox