The upstream builds always use LINUX_RELEASE=1. By setting it to 2 we ensure that our modules are always preferred as long as our kernel version is at least as high as the upstream one.
@@ -16,6 +16,11 @@ BOARD_KDIR = $(BOARD_BUILDDIR)/kernel
export BOARD_BUILDDIR
+
+LINUX_RELEASE := 2
+export LINUX_RELEASE
GLUON_OPENWRTDIR = $(BOARD_BUILDDIR)/openwrt