Skip to content

Commit

Permalink
wireguard: disable linux kernel module if not enabled in options
Browse files Browse the repository at this point in the history
  • Loading branch information
chewitt committed Apr 17, 2020
1 parent 81ca6b9 commit 3ae5345
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/linux/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ post_patch() {
sed -e "s|^CONFIG_DRM_LIMA=.*$|# CONFIG_DRM_LIMA is not set|" -i $PKG_BUILD/.config
sed -e "s|^CONFIG_DRM_PANFROST=.*$|# CONFIG_DRM_PANFROST is not set|" -i $PKG_BUILD/.config
fi

# disable wireguard support if not enabled
if [ ! "$WIREGUARD_SUPPORT" = yes ]; then
sed -e "s|^CONFIG_WIREGUARD=.*$|# CONFIG_WIREGUARD is not set|" -i $PKG_BUILD/.config
fi
fi
}

Expand Down

0 comments on commit 3ae5345

Please sign in to comment.