diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 79991ea..6718331 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1368,7 +1368,11 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\r _community_patches=($_community_patches) mkdir -p "$_where"/linux"$_basever"-tkg-userpatches for _p in ${_community_patches[@]}; do - ln -s "$_where"/../community-patches/linux"$_basever"-tkg/$_p "$_where"/linux"$_basever"-tkg-userpatches/$_p + if [ ! -e "$_where/linux$_basever-tkg-userpatches/$_p" ]; then + ln -s "$_where"/../community-patches/linux"$_basever"-tkg/$_p "$_where"/linux"$_basever"-tkg-userpatches/$_p + else + warning "Ignoring '$_p' community patch already present in the userpatches dir" + fi done fi