diff options
author | 2017-11-28 20:34:14 +0100 | |
---|---|---|
committer | 2017-11-28 20:34:16 +0100 | |
commit | 3736a04ff5cf00d5d07e3e9f33438fbf83dc2401 (patch) | |
tree | 8f8895a88505cd6a8e4579c02a1485b9913351bb | |
parent | wg-quick: more whitespace tolerance (diff) | |
download | android_kernel_wireguard-3736a04ff5cf00d5d07e3e9f33438fbf83dc2401.tar.xz android_kernel_wireguard-3736a04ff5cf00d5d07e3e9f33438fbf83dc2401.zip |
Fall back to using readlink -f if no realpath
Most coreutils have realpath(1), but not Debian Wheezy, so we fall back
to using readlink -f instead.
-rw-r--r-- | Android.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5,7 +5,7 @@ fetch: TARGET_KERNEL_BINARIES: patch-wireguard patch-wireguard: fetch - ln -vsfT "$$(realpath --relative-to="$(TARGET_KERNEL_SOURCE)/net)" "$(WIREGUARD_PATH)/wireguard/src")" "$(TARGET_KERNEL_SOURCE)/net/wireguard" + ln -vsfT "$$(realpath --relative-to="$(TARGET_KERNEL_SOURCE)/net)" "$(WIREGUARD_PATH)/wireguard/src" || readlink -f "$(WIREGUARD_PATH)/wireguard/src")" "$(TARGET_KERNEL_SOURCE)/net/wireguard" grep -q wireguard "$(TARGET_KERNEL_SOURCE)/net/Makefile" || sed -i "/^obj-\\\$$(CONFIG_NETFILTER).*+=/a obj-\$$(CONFIG_WIREGUARD) += wireguard/" "$(TARGET_KERNEL_SOURCE)/net/Makefile" grep -q wireguard "$(TARGET_KERNEL_SOURCE)/net/Kconfig" || sed -i "/^if INET\$$/a source \"net/wireguard/Kconfig\"" "$(TARGET_KERNEL_SOURCE)/net/Kconfig" |