- Jul 04, 2020
-
-
Matthias Schiffer authored
The current manifest format was introduced with the new autoupdater in Gluon v2018.1. Reduce the manifest size by 70% by removing the additional manifest lines added for backwards compatiblity.
-
- Jul 01, 2020
-
-
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.
-
Matthias Schiffer authored
-
- Jun 11, 2020
-
-
Matthias Schiffer authored
Normally, we build all nonshared packages (which includes all kernel modules) to generate an opkg feed for later package installations by users. On targets without opkg, this just wastes time - disable it.
-
- Jun 05, 2020
-
-
Matthias Schiffer authored
Always allow options set to builtin (=y) when modular setting (=m) is expected. This can happen when a package is added explicitly (in a target defintion or site.mk) that is also pulled in as a dependency of another builtin package. Fixes: 9e23534e ("build: rework config generation") Fixes: #2046
-
- Jun 04, 2020
-
-
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:
Chrissi^ <chris@tinyhost.de>
-
- May 31, 2020
-
-
Matthias Schiffer authored
By passing a table instead of a single string, multiple different extensions can be specified, each refering to a separate image file generated by OpenWrt. This is not supported for sysupgrade (as there can only be a single image in the format expected by OpenWrt).
-
Matthias Schiffer authored
manifest_aliases only make sense for sysupgrade images.
-
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.
-
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.
-
- May 24, 2020
-
-
Matthias Schiffer authored
-
- May 12, 2020
-
-
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:
Sven Roederer <freifunk@it-solutions.geroedel.de> change as per NeoRider
-
- May 10, 2020
-
-
Matthias Schiffer authored
Certain error message (for example invalid package names) were emitted once for each device.
-
- May 03, 2020
-
-
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)
-
Matthias Schiffer authored
Allows to append additional commands, for example using `||`.
-
Matthias Schiffer authored
-
- Apr 29, 2020
-
-
Martin Weinelt authored
-
- Apr 25, 2020
-
-
Matthias Schiffer authored
We don't move the images directly, as multiple images of the same device may have the same source image (on x86), but only delete them after a whole device has been handled (multiple devices using the same images must be handled using aliases or manifest aliases instead).
-
Matthias Schiffer authored
-
- Apr 09, 2020
-
-
Matthias Schiffer authored
-
- Mar 27, 2020
-
-
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")
-
- Mar 25, 2020
-
-
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.
-
- Mar 14, 2020
-
-
Matthias Schiffer authored
Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
- Dec 29, 2019
-
-
Jan-Tarek Butt authored
[Matthias Schiffer: minor script improvements]
-
- Dec 14, 2019
-
-
Jan-Tarek Butt authored
-
- Sep 14, 2019
-
-
Matthias Schiffer authored
Fixes: 071cf7b2 ("Switch to Lua for target definitions")
-
- Aug 21, 2019
-
-
Christof Schulze authored
This displays the branch, repo and commitID that was attempted to update to but failed. Users then can compare this output to the configuration they meant to activate in modules and hopefully better find their typos.
-
- Jun 17, 2019
-
-
Matthias Schiffer authored
-
Matthias Schiffer authored
This is now much nicer to luacheck.
-
- Jun 16, 2019
-
-
bobcanthelpyou authored
-
- Jun 15, 2019
-
-
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.
-
Matthias Schiffer authored
The old bash-based parsing code was way too complex. Replace it with Lua.
-
- Apr 28, 2019
-
-
Matthias Schiffer authored
-
Matthias Schiffer authored
Fixes need_one_of() with boolean elements.
-
Martin Weinelt authored
-
bobcanthelpyou authored
-
- Apr 22, 2019
-
-
Petr Štetiar authored
Signed-off-by:
Petr Štetiar <ynezz@true.cz>
-
- Apr 11, 2019
-
-
bobcanthelpyou authored
-
- Feb 12, 2019
-
-
David Bauer authored
This package allows to automatically switch to another domain, either at a given point in time or after the node was offline long enough.
-
- Jul 15, 2018
-
-
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.
-