Merge tag 'kbuild-v5.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull more Kbuild updates from Masahiro Yamada: - fix build rules in binderfs sample - fix build errors when Kbuild recurses to the top Makefile - covert '---help---' in Kconfig to 'help' * tag 'kbuild-v5.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: treewide: replace '---help---' in Kconfig files with 'help' kbuild: fix broken builds because of GZIP,BZIP2,LZOP variables samples: binderfs: really compile this sample and fix build issues
This commit is contained in:
@@ -185,7 +185,7 @@ config SAMPLE_VFIO_MDEV_MBOCHS
|
||||
|
||||
config SAMPLE_ANDROID_BINDERFS
|
||||
bool "Build Android binderfs example"
|
||||
depends on ANDROID_BINDERFS
|
||||
depends on CC_CAN_LINK && HEADERS_INSTALL
|
||||
help
|
||||
Builds a sample program to illustrate the use of the Android binderfs
|
||||
filesystem.
|
||||
|
@@ -2,7 +2,7 @@
|
||||
# Makefile for Linux samples code
|
||||
|
||||
subdir-$(CONFIG_SAMPLE_AUXDISPLAY) += auxdisplay
|
||||
obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs/
|
||||
subdir-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs
|
||||
obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs/
|
||||
obj-$(CONFIG_SAMPLE_CONNECTOR) += connector/
|
||||
subdir-$(CONFIG_SAMPLE_HIDRAW) += hidraw
|
||||
|
@@ -1,6 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
ifndef CROSS_COMPILE
|
||||
ifdef CONFIG_SAMPLE_ANDROID_BINDERFS
|
||||
hostprogs := binderfs_example
|
||||
endif
|
||||
endif
|
||||
userprogs := binderfs_example
|
||||
always-y := $(userprogs)
|
||||
|
||||
userccflags += -I usr/include
|
||||
|
@@ -18,7 +18,6 @@
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int fd, ret, saved_errno;
|
||||
size_t len;
|
||||
struct binderfs_device device = { 0 };
|
||||
|
||||
ret = unshare(CLONE_NEWNS);
|
||||
|
Reference in New Issue
Block a user