]> git.karo-electronics.de Git - linux-beck.git/commit
kbuild: Allow to specify composite modules with modname-m
authorMichal Marek <mmarek@suse.com>
Tue, 27 Oct 2015 13:02:24 +0000 (14:02 +0100)
committerMichal Marek <mmarek@suse.com>
Wed, 25 Nov 2015 10:23:25 +0000 (11:23 +0100)
commitcf4f21938e13ea1533ebdcb21c46f1d998a44ee8
treeb26af8415bc9f916124e27b4bbfd3209270e40f6
parent0046a46a8f93f5b99b499118779521ba3b017d69
kbuild: Allow to specify composite modules with modname-m

This allows to write

  drm-$(CONFIG_AGP) += drm_agpsupport.o

without having to handle CONFIG_AGP=y vs. CONFIG_AGP=m. Only support
this syntax for modules, since built-in code depending on something
modular cannot work and init/Makefile actually relies on the current
semantics. There are a few drivers which adapted to the current
semantics out of necessity; these are fixed to also work when the
respective subsystem is modular.

Acked-by: Peter Chen <peter.chen@freescale.com> [chipidea]
Signed-off-by: Michal Marek <mmarek@suse.com>
drivers/misc/ibmasm/ibmasm.h
drivers/usb/chipidea/otg_fsm.h
fs/logfs/logfs.h
scripts/Makefile.build
scripts/Makefile.lib