aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-28 20:34:14 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-28 20:34:16 +0100
commit3736a04ff5cf00d5d07e3e9f33438fbf83dc2401 (patch)
tree8f8895a88505cd6a8e4579c02a1485b9913351bb
parentwg-quick: more whitespace tolerance (diff)
downloadandroid_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.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 0ac774e..953bece 100644
--- a/Android.mk
+++ b/Android.mk
@@ -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"