Re: [PATCH 2/3] kbuild: Allow to specify composite modules with modname-m

From: Michal Marek
Date: Wed Nov 25 2015 - 07:30:53 EST


Dne 28.10.2015 v 14:25 Michal Marek napsal(a):
> From: Michal Marek <mmarek@xxxxxxxx>
>
> 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.
>
> Cc: Peter Chen <Peter.Chen@xxxxxxxxxxxxx>
> Cc: linux-usb@xxxxxxxxxxxxxxx
> Cc: Joern Engel <joern@xxxxxxxxx>
> Cc: Prasad Joshi <prasadjoshi.linux@xxxxxxxxx>
> Cc: logfs@xxxxxxxxx
> Signed-off-by: Michal Marek <mmarek@xxxxxxxx>
> ---
> drivers/misc/ibmasm/ibmasm.h | 2 +-
> drivers/usb/chipidea/otg_fsm.h | 2 +-
> fs/logfs/logfs.h | 2 +-
> scripts/Makefile.build | 8 ++++++--
> scripts/Makefile.lib | 4 ++--
> 5 files changed, 11 insertions(+), 7 deletions(-)

I applied the whole series to kbuild.git#kbuild now.

Michal

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/