Added official and non-official mirrors for repositories from git.openwrt.org.
This may necessary because the Russian government has blocked the IP address
of the git.openwrt.org (46.101.214.210) and we may do not have access to it
with some ISP's.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
For all static files of the LuCI themes the hash is calculated. A parameter
with a hash of the file is added to the file loading location (in header.htm
and footer.htm) to avoid cache problems when theme is updated. Additionally
added hashes for cbi.js and xhr.js files loading.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
All LuCI modules requires inclusion for `recipes-extended/luci/luci.inc`.
Therefore, inclusion of this file is moved to the code openwrt-luci-pkg
class code.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Changed:
* Added new OPENWRT_VERSION_HOME_URL variable
* Set OPENWRT_VERSION_CODE by current git revision
* Set valid OPENWRT_VERSION_REPO value
* Set OPENWRT_VERSION_BUG_URL to github issues page
* Empty OPENWRT_VERSION_SUPPORT_URL value
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
kmod-* recipes is a wrappers for kernel modules with kernel
configuration checks.
In addition, these recipes allows to customize the autoloading of the
kernel modules in case of that they builded as modules.
kmod-* recipes consists of the following directives:
KERNEL_CONFIG_DEPENDS += "{\
option = CONFIG_OPTION_NAME, \
required = y|m, \
m_rdepends = kernel-module-mod1, \
m_rdepends = kernel-module-mod2, \
m_autoload = mod1, \
m_autoload = mod2 mod2_param=value, \
m_autoload_early = false, \
m_autoload_priority = 30, \
m_autoload_script = modules \
}"
Each directive refers to a single kernel configiration option, which
is specified in the `option` parameter.
Parameter `required` determines the possible values of the kernel
configuration option, separated by `|` symbol:
* `y` — builtin;
* `m` — module;
* `n` — not set;
* any other specific value.
All other parameters are optional and applied only if kernel configuration
option has been set to `m`.
Runtime dependencies (`RDEPENDS` variable) may be specified in `m_rdepends`
parameter. Parameter `m_rdepends` can be specified several times (one record
for each dependency).
Module name with module parameters for automatic loading must be specified
in the parameter `m_autoload`. Parameter `m_autoload` can also be specified
several times.
By default, a modprobe file is created in the `/etc/modules.d` folder with
the contents consisting of lines from `m_autoload` parameters.
If `m_autoload_early` set to `true` (default value is `false`) then modprobe
file is symlinked to `/etc/modules-boot.d` folder.
Parameter `m_autoload_script` sets the name for the modprobe file in the
`/etc/modules.d` or/and `/etc/modules-boot.d` folders.
If the parameter `m_autoload_priority` value is set, then the modprobe file
name will be preceded by a priority value using the format `%02d-name`.
The priority value must be between 0 and 99.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Added kernel-config-check class that can be used for checking
kernel configuration options.
Basic usage syntax is:
KERNEL_CONFIG_CHECK[<option>] = "<allowed>[=<rdepend>],..."
For example, if we need the option CONFIG_BRIDGE to be set to 'y',
we need to write in recipe:
inherit kernel-config-check
KERNEL_CONFIG_CHECK[BRIDGE] = "y"
If we also need to support CONFIG_BRIDGE=m, we need to write:
KERNEL_CONFIG_CHECK[BRIDGE] = "y,m"
We can also add a runtime dependency for CONFIG_BRIDGE=m:
KERNEL_CONFIG_CHECK[BRIDGE] = "y,m=kernel-module-bridge"
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Add option ROOTFS_RM_BOOT_DIR_KEEP_DTB to rootfs-rm-boot-dir class that
allow to keep DTB files in /boot in root filesystem image.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Now the layer does not depend directly on the Arago distribution layers.
But Arago support remained. For this, some configuration files were taken from
the meta-arago-distro and meta-arago-extras layers.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Install all files with 0644 permissions and make 0755 permissions
only for files specified in LUCI_PKG_EXECUTABLE variable.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Add variables LUCI_APP_SRC, LUCI_THEME_SRC, LUCI_I18N_SRC in
appropriate classes.
This variables can be redefined in recipes if sources is not in the root
of source directory ${S}.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
These options allow to override the version information embedded in
the /etc/openwrt_version, /etc/openwrt_release, /etc/issue and
/etc/os-release files.
Add processing by version script these files:
- /etc/os-release -> /usr/lib/os-release
- /etc/device_info
- /etc/openwrt_release
- /etc/openwrt_version
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Improved OpenWrt service management class allows to configure
multiple init scripts for one package and setup initial service
state (enabled or disabled) for each init script.
For example:
```
inherit openwrt-services
OPENWRT_SERVICE_PACKAGES = "pkgname"
OPENWRT_SERVICE_SCRIPTS_pkgname = "init_script_1 init_script_2"
OPENWRT_SERVICE_STATE_pkgname-init_script_1 = "enabled"
OPENWRT_SERVICE_STATE_pkgname-init_script_2 = "disabled"
```
Package pkgname has two init scripts (init_script_1 and init_script_2)
that must be located at /etc/init.d directory. Initial state (first boot)
for init_script_1 is enabled, for init_script_2 - disabled.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Move modules autoloading config files from /etc/modules-load.d
to /etc/modules.d as needed for OpenWrt kmodloader and remove
/etc/modules-load.d folder from root filesystem.
/etc/modules-load.d is used by sysvinit. OpenWrt's procd
uses /etc/modules.d directory.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>