Commit Graph

442 Commits

Author SHA1 Message Date
T-X
9215d28972
ar71xx-generic: Add support for GL-iNet Microuter (GL-USB150) (#2112)
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2020-08-30 00:48:37 +02:00
Andreas Ziegler
a9e9d4050f
Merge pull request #2096 from freifunk-gluon/cpe210-versions
New CPE210/... v3 versions strings
2020-08-15 23:04:55 +02:00
Matthias Schiffer
e6d3d1584c
build: deprecate GLUON_BRANCH Make variable
GLUON_AUTOUPDATER_BRANCH and GLUON_AUTOUPDATER_ENABLED should be set
separately now.
2020-08-15 16:36:27 +02:00
Matthias Schiffer
ee53357580
gluon-autoupdater: split CONFIG_GLUON_BRANCH into two separate options
The new options are CONFIG_GLUON_AUTOUPDATER_BRANCH and
CONFIG_GLUON_AUTOUPDATER_ENABLED and allow to control the default branch
and default enable status separately.

The `or ''` fallback in targets/generic is removed, as GLUON_ENV will
set all variables in GLUON_VARS, making previously non-existing
variables exist with an empty value.
2020-08-15 16:36:27 +02:00
Matthias Schiffer
49e8d95bb4
ar71xx-generic: add manifest_aliases for new CPE210 v3 minor revisions 2020-08-15 15:40:18 +02:00
Matthias Schiffer
bcc8eb5232
ar71xx-generic: move CPE/WBS 210/220/510/520 minor versions to manifest_aliases
Only include the major version in the base image name or aliases.
2020-08-15 15:25:23 +02:00
David Bauer
43b95cfcaa
lantiq-xrx200: remove modem packages from image (#2087)
The packages necessary to get the DSL modem working increase the
squashfs size by around 1MB.

Remove them from Gluon, as this functionality is not supported.
2020-08-11 17:30:49 +02:00
Matthias Schiffer
b3edfd292a
build: target_config_lib: do not build unused packages for targets without opkg (#2051)
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.
2020-06-11 02:16:49 +02:00
Chrissi^ (Chris Fiege)
1956696da5
openwrt: Store Kernel Debug-Info (#1971)
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>
2020-06-04 22:35:58 +02:00
David Bauer
cfce3ee91e ar71xx-generic: set tiny class-flag for D-Link DIR-825 B1
The D-Link DIR-825 has only 6M of usable firmware space.
2020-06-04 18:02:32 +02:00
Matthias Schiffer
3ce43329f5
build: remove now-unneeded function from target_config_lib.lua
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.
2020-05-31 02:20:58 +02:00
Matthias Schiffer
9e23534ec3
build: rework config generation
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.
2020-05-31 02:20:58 +02:00
Matthias Schiffer
7e8af99cf5 generic: reduce squashfs block size to 256KiB
In OpenWrt 19.07, the block size was increased to 1024KiB for "tiny"
devices by default to save flash. Unfortunately, this also significantly
increases the cache memory required by squashfs.

In my test, the increased block size reduced the image size by ~64KiB,
but increased the RAM usage by ~2.6MiB. As most tiny devices have only
32MiB of RAM, this is not a reasonable tradeoff.

The ar71xx-generic target already defines an even lower block size of
64KiB.
2020-05-28 19:40:29 +02:00
Matthias Schiffer
1cb97ad63e generic: remove kmod-ipt-offload
This is unused by Gluon.
2020-05-28 19:40:29 +02:00
Vieno Hakkerinen
87aecd5ab5 targets: add x86-legacy subtarget
As x86-generic is compiled to pentium4 (and newer) there is a need for
a subtarget for older devices. The x86-legacy subtarget is set to
compile to pentium (and newer) and should support even very old devics.

x86-legacy includes the packages from x86.inc to only maintain one
package list. The three excludes are because the packages do not exist
for x86-legacy.
2020-05-16 23:58:46 +02:00
Matthias Schiffer
ab6596115a build: introduce GLUON_AUTOREMOVE flag 2020-05-13 15:48:06 +02:00
lemoer
57516fe4e7
Add GLUON_MINIFY flag to allow skipping the minification process (#1916) 2020-05-13 00:45:06 +02:00
Matthias Schiffer
c90b400ce5
Merge pull request #2008 from ctr49/master
add hardware: Linksys EA6350 v3
2020-05-08 19:15:39 +02:00
ctr49
07d9db9add add hardware: Linksys EA6500 v3 2020-05-03 23:05:39 +02:00
Matthias Schiffer
53690d83be
build: move package list generation to target_config_lib.lua, fix precedence
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)
2020-05-03 22:05:20 +02:00
André Fiedler
954b7af72b ath79-generic: add support for TP-Link CPE220 v3 2020-04-27 16:42:10 +02:00
David Bauer
5231fb0178 lantiq-xway: remove support for AVM FRITZ!Box 7320 7330 7330SL
This device has broken Ethernet on both ports.

Remove support for those devices. for now, as there was no feedback from
the original author.

Closes #1943
2020-04-26 18:02:46 +02:00
aiyion.prime
0f3f4bc897 ramips-mt76x8: add support for Cudy WR1000
v2 is available on the market, but apparently has no upstream support, yet:
https://forum.openwrt.org/t/v2-of-cudy-wr1000/56965
2020-04-25 17:25:32 +02:00
Jan Alexander
17b49e20ee ath79-generic: add support for GL.iNet GL-AR750S 2020-04-09 20:29:24 +02:00
David Bauer
95b133d4fd x86-geode: add target class
x86-geode does not include the common x86 target-settings. Thus we need
to specify the device class in order to build images with all necessary
packages included.
2020-04-06 21:36:28 +02:00
David Bauer
c9f90c3ef8 build: add class-packages for targets without devices
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 9c52365077 ("build: introduce device classes")
2020-03-27 23:35:24 +01:00
David Bauer
7fd7116e2a targets: add device-class flags
This commit assigns class-flags to devices. The following scheme is
used:

 - ath9k & ath10k: tiny if RAM <128M
 - ath10k & ath10k: tiny if RAM <256M
 - all: tiny if RAM <64M
 - all: tiny if flash <8M

All other devices automatically have the default device-class selected.
2020-03-25 02:05:18 +01:00
David Bauer
3d5a693026
x86: add common wireless packages (#1947) 2020-03-23 19:00:28 +01:00
Matthias Schiffer
d7e724ada9
target_lib: replace envtrue with more intuitive istrue helper
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2020-03-14 16:51:43 +01:00
Andreas Ziegler
d8b944ea95 lantiq-xway: add support for NETGEAR DGN3500B 2020-03-14 16:25:51 +01:00
Andreas Ziegler
43995c4624
codestyle: replace leading spaces with tabs in target files (#1954) 2020-03-09 22:19:07 +01:00
Martin Weinelt
694b6e493d
lantiq-xrx200: disable factory image for tl-w{8970,8980}
There is no factory image, they are flashed using the sysupgrade image.
2020-03-09 15:32:00 +01:00
David Lutz
7ffc59d152
lantiq-xrx200: add support for TP-Link TD-W8970, TD-W8980, TD-W9980 (#1867) 2020-03-09 04:15:21 +01:00
Jan Alexander
5591d3e745 ipq40xx-generic: add support for EnGenius ENS620EXT 2020-03-09 02:15:50 +01:00
Matthias Schiffer
0af45b70f9
brcm2708: update image names and manifest aliases for new libplatforminfo 2020-02-04 23:59:16 +01:00
Matthias Schiffer
f0e5c5c3c5
Merge branch 'patch-1' of https://github.com/Dark4MD/gluon 2020-02-04 23:54:08 +01:00
Matthias Schiffer
af21f912b2
generic: fix GLUON_DEBUG on targets without configurable rootfs size
Fixes: c3435607e1 ("generic: increase RootFS size when GLUON_DEBUG is enabled")
2020-02-04 02:04:36 +01:00
Manu.WTF
40ec997641 brcm2708-bcm2710: add manifest_alias for raspberry-pi-3-model-b-rev-1.2 2020-02-03 00:14:22 +01:00
Andreas Ziegler
390884819c docs: rename vendor to GL.iNet for uniformity 2020-02-02 01:12:46 +01:00
Andreas Ziegler
0e832c175c ath79-generic: add support for GL.iNet GL-AR300M-Lite 2020-02-02 01:12:46 +01:00
Jan Alexander
9741fb316d ramips-mt76x8: add support for TP-Link TL-MR3020 v3 2020-01-31 22:52:32 +01:00
Nudelsalat
b01327b5d6 ramips-mt7621: add support for Netgear EX6150 2020-01-26 22:54:34 +01:00
Steffen Förster
79ca7a7baa ramips-mt7620: add support for tp-link archer c20 v1 (#1866)
Specification:
- MediaTek MT7620A (580 Mhz)
- 64 MB of RAM
- 8 MB of FLASH
- 2T2R 2.4 GHz and 1T1R 5 GHz
- 5x 10/100 Mbps Ethernet
- 2x external, non-detachable antennas
- UART (J1) header on PCB (115200 8n1)
- 8x LED (GPIO-controlled*), 2x button, power input switch
- 1 x USB 2.0 port
2020-01-20 23:26:04 +01:00
Jan Alexander
c30a022e94 ramips-mt76x8: add support for TP-Link TL-WA801ND v5 2020-01-18 11:15:17 +01:00
Dark4MD
fbb59cfd60 ramips-mt7620: add support for TP-Link Archer C20i 2020-01-10 02:37:54 +01:00
Steffen Förster
c1ed710964 ramips-mt76x8: add support for TP-Link TL-WR902AC v3
TP-Link TL-WR902AC v3 is a pocket-size dual-band (AC750) router
based on MediaTek MT7628N + MT7650E.

Specification:
- MediaTek MT7628N/N (580 Mhz)
- 64 MB of RAM
- 8 MB of FLASH
- 2T2R 2.4 GHz and 1T1R 5 GHz
- 1x 10/100 Mbps Ethernet
2020-01-10 02:37:33 +01:00
Dark4MD
19e0f7959e ramips-mt7620: add support for TP-Link Archer C50 v1 2020-01-09 00:53:21 +01:00
Dark4MD
13f16ed737 ramips-mt7620: add support for TP-Link Archer C2 v1 2020-01-08 19:12:34 +01:00
Dark4MD
0e1cc743d7 ramips-mt7620: remove broken flag for Xiaomi MiWifi Mini
WiFi driver is stable now.
2020-01-06 00:03:16 +01:00
David Bauer
c3435607e1 generic: increase RootFS size when GLUON_DEBUG is enabled
This increases the size of the root filesystem when GLUON_DEBUG is
enabled. Otherwise, the filesystem is too small.

Closes #1907
2020-01-05 19:14:09 +01:00