Remove unnecessary dependency on updater

Only add updater(a non-AB) dependency if target is explicitly
configured as non-AB(AB_OTA_UPDATER=false). For AB targets, or
SDK targets(which do not set AB_OTA_UPDATER at all), this
dependency is removed.

Test: build sdk_car_arm64-trunk_staging-userdebug
Bug: 380352124
Change-Id: Iaa21cab2e19d4467b0aad356e3a75f06db658a53
diff --git a/core/Makefile b/core/Makefile
index 9728b52..cd44d02 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -6199,11 +6199,14 @@
 
 built_ota_tools :=
 
+
 # We can't build static executables when SANITIZE_TARGET=address
 ifeq (,$(filter address, $(SANITIZE_TARGET)))
+ifeq (false,$(AB_OTA_UPDATER))
 built_ota_tools += \
     $(call intermediates-dir-for,EXECUTABLES,updater)/updater
 endif
+endif
 
 $(BUILT_TARGET_FILES_DIR): PRIVATE_OTA_TOOLS := $(built_ota_tools)