Commit c624adc9 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet

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: 9762dc14 ("samples: add binderfs sample program")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200428212555.2806258-1-arnd@arndb.deSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 190e1597
...@@ -171,7 +171,7 @@ config SAMPLE_VFIO_MDEV_MBOCHS ...@@ -171,7 +171,7 @@ config SAMPLE_VFIO_MDEV_MBOCHS
config SAMPLE_ANDROID_BINDERFS config SAMPLE_ANDROID_BINDERFS
bool "Build Android binderfs example" bool "Build Android binderfs example"
depends on CONFIG_ANDROID_BINDERFS depends on ANDROID_BINDERFS
help help
Builds a sample program to illustrate the use of the Android binderfs Builds a sample program to illustrate the use of the Android binderfs
filesystem. filesystem.
......
# SPDX-License-Identifier: GPL-2.0-only # 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment