Skip to content
Snippets Groups Projects
  1. Feb 19, 2020
    • Eneas U de Queiroz's avatar
      kernel: avoid underscore in *6lowpan package names · 07e1d88d
      Eneas U de Queiroz authored
      
      Packages kmod-bluetooth_6lowpan and kmod-ieee802154_6lowpan contain an
      underscore in the package name.  This causes problems in package/install
      because when building a list of package files to install offline using
      opkg, it uses a wildcard of the form $(dir)/$(pkg)_*.ipk.
      
      If you were to select kmod-bluetooth=y, but kmod-bluetooth_6lowpan=m,
      the latter would be picked up by that wildcard, and make package/install
      would fail:
      
      Collected errors:
       * satisfy_dependencies_for: Cannot satisfy the following dependencies
       * for kmod-bluetooth_6lowpan:
       *      kmod-6lowpan
       * opkg_install_cmd: Cannot install package kmod-bluetooth_6lowpan.
      
      Changing the wildcard pattern is not trivial, and there may be other
      places in the build system making this assumption about the package name
      format.
      
      Using a dash in place of the underscore avoids the issue.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      07e1d88d
  2. Feb 14, 2020
  3. Jan 26, 2020
  4. Jan 18, 2020
  5. Jan 12, 2020
  6. Oct 19, 2019
  7. Oct 12, 2019
  8. Oct 06, 2019
  9. Jun 22, 2019
  10. May 03, 2019
  11. Apr 06, 2019
  12. Jan 26, 2019
    • Hauke Mehrtens's avatar
      kernel: Build: Split kmod-regmap · fd5c1687
      Hauke Mehrtens authored
      
      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: default avatarHauke Mehrtens <hauke.mehrtens@intel.com>
      fd5c1687
  13. Jan 05, 2019
  14. Jan 03, 2019
    • Petr Štetiar's avatar
      kernel: Fix rtc-ds1307 dependency on hwmon-core for 4.19 · 9d11726d
      Petr Štetiar authored
      
      It seems, that since Linux 4.18-rc1 rtc-ds1307 depends on hwmon-core.
      
       commit 6b583a64fd1e019fd01626b46892ebf2361951c5
       Author: Heiner Kallweit <hkallweit1@gmail.com>
       Date:   Wed Sep 27 22:41:26 2017 +0200
      
          rtc: ds1307: simplify hwmon config
      
          We don't have to define an extra config symbol, IS_REACHABLE does
          what we need. And having this config symbol just to save the few
          bytes of hwmon support on non-DS3231 chips isn't worth it IMO
          (especially as the symbol is set per default).
      
      While at it, use the same dependency check for `kmod-regmap` as well, so
      it's future proof as well.
      
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      9d11726d
  15. Dec 15, 2018
  16. Dec 12, 2018
    • Stijn Tintel's avatar
      kmod-dma-buf: fix build with external kernel · bcb85923
      Stijn Tintel authored
      
      In hack/904-debloat_dma_buf.patch, DMA_SHARED_BUFFER is changed from
      bool to tristate. As this patch is not applied to external kernel
      sources, build fails if kmod-dma-buf is enabled. Fix this by only
      including the module file if CONFIG_EXTERNAL_KERNEL_TREE and
      CONFIG_KERNEL_GIT_CLONE_URI are not enabled.
      
      Signed-off-by: default avatarStijn Tintel <stijn@linux-ipv6.be>
      bcb85923
  17. Nov 12, 2018
  18. Nov 01, 2018
  19. Aug 25, 2018
  20. Aug 06, 2018
    • Christian Lamparter's avatar
      kernel: modules: fix kmod-regmap redux · 3fce1256
      Christian Lamparter authored
      
      Jonas Gorski commented on the previous patch:
      |This is actually the wrong fix and papers over an issue in one of our
      |local patches.
      |
      |We intentionally allow regmap to be built as a module, see
      |
      |/target/linux/generic/hack-4.14/259-regmap_dynamic.patch
      |[...]
      |[The regulator code] optionally supports regmap thanks to the stubs
      |provided if regmap is disabled - which breaks if you compile regmap
      |as a module.
      
      In order to mitigate this issue, this patch reverts the previous patch
      and replaces the existing IS_ENABLED(CONFIG_REGMAP) with
      IS_REACHABLE(CONFIG_REGMAP). This solves this particular issue as the
      regulator code will now automatically fallback to the regmap stubs in
      case the kmod-regmap module is enabled, but nothing else sets
      CONFIG_REGMAP=y.
      
      Note: There's still a potential issue that this patch doesn't solve:
      If someone ever wants to make a OpenWrt kernel package for a
      regulator module that requires the REGMAP feature for a target that
      doesn't set CONFIG_REGMAP=y but has CONFIG_REGULATOR=y, the resulting
      kmod-regulator-xyz package will not work on the target.
      Luckily, there aren't any in-tree OpenWrt kernel module packages for
      regulators at the moment. On the bright side: regmap is a critical
      part nowadays and all new and upcoming architectures require it by
      default. This will likely only ever be a problem for legacy targets
      and devices that cannot afford to enable REGMAP.
      
      Cc: Jonas Gorski <jonas.gorski@gmail.com>
      Cc: John Crispin <john@phrozen.org>
      Fixes: d00913d1 ("kernel: modules: fix kmod-regmap")
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      3fce1256
  21. Jul 30, 2018
    • Christian Lamparter's avatar
      kernel: modules: fix kmod-regmap · d00913d1
      Christian Lamparter authored
      
      This patch fixes the a compile issue that was triggered by
      apm821xx/sata when kmod-regmap was selected.
      
      The CONFIG_REGMAP is declared in drivers/base/regmap/Kconfig
      as type "bool" and not "tristate". Hence the symbol should
      never be set to module, as this confuses the #if CONFIG_REGMAP
      guards in include/linux/regmap.h:
      
      |.../drivers/regulator/core.c:4041: undefined reference to `dev_get_regmap'
      |.../drivers/regulator/core.c:4042: undefined reference to `dev_get_regmap'
      |.../drivers/regulator/core.c:4044: undefined reference to `dev_get_regmap'
      |.../drivers/regulator/helpers.o: In function `regulator_is_enabled_regmap':
      |.../drivers/regulator/helpers.c:36: undefined reference to `regmap_read'
      |...
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      d00913d1
  22. Jun 21, 2018
  23. Jun 09, 2018
  24. Jun 05, 2018
  25. May 27, 2018
  26. May 07, 2018
  27. Feb 20, 2018
  28. Feb 12, 2018
  29. Jan 29, 2018
  30. Jan 27, 2018
  31. Jan 22, 2018
  32. Jan 07, 2018
  33. Dec 16, 2017
Loading