If community-patches were asked from .cfg and its dir is missing, make a clone of https://github.com/Frogging-Family/community-patches.git at the expected location.

Related to Frogging-Family/community-patches#6
This commit is contained in:
Tk-Glitch 2020-04-15 16:24:19 +02:00
parent afbf8ffab5
commit 77403be53a
4 changed files with 12 additions and 0 deletions

View File

@ -709,6 +709,9 @@ prepare() {
# Community patches
if [ -n "$_community_patches" ]; then
if [ ! -d "$_where/../../community-patches" ]; then
cd "$_where/../.." && git clone https://github.com/Frogging-Family/community-patches.git && cd "${srcdir}/linux-${_basekernel}"
fi
_community_patches=($_community_patches)
for _p in ${_community_patches[@]}; do
ln -s "$_where"/../../community-patches/linux54-tkg/$_p "$_where"/

View File

@ -761,6 +761,9 @@ prepare() {
# Community patches
if [ -n "$_community_patches" ]; then
if [ ! -d "$_where/../../community-patches" ]; then
cd "$_where/../.." && git clone https://github.com/Frogging-Family/community-patches.git && cd "${srcdir}/linux-${_basekernel}"
fi
_community_patches=($_community_patches)
for _p in ${_community_patches[@]}; do
ln -s "$_where"/../../community-patches/linux55-tkg/$_p "$_where"/

View File

@ -767,6 +767,9 @@ prepare() {
# Community patches
if [ -n "$_community_patches" ]; then
if [ ! -d "$_where/../../community-patches" ]; then
cd "$_where/../.." && git clone https://github.com/Frogging-Family/community-patches.git && cd "${srcdir}/linux-${_basekernel}"
fi
_community_patches=($_community_patches)
for _p in ${_community_patches[@]}; do
ln -s "$_where"/../../community-patches/linux56-tkg/$_p "$_where"/

View File

@ -755,6 +755,9 @@ prepare() {
# Community patches
if [ -n "$_community_patches" ]; then
if [ ! -d "$_where/../../community-patches" ]; then
cd "$_where/../.." && git clone https://github.com/Frogging-Family/community-patches.git && cd "${srcdir}/linux-${_basekernel}-${_sub}"
fi
_community_patches=($_community_patches)
for _p in ${_community_patches[@]}; do
ln -s "$_where"/../../community-patches/linux57-tkg/$_p "$_where"/