Merge "android-info.txt: do not output 'board=' if no board_name"

This commit is contained in:
Treehugger Robot
2021-06-18 06:51:55 +00:00
committed by Gerrit Code Review

View File

@@ -24,8 +24,10 @@ $(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt) build/make/tools/check_r
$(call pretty,"Generated: ($@)")
ifdef board_info_txt
$(hide) grep -v '#' $< > $@
else
else ifdef TARGET_BOOTLOADER_BOARD_NAME
$(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
else
$(hide) echo "" > $@
endif
# Copy compatibility metadata to the device.