forked from pool/kernel-source
This commit is contained in:
parent
ef11beb172
commit
30f6fed915
@ -1,16 +0,0 @@
|
||||
relink() {
|
||||
if [ -h "$2" ]; then
|
||||
local old=$(readlink "$2")
|
||||
[ "$old" = "$1" ] && return 0
|
||||
echo "Changing symlink $2 from $old to $1"
|
||||
elif [ -e "$2" ]; then
|
||||
echo "Replacing file $2 with symlink to $1"
|
||||
fi
|
||||
rm -f "$2" \
|
||||
&& ln -s "$1" "$2"
|
||||
}
|
||||
|
||||
release="@KERNELRELEASE@@SRCVARIANT@-obj"
|
||||
arch_flavor="@CPU_ARCH_FLAVOR@"
|
||||
|
||||
relink ../../linux-$release/"$arch_flavor" /usr/src/linux-obj/"$arch_flavor"
|
Loading…
Reference in New Issue
Block a user