- Jun 27, 2024
-
-
Matthias Schiffer authored
Debugging binaries in images that are built with sstrip is extremely annoying, as not even objdump will work on them. Switching from sstrip to standard strip increases the ath79 image size (for some usual Archer C7 v2 configuration I used for testing) by ~70KiB, or 1.3% of the rootfs size (~1% of the total image size), which is rarely worth the decreased debuggability. Extend GLUON_DEBUG to not only distinguish 0 and 1, such that: - 0 uses sstrip same as before - 1 switches to regular strip; this is the new default - 2 includes all debug info, like GLUON_DEBUG=1 did before
-
- Dec 19, 2023
-
-
David Bauer authored
Include the file-extension with the image-customization.lua file. This will ease work with editors providing syntax highlighting, as they now properly detect the file-type. Signed-off-by:
David Bauer <mail@david-bauer.net>
-
David Bauer authored
Print a warning in case users attempt to build Gluon using a site.mk which containes deprecated GLUON_FEATURES or GLUON_SITE_PACKAGES. Signed-off-by:
David Bauer <mail@david-bauer.net>
-
- Dec 13, 2023
-
-
David Bauer authored
In case a community does not use Git for versioning it's site or using a different versioning scheme that do not have annotated tags on the master branch. Signed-off-by:
David Bauer <mail@david-bauer.net>
-
- Oct 20, 2023
-
-
David Bauer authored
Upstream introduced two different methods for determining the state of a package within the OpenWrt buildsystem. While both are based around the md5 hash-function, one taks filename & mtime into account while the other one uses the actual md5 hash of the file-content. Ever wondered why Gluon suddenly took considerably longer to build? The messy part is how the build-system chooses which method to use. This is based around the AUTOREMOVE configuration. Gluon sets this variable conditionally when built with GLUON_AUTOREMOVE set to 1. Enter the Gluon build-system. It first compiles Lua, without the AUTOREMOVE configuration passed to OpenWrt. This compiles the packages with the old hash-method based around filename & mtime. Afterwards, it builds with AUTOREMOVE enabled, changing the hash-function and rebuilding all host-packages. Fix this by setting AUTOREMOVE for both build-processes according to the setting of GLUON_AUTOREMOVE. Link: https://github.com/openwrt/openwrt/commit/53a08e37437972ba0a8fbf953a93a70a6b784ef4 Signed-off-by:
David Bauer <mail@david-bauer.net>
-
- Jan 15, 2023
-
-
Martin Weinelt authored
Adds `lint-editorconfig` make target. Co-authored-by:
Jan-Niklas Burfeind <git@aiyionpri.me> version bump to 2.6.0
-
- Aug 23, 2022
-
-
Matthias Schiffer authored
Device-specific package additions could generate `CONFIG_PACKAGE_...=m` lines, which would override `CONFIG_PACKAGE_...=y` lines inserted by OpenWrt for default packages (as Gluon did not know about these default packages). This resulted in the unintended removal of such packages from other devices that did not contain the same package in their device package lists. Avoid this issue by explicitly adding OpenWrt's target default package list to the front of Gluon's target package list.
-
- Dec 31, 2021
-
-
Matthias Schiffer authored
We currently don't have any deprecated devices, so it doesn't make much sense to force every site to specify this variable. Make it default to 0 instead.
-
- Dec 21, 2021
-
-
Martin Weinelt authored
Using `make container` or, if you don't have automake/gmake on your host system, `./scripts/container.sh` will build an image for the current branch your are on and drop you into a shell running inside a container using that image. From there all tooling required to work on Gluon is available. Supports both podman (preferred) and docker.
-
- Dec 15, 2021
-
-
Matthias Schiffer authored
The site.mk target was only evaluated after the whole makefile was parsed. This caused the GLUON_DEPRECATED error to be emitted first (hiding the more helpful message that no site config was found) on Gluon 2021.1.x, where GLUON_DEPRECATED is used in a toplevel if in targets.mk. By moving the check from recipe context to the toplevel, we ensure that it is evaluated during parsing.
-
Matthias Schiffer authored
-
- Oct 05, 2021
-
-
Matthias Schiffer authored
A helper script is introduced to get the version from `git describe`.
-
- Sep 19, 2021
-
-
lemoer authored
-
- Aug 14, 2021
-
-
Martin Weinelt authored
Iterates over all configured modules and checks them for updates.
-
- Aug 10, 2021
-
-
Martin Weinelt authored
-
- Oct 10, 2020
-
-
David Bauer authored
-
- Aug 15, 2020
-
-
Matthias Schiffer authored
Forgetting to `make update` or leaving uncommitted changes in the repositories managed by Gluon is a recurring cause of confusion, even for experienced developers. Let's print an obvious warning message in this case.
-
Matthias Schiffer authored
GLUON_AUTOUPDATER_BRANCH and GLUON_AUTOUPDATER_ENABLED should be set separately now.
-
- Jun 04, 2020
-
-
Chrissi^ (Chris Fiege) 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 13, 2020
-
-
Matthias Schiffer authored
-
- May 12, 2020
-
-
lemoer authored
-
- May 11, 2020
-
-
Matthias Schiffer authored
This reverts commit 2a8943e5. .SILENT gets passed down to OpenWrt make as -s through MAKEFLAGS. This hides certain messages from the build log with V=s.
-
- 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)
-
- Apr 09, 2020
-
-
Matthias Schiffer authored
-
Matthias Schiffer authored
-
Matthias Schiffer authored
Instead of exporting various variables (unintendedly making them available to the OpenWrt build, possibly bypassing .config), pass the environment only to commands that need it.
-
Matthias Schiffer authored
By using .ONESHELL and adding -e to .SHELLFLAGS, we can simplify complex shell commands (like manifest generation) and gain a simple way to pass multi-line environment variables into shell commands. The @ and + flags for recipe commands are moved to the top of each recipe.
-
Matthias Schiffer authored
-
- Mar 25, 2020
-
-
David Bauer authored
This allows to define a list of packages, which are only installed for a specific device-class.
-
David Bauer authored
-
David Bauer authored
-
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.
-
- Dec 29, 2019
-
-
Jan-Tarek Butt authored
[Matthias Schiffer: minor script improvements]
-
- Nov 07, 2019
-
-
Matthias Schiffer 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 22, 2019
-
-
Petr Štetiar authored
Signed-off-by:
Petr Štetiar <ynezz@true.cz>
-
- Apr 19, 2019
-
-
Matthias Schiffer authored
By passing the package name through merge_packages, it becomes possible to override the package choice in GLUON_SITE_PACKAGES again, for example: GLUON_SITE_PACKAGES += -hostapd-mini hostapd
-
- Apr 11, 2019
-
-
bobcanthelpyou authored
-
- Jul 10, 2018
-
-
Matthias Schiffer authored
-