mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 15:48:56 +07:00
0126be38d9
SUBDIRS has been kept as a backward compatibility since commit ("[PATCH] kbuild: external module support") in 2002. We do not need multiple ways to do the same thing, so I will remove SUBDIRS after the Linux 5.3 release. I cleaned up in-tree code, and updated the document so that nobody would try to use it. Meanwhile, display the following warning if SUBDIRS is used. Makefile:189: ================= WARNING ================ Makefile:190: 'SUBDIRS' will be removed after Linux 5.3 Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead Makefile:192: ========================================== Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Boris Brezillon <boris.brezillon@bootlin.com> # for scx200_docflash.c Acked-by: Guenter Roeck <linux@roeck-us.net> # for scx200_wdt.c
18 lines
343 B
Makefile
18 lines
343 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_SAMPLE_CONNECTOR) += cn_test.o
|
|
|
|
# List of programs to build
|
|
ifdef CONFIG_SAMPLE_CONNECTOR
|
|
hostprogs-y := ucon
|
|
endif
|
|
|
|
# Tell kbuild to always build the programs
|
|
always := $(hostprogs-y)
|
|
|
|
HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include
|
|
|
|
all: modules
|
|
|
|
modules clean:
|
|
$(MAKE) -C ../.. M=$(CURDIR) $@
|