Skip to content
Snippets Groups Projects
  1. May 31, 2020
    • Matthias Schiffer's avatar
      build: target_lib: do not pass manifest_aliases when defining factory and extra images · 8c386719
      Matthias Schiffer authored
      manifest_aliases only make sense for sysupgrade images.
      Unverified
      8c386719
    • Matthias Schiffer's avatar
      build: remove now-unneeded function from target_config_lib.lua · 3ce43329
      Matthias Schiffer authored
      target_config.lua and target_config_check.lua don't pass a table of
      callbacks anymore, so target_config_lib.lua can by simplified by moving
      all the code that was in the returned function to the toplevel.
      Unverified
      3ce43329
    • Matthias Schiffer's avatar
      build: rework config generation · 9e23534e
      Matthias Schiffer authored
      So far, we were using a sort operation on the generated .config to
      implement precedence of =y packages over =m, and =m over unset.
      Unfortunately, this sort not only used for packages, but for all config
      lines. This made it impossible to override settings from targets/generic
      in a target config when the new setting was sorted before the generic
      setting.
      
      To fix this, track configurations by their keys, so we can properly
      override config keys that were set before. Value-based precedence is
      only preserved for package configuration.
      
      The config() and try_config() calls always take key and value as
      separate arguments now. Strings are quoted automatically; the values
      true, nil and false map to y, m and unset for tristate options. config()
      can take an optional third argument to override the error message to
      display when the setting fails to apply.
      
      All existing target configs generate the same .config with the old and the
      new code. The new code is also a bit faster on targets with many devices.
      Unverified
      9e23534e
  2. May 24, 2020
  3. May 12, 2020
    • Sven Roederer's avatar
      build: ignore deactivated feeds · 184dab8f
      Sven Roederer authored
      
      The OpenWrt feeds.conf.defaults contains some feeds that are commented out
      and not active. Such feeds will be returned by the default_feeds.sh script
      anyway and causing pseudo feeds. Limit the script to only return active
      feeds, by filtering out lines starting with '#'.
      This usually only applies to the OpenWrt master branch.
      
      Signed-off-by: default avatarSven Roederer <freifunk@it-solutions.geroedel.de>
      
      change as per NeoRider
      184dab8f
  4. May 10, 2020
  5. May 03, 2020
    • Matthias Schiffer's avatar
      build: move package list generation to target_config_lib.lua, fix precedence · 53690d83
      Matthias Schiffer authored
      The precedence of different package lists was broken since #1876,
      disallowing removal of GLUON_FEATURES packages via GLUON_SITE_PACKAGES.
      
      Including all package selections, both implicit defaults and explicit
      handling in Gluon, the order of precedence is now the following:
      
      1.  OpenWrt defaults (including target-specific defaults)
      2.  Device-specific packages from OpenWrt
      3.  Generic default packages (from target/generic)
      4.  Target default packages (target/$(GLUON_TARGET))
      5.  Removal of opkg for tiny targets
      6.  Packages derived from GLUON_FEATURES + GLUON_FEATURES_$(class)
      7.  GLUON_SITE_PACKAGES
      8.  GLUON_SITE_PACKAGES_$(class)
      9.  Device-specific packages from target/$(GLUON_TARGET)
      10. Device-specific packages from GLUON_$(device)_SITE_PACKAGES
      
      This also contains various pieces of cleanup:
      
      - No hardcoded order of device classes for target_config.lua arguments
        anymore (in fact, the Makefile doesn't know anything about device
        classes now)
      - target_conifg_lib.lua only hardcodes the fallback class for x86, no
        other occurences of specific class names
      - Feature -> package list mapping is moved from Makefile to the Lua code
        as well (still implemented in Shell though)
      Unverified
      53690d83
    • Matthias Schiffer's avatar
      build: remove exec prefix from commands with a raw suffix · f9062bda
      Matthias Schiffer authored
      Allows to append additional commands, for example using `||`.
      Unverified
      f9062bda
    • Matthias Schiffer's avatar
  6. Apr 29, 2020
  7. Apr 25, 2020
  8. Apr 09, 2020
  9. Mar 27, 2020
    • David Bauer's avatar
      build: add class-packages for targets without devices · c9f90c3e
      David Bauer authored
      When adding device classes, targets without devices such as x86 were not
      handled. As site and feature packages are included on such a per-device
      decision, x86 images ended up without most packages.
      
      Include a class setting for a target and include the class-packages
      target-wide when this setting is configured.
      
      Fixes 9c523650 ("build: introduce device classes")
      c9f90c3e
  10. Mar 25, 2020
    • David Bauer's avatar
      build: introduce device classes · 9c523650
      David Bauer authored
      This commit allows to define a device-class flag in the target
      definitions. This way, it is possible to distinguish between groups
      of devices in the build-process in terms of package or feature
      selection.
      9c523650
  11. Mar 14, 2020
  12. Dec 29, 2019
  13. Dec 14, 2019
  14. Sep 14, 2019
  15. Aug 21, 2019
  16. Jun 17, 2019
  17. Jun 16, 2019
  18. Jun 15, 2019
    • Matthias Schiffer's avatar
      Add GLUON_DEPRECATED flag · 912490c0
      Matthias Schiffer authored
      This new build flag is mandatory for now (it may default to 0 in a future
      Gluon version). It may be set to the following values:
      
      * 0 - Do not build any images for deprecated devices.
      * upgrade - Only build sysupgrade images for deprecated devices.
      * full - Build both sysupgrade and factory images for deprecated devices.
      
      "Other" images are handled like factory images, as they are also used for
      the initial installation of Gluon on a device.
      Unverified
      912490c0
    • Matthias Schiffer's avatar
      Switch to Lua for target definitions · 071cf7b2
      Matthias Schiffer authored
      The old bash-based parsing code was way too complex. Replace it with Lua.
      Unverified
      071cf7b2
  19. Apr 28, 2019
  20. Apr 22, 2019
  21. Apr 11, 2019
  22. Feb 12, 2019
  23. Jul 15, 2018
    • David Bauer's avatar
      scripts: include binaries in patch · 6e48dede
      David Bauer authored
      This commit allows for binary content in patches created via 'make
      update-patches'.
      
      Binary patches are needed for BDFs required for al boards on the new
      ipq40xx target. Before this commit, binaries were omitted from the
      generated patch which resulted in the patch not able to apply.
      
      Patches without binary content do not differ in case they are created
      with the '--binary' flag.
      6e48dede
  24. Jul 14, 2018
    • Matthias Schiffer's avatar
      scripts/copy_output.sh: add support for "extra" images · 7460431f
      Matthias Schiffer authored
      
      The new extra_image command allows to copy additional images that don't
      fall into the sysupgrade or factory categories to the output directory.
      These images will be placed in the "other" subdirectory.
      
      The extra_image command takes 3 arguments: in_suffix (suffix in OpenWrt
      bin directory), out_suffix (suffix in Gluon output directory) and ext (file
      extension). Example:
      
        extra_image '-tftp' '-tftp' '.bin'
      
      The ext argument can be omitted to control the whole filename suffix
      including the extension from in_suffix and out_suffix. Multiple extra_image
      commands can be used for a single device; aliases work as usual.
      
      Based-on-patch-by: default avatarDavid Bauer <mail@david-bauer.net>
      Unverified
      7460431f
    • Matthias Schiffer's avatar
      scripts/copy_output.sh: refactor · e8cb34ba
      Matthias Schiffer authored
      Unverified
      e8cb34ba
  25. Jul 11, 2018
  26. Jul 10, 2018
  27. Jun 29, 2018
  28. Apr 27, 2018
  29. Apr 01, 2018
Loading