Skip to content
Snippets Groups Projects
  1. Aug 28, 2020
    • Matthias Schiffer's avatar
      features: fix handling of logical expressions · 13b743d5
      Matthias Schiffer authored
      The rewrite of the feature handling introduced multiple major bugs. One
      of them was caused by the way Lua's logical operators work:
      
      An expression of the form
      
          _'autoupdater' and _'web-advanced'
      
      would return 'web-advanced' rather than the boolean true when _ returned
      both strings unchanged (because the features are enabled).
      
      As entries with more than a single feature name in their expressions did
      not set no_default, Gluon would then attempt to add gluon-web-advanced to
      the package selection, as web-advanced is a "pure" feature.
      
      To fix this, and get rid of the annoying nodefault, separate handling of
      "pure" feature and handling of logical expressions into two separate
      functions, called feature() and when(). To simplify the feature
      definitions, the package list is now passed directly to these functions
      rather than in a table with a single field 'packages'.
      
      Fixes: ee5ec5af ("build: rewrite features.sh in Lua")
      13b743d5
  2. Aug 13, 2020
  3. Jul 01, 2020
    • Matthias Schiffer's avatar
      build: rewrite features.sh in Lua · ee5ec5af
      Matthias Schiffer authored
      The `features` file is converted to a Lua-based DSL.
      
      A helper function `_` is used in the DSL; this will return the original
      string for enabled features, and nil for disabled features. This allows
      to use boolean operations on features without making the code too
      verbose.
      
      Besides having more readable and robust code, this also fixes the bug
      that all files `packages/*/features` were evaluated instead of only
      using the feature definitions of currently active feeds.
      ee5ec5af
  4. Jun 04, 2020
    • chrissi^'s avatar
      openwrt: Store Kernel Debug-Info (#1971) · 1956696d
      chrissi^ authored
      
      This change stores a Kernel with Debug-Symbols for the current
      architecture in a new output directory '<outputdir>/debug'.
      This allows a developer or operator of a network to store the kernel
      along with the actual images. In case of a kernel oops the debug
      information can be used with the script
      'scripts/decode_stacktrace.sh' in the kernel source tree to get the
      names to the symbols of the stack trace.
      
      OpenWRT already provides the CONFIG_COLLECT_KERNEL_DEBUG -option that
      creates a kernel with debug-symbols in the OpenWRT output directory.
      This change enables this option and copies the generated kernel to the
      gluon output directory.
      
      Signed-off-by: default avatarChrissi^ <chris@tinyhost.de>
      1956696d
  5. May 31, 2020
    • Sven Roederer's avatar
      docs/build: add a short summary for some scripts · 5e35fa1a
      Sven Roederer authored
      This summaries giving an overview of a scripts function and a short summary
      how it's doing this. Only the scripts are covered, that are used by the
      Freifunk-Berlin firmwarebuiler too.
      
      [Matthias Schiffer: slightly reworded some descriptions]
      5e35fa1a
  6. May 02, 2020
  7. Apr 11, 2020
  8. Apr 09, 2020
  9. Mar 25, 2020
  10. Mar 08, 2020
  11. Dec 28, 2019
  12. Dec 06, 2019
  13. Nov 07, 2019
  14. Jun 29, 2019
  15. Jun 26, 2019
  16. Jun 24, 2019
  17. Apr 02, 2019
  18. Mar 23, 2019
  19. Mar 10, 2019
  20. Feb 07, 2019
  21. Aug 15, 2018
  22. Jul 10, 2018
  23. Jul 07, 2018
  24. Jun 23, 2018
  25. Mar 12, 2018
  26. Feb 23, 2018
  27. Jan 19, 2018
  28. Oct 22, 2017
  29. Jul 09, 2017
  30. Jun 24, 2017
  31. Jun 08, 2017
  32. Apr 12, 2017
  33. Mar 11, 2017
  34. Feb 24, 2017
  35. Feb 22, 2017
  36. Feb 12, 2017
  37. Jan 18, 2017
Loading