kernel/samples/connector/Makefile
.. .. @@ -1,17 +1,6 @@ 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 obj-$(CONFIG_SAMPLE_CONNECTOR) += cn_test.o 3 3 4 -# List of programs to build5 -ifdef CONFIG_SAMPLE_CONNECTOR6 -hostprogs-y := ucon7 -endif4 +userprogs-always-$(CONFIG_CC_CAN_LINK) += ucon8 5 9 -# Tell kbuild to always build the programs10 -always := $(hostprogs-y)11 -12 -HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include13 -14 -all: modules15 -16 -modules clean:17 - $(MAKE) -C ../.. SUBDIRS=$(CURDIR) $@6 +userccflags += -I usr/include