X-Git-Url: https://git.ti.com/gitweb?p=wilink8-wlan%2Fbuild-utilites.git;a=blobdiff_plain;f=build_wl18xx.sh;h=20aa64e09dc6943376737de9b6146244dc9b28b6;hp=b02d13b07e1dbb7693957aae8b04e65c0fa3d98a;hb=7a37c35d29e69492957dd18a1dc5bdaf6ea0f0dc;hpb=76d2ec6aa49314fd6f739b44a59b5977e2cc909a diff --git a/build_wl18xx.sh b/build_wl18xx.sh index b02d13b..20aa64e 100755 --- a/build_wl18xx.sh +++ b/build_wl18xx.sh @@ -314,7 +314,7 @@ function build_modules() { generate_compat cd_repo compat_wireless - if [ -d "$PATH__ROOT/patches/driver_patches/$KERNEL_VARIANT" ]; then + if [ -n "$KERNEL_VARIANT" ] && [ -d "$PATH__ROOT/patches/driver_patches/$KERNEL_VARIANT" ]; then for i in $PATH__ROOT/patches/driver_patches/$KERNEL_VARIANT/*.patch; do print_highlight "Applying driver patch: $i" patch -p1 < $i;