aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/samples/binderfs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'samples/binderfs/Makefile')
-rw-r--r--samples/binderfs/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/samples/binderfs/Makefile b/samples/binderfs/Makefile
index ea4c93d36256..a3ac5476338a 100644
--- a/samples/binderfs/Makefile
+++ b/samples/binderfs/Makefile
@@ -1,2 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs_example.o
+ifndef CROSS_COMPILE
+ifdef CONFIG_SAMPLE_ANDROID_BINDERFS
+hostprogs := binderfs_example
+endif
+endif