gluon/scripts
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
..
check_site.lua scripts: check_site: add need_number_range check 2020-04-30 01:54:35 +02:00
clean_output.lua scripts: avoid global variables in target handler scripts 2019-06-18 01:34:45 +02:00
copy_output.lua build: move package list generation to target_config_lib.lua, fix precedence 2020-05-03 22:05:20 +02:00
default_feeds.sh scripts: move DEFAULT_FEEDS definition to a separate file 2018-07-11 21:47:50 +02:00
domain_aliases.lua gluon-core: add domain aliases and pretty name 2018-01-26 12:32:47 +01:00
features.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
feeds.sh build: allow overriding the base feed list 2020-04-09 14:30:44 +02:00
filesize.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
generate_manifest.lua scripts/target_lib.lua: reorganize images into per-device lists 2020-04-25 21:35:44 +02:00
lint-lua.sh build: add make targets lint, lint-sh, lint-lua 2019-12-29 15:18:50 +01:00
lint-sh.sh build: add make targets lint, lint-sh, lint-lua 2019-12-29 15:18:50 +01:00
modules.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
patch.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
rfc3339date.lua scripts/rfc3339date.lua: fix pattern validity 2014-07-21 03:44:53 +02:00
sha256sum.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
sha512sum.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
site_config.lua Switch to Lua for target definitions 2019-06-15 23:34:07 +02:00
target_config_check.lua scripts: avoid global variables in target handler scripts 2019-06-18 01:34:45 +02:00
target_config_lib.lua build: move package list generation to target_config_lib.lua, fix precedence 2020-05-03 22:05:20 +02:00
target_config.lua scripts: avoid global variables in target handler scripts 2019-06-18 01:34:45 +02:00
target_lib.lua build: move package list generation to target_config_lib.lua, fix precedence 2020-05-03 22:05:20 +02:00
update-patches.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
update.sh treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00