Commit Graph

432 Commits

Author SHA1 Message Date
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
David Bauer
72e99aa2ba ipq40xx-generic: add alias for Aruba Instant On AP11
The Aruba Instant On AP11 is the Aruba AP-303 with a stripped-down
firmware. Add an alias for the device to remove confusion about the
different naming.
2020-01-05 15:50:11 +01:00
David Bauer
b6ec44d6af targets: remove ath10k-ct-smallbuffers
Remove the ath10k-ct-smallbuffers variant from the default
package-seleciton as it clashes with the QCA ath10k driver.
2020-01-05 00:21:29 +01:00
David Bauer
8df207c103 ipq40xx-generic: add support for Aruba AP-303 2020-01-04 01:43:10 +01:00
David Bauer
d428e53457 mpc85xx-p1020: add support for Enterasys WS-AP3710i 2019-12-23 01:54:23 +01:00
Dark4MD
fb191ab8e4 lantiq-xway: add support for AVM FRITZ!Box 7320, 7330 and 7330 SL 2019-12-19 22:45:06 +01:00
Dark4MD
40ef70534d lantiq-xrx200: add support for AVM FRITZ!Box 7360 (v1, v2) and 7360 SL 2019-12-12 12:47:41 +01:00
Dark4MD
510bcd4ab4 lantiq-xrx200: add support for AVM FRITZ!Box 7362 SL
Flash instructions in the OpenWRT Commit: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=eae6cac6a30b95bef04d033ed8a303b7e35a078b
2019-12-11 19:42:44 +01:00
Malte Möller
aa679bc6e9 ar71xx-generic: add alias for wndr3800chmychart
a regular Netgear WNDR3800
but identifies itself as wndr3800chmychart.
2019-12-04 11:52:15 +01:00
Simon Terzenbach
bb2744f0d8 ath79-generic: add support for devolo WiFi pro 1200e 2019-12-03 19:47:58 +01:00
Simon Terzenbach
bdfa4b71ff ath79-generic: add support for devolo WiFi pro 1750e 2019-12-03 19:47:39 +01:00