diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-04-29 00:25:33 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2020-05-05 18:48:11 +0300 |
commit | c624adc9cb6e6e8f1c0230a7775add700bc2409b (patch) | |
tree | 8e4f8dca844d564097197fdf409b0563e9d3f579 /samples/binderfs/Makefile | |
parent | 190e1597e5e07c7eb7edc0b040b007a59b1e4a84 (diff) | |
download | linux-c624adc9cb6e6e8f1c0230a7775add700bc2409b.tar.xz |
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: 9762dc1432e1 ("samples: add binderfs sample program")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200428212555.2806258-1-arnd@arndb.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'samples/binderfs/Makefile')
-rw-r--r-- | samples/binderfs/Makefile | 6 |
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 |