diff options
author | Hauke Mehrtens <hauke.mehrtens@intel.com> | 2019-01-11 18:05:11 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-01-27 00:16:13 +0100 |
commit | fd5c16870169bb76dd3d3bcfbcc6a112f74aeefe (patch) | |
tree | 43db8ee2a39320df1ebc4a3e03bf22719ec45e6d /target/linux/brcm2708 | |
parent | 538127cf981e0f7f71a75b365d95575b0f7263e1 (diff) | |
download | upstream-fd5c16870169bb76dd3d3bcfbcc6a112f74aeefe.tar.gz upstream-fd5c16870169bb76dd3d3bcfbcc6a112f74aeefe.tar.bz2 upstream-fd5c16870169bb76dd3d3bcfbcc6a112f74aeefe.zip |
kernel: Build: Split kmod-regmap
This reduces the needed modifications to the mainline Linux kernel and
also makes the regmap package work with an out of tree kernel which
does not have these modifications.
The regmap-core is only added when it is really build as a module.
The regmap-core is normally bool so it cannot be built as a module in an
unmodified kernel. When it is selected by on other kernel module it will
always be selected as build in and it also does not show up in
$(LINUX_DIR)/modules.builtin as it is not supposed to be a kernel module.
When it is not in $(LINUX_DIR)/modules.builtin the build system expects
it to be built as a .ko file.
Just check if the module is really there and only add it in that case.
This splits the regmap package into multiple packages, one for each bus type.
This way only the bus maps which are really needed have to be added.
This also splits the I2C, SPI and MMIO regmap into separate packages to not
require all these subsystems to build them, on an unmodified upstream kernel
this also causes problems in some situations.
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
Diffstat (limited to 'target/linux/brcm2708')
-rw-r--r-- | target/linux/brcm2708/modules.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm2708/modules.mk b/target/linux/brcm2708/modules.mk index 9a5e7c2973..0788a6eda3 100644 --- a/target/linux/brcm2708/modules.mk +++ b/target/linux/brcm2708/modules.mk @@ -75,7 +75,7 @@ define KernelPackage/sound-soc-bcm2835-i2s FILES:= \ $(LINUX_DIR)/sound/soc/bcm/snd-soc-bcm2835-i2s.ko AUTOLOAD:=$(call AutoLoad,68,snd-soc-bcm2835-i2s) - DEPENDS:=@TARGET_brcm2708 +kmod-regmap +kmod-sound-soc-core + DEPENDS:=@TARGET_brcm2708 +kmod-regmap-mmio +kmod-sound-soc-core $(call AddDepends/sound) endef @@ -248,7 +248,7 @@ define KernelPackage/sound-soc-allo-katana-codec DEPENDS:= \ @LINUX_4_14 \ +kmod-i2c-bcm2708 \ - +kmod-regmap \ + +kmod-regmap-core \ kmod-sound-soc-bcm2835-i2s $(call AddDepends/sound) endef |