Select Git revision
0103-kernel-collect-module-symvers-for-external-modules.patch
Forked from
firmware / FFS Gluon
Source project has a limited visibility.
-
Sven Eckelmann authored
Collect module symvers for all external modules to make them available for modpost. This fixes dependencies for most external modules. root@ffv-525400123456:/# modinfo batman-adv module: /lib/modules/4.4.153/batman-adv.ko alias: net-pf-16-proto-16-family-batadv alias: rtnl-link-batadv version: openwrt-2018.1-5 description: B.A.T.M.A.N. advanced author: Marek Lindner <mareklindner@neomailbox.ch>, Simon Wunderlich <sw@simonwunderlich.de> license: GPL depends: After: root@ffv-525400123456:/# modinfo batman-adv module: /lib/modules/4.4.153/batman-adv.ko alias: net-pf-16-proto-16-family-batadv alias: rtnl-link-batadv version: openwrt-2018.1-5 description: B.A.T.M.A.N. advanced author: Marek Lindner <mareklindner@neomailbox.ch>, Simon Wunderlich <sw@simonwunderlich.de> license: GPL depends: libcrc32c,cfg80211
Sven Eckelmann authoredCollect module symvers for all external modules to make them available for modpost. This fixes dependencies for most external modules. root@ffv-525400123456:/# modinfo batman-adv module: /lib/modules/4.4.153/batman-adv.ko alias: net-pf-16-proto-16-family-batadv alias: rtnl-link-batadv version: openwrt-2018.1-5 description: B.A.T.M.A.N. advanced author: Marek Lindner <mareklindner@neomailbox.ch>, Simon Wunderlich <sw@simonwunderlich.de> license: GPL depends: After: root@ffv-525400123456:/# modinfo batman-adv module: /lib/modules/4.4.153/batman-adv.ko alias: net-pf-16-proto-16-family-batadv alias: rtnl-link-batadv version: openwrt-2018.1-5 description: B.A.T.M.A.N. advanced author: Marek Lindner <mareklindner@neomailbox.ch>, Simon Wunderlich <sw@simonwunderlich.de> license: GPL depends: libcrc32c,cfg80211
zzz-gluon-upgrade 1019 B
#!/bin/sh
UPGRADE_DIR=/lib/gluon/upgrade
VERSION_DIR=/lib/gluon/version
if [ -x /lib/gluon/legacy/legacy-upgrade ] && /lib/gluon/legacy/legacy-upgrade; then
HAS_LEGACY=1
else
HAS_LEGACY=
fi
mkdir -p "$VERSION_DIR"
version_of() {
opkg status "gluon-$1" | awk '/^Version: / { print $2 }'
}
oldversion_of() {
cat "$VERSION_DIR"/"$1" 2>/dev/null
}
do_dir() {
[ -d "$1" ] || return
local s
for s in "$1"/*; do "$s"; done
}
do_component() {
local component="$1"
local version="$(version_of "$component")"
[ "$version" ] || continue
(
cd "$component"
local oldversion="$(oldversion_of "$component")"
if [ -z "$oldversion" ]; then
if [ "$HAS_LEGACY" ]; then
do_dir legacy
else
do_dir initial
fi
fi
do_dir invariant
echo "$version" > "$VERSION_DIR"/"$component"
)
}
cd "$UPGRADE_DIR"
do_component core
for component in *; do
[ "$component" != 'core' ] || continue
do_component "$component"
done
if [ "$HAS_LEGACY" ]; then
/lib/gluon/legacy/legacy-upgrade-late
fi