Fix build for non-Lynx devices.

radio.img should be target dependent and should not be used
unconditionally.

Test: ag/23177298 against aosp_barbet and aosp_bramble (L03400000960607158)
Bug: 281935024
Change-Id: Ia436210a90dfcb477a19f44eae2412b5589d23fc
This commit is contained in:
Xin Li 2023-05-11 13:36:32 -07:00
parent f893bea4f3
commit 19e09f99f8

View File

@ -18,10 +18,9 @@ LOCAL_PATH := $(call my-dir)
ifneq ($(filter lynx,$(TARGET_DEVICE)),)
$(call add-radio-file,bootloader.img)
$(call add-radio-file,radio.img)
endif
$(call add-radio-file-checked,radio.img,version-baseband)
ifneq ($(filter lynx,$(TARGET_DEVICE)),)
include $(CLEAR_VARS)
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)