diff options
Diffstat (limited to 'kernel-tree-scripts/jerry-rig.sh')
-rwxr-xr-x | kernel-tree-scripts/jerry-rig.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel-tree-scripts/jerry-rig.sh b/kernel-tree-scripts/jerry-rig.sh index 3d4139a..fe309a5 100755 --- a/kernel-tree-scripts/jerry-rig.sh +++ b/kernel-tree-scripts/jerry-rig.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash K="$1" WG="$(readlink -f "$(dirname "$(readlink -f "$0")")/../../src/")" @@ -8,5 +8,6 @@ if [[ ! -e $K/net/Kconfig ]]; then exit 1 fi -sed -i "/^if INET\$/a source \"$WG/Kconfig\"" "$K/net/Kconfig" -echo "obj-y += ../../../../../../../../../../../../../../../../../../../../../..$WG/" >> "$K/net/Makefile" +ln -sfT "$WG" "$K/net/wireguard" +sed -i "/^obj-\\\$(CONFIG_NETFILTER).*+=/a obj-\$(CONFIG_WIREGUARD) += wireguard/" "$K/net/Makefile" +sed -i "/^if INET\$/a source \"net/wireguard/Kconfig\"" "$K/net/Kconfig" |