greybus: Support building greybus on host PC
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 8 May 2015 00:00:50 +0000 (17:00 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 8 May 2015 21:09:01 +0000 (23:09 +0200)
commit68fff9604b8bce5cd023585ff41710948e61076e
tree898fbcefd133e622682f30cbc82867dac6572045
parenta4749bbeee31204a48fc3bf10c80bb88cf52bab5
greybus: Support building greybus on host PC

Introduce INSTALL_MOD_PATH to allow for building and installing of the
greybus modules from a different location.

This lets you build the greybus modules on a PC and then install the
modules to an SD card in the appropriate location relative to the SD such
as /media/sdcard/lib/modules/version and subsequent running of depmod in
the same location. If INSTALL_MOD_PATH isn't specified the default
behaviour of installing and depmoding to /lib/modules/version is
maintained.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/Makefile