Skip to content

Commit c624adc

Browse files
arndbJonathan Corbet
authored andcommitted
samples: fix binderfs sample
A routine check for misspelled Kconfig symbols showed on instance from last year, the correct symbol name is CONFIG_ANDROID_BINDERFS, not CONFIG_CONFIG_ANDROID_BINDERFS, so the extra prefix must be removed in the Kconfig file to allow enabling the sample. As the actual sample fails to build as a kernel module, change the Makefile enough to get to build as a hostprog instead. Fixes: 9762dc1 ("samples: add binderfs sample program") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Christian Brauner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 190e159 commit c624adc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

samples/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ config SAMPLE_VFIO_MDEV_MBOCHS
171171

172172
config SAMPLE_ANDROID_BINDERFS
173173
bool "Build Android binderfs example"
174-
depends on CONFIG_ANDROID_BINDERFS
174+
depends on ANDROID_BINDERFS
175175
help
176176
Builds a sample program to illustrate the use of the Android binderfs
177177
filesystem.

samples/binderfs/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs_example.o
2+
ifndef CROSS_COMPILE
3+
ifdef CONFIG_SAMPLE_ANDROID_BINDERFS
4+
hostprogs := binderfs_example
5+
endif
6+
endif

0 commit comments

Comments
 (0)