no ifeq function, it is only a conditional directive. Use if and filter instead

-            $(ifeq kernel,$(_dest), \
-                $(eval HAS_PREBUILT_KERNEL := true)))

+            $(if $(filter kernel,$(_dest)), \
+                $(eval HAS_PREBUILT_KERNEL := ture)))