Skip to content

Commit

Permalink
BoardConfig: Add a default TARGET_BOOTLOADER_BOARD_NAME
Browse files Browse the repository at this point in the history
There is no need to break the build when a TARGET_BOOTLOADER_BOARD_NAME can not be derived from TARGET_PRODUCT.
Simply set a valid default value, and warn the user about the issue.
This is useful to guarantee compatibility with projects based on Sony's Open Devices that change TARGET_PRODUCT to fit their needs.

Change-Id: I5659a6b2b890c0fa4de766c73c2029185bae72f5
  • Loading branch information
oshmoun committed May 18, 2018
1 parent 8876500 commit c516430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BoardConfig.mk
Expand Up @@ -20,7 +20,8 @@ TARGET_BOOTLOADER_BOARD_NAME := G8231
else ifneq (,$(filter %g8232,$(TARGET_PRODUCT)))
TARGET_BOOTLOADER_BOARD_NAME := G8232
else
$(error Unrecognized value for TARGET_PRODUCT: "$(TARGET_PRODUCT)")
TARGET_BOOTLOADER_BOARD_NAME := G8231
$(warning Unrecognized value for TARGET_PRODUCT: "$(TARGET_PRODUCT)", using default value: "$(TARGET_BOOTLOADER_BOARD_NAME)")
endif

# Platform
Expand Down

0 comments on commit c516430

Please sign in to comment.