Use TARGET_BOARD_INFO_FILE to locate board-info.txt

So board-info.txt can be inherited from the parent device.

Change-Id: I5d99a2483b9a325e475f3c602d9e0f5d2b95e80c
This commit is contained in:
Ying Wang
2011-06-13 17:36:08 -07:00
parent 8bfaa68b53
commit dc31d76b5d
2 changed files with 7 additions and 1 deletions

View File

@@ -27,10 +27,14 @@ endif
# with everything else.
#
# If the file "board-info.txt" appears in $(TARGET_DEVICE_DIR),
# it will be appended to the output file.
# it will be used; otherwise TARGET_BOARD_INFO_FILE is used, which
# can be set in BoardConfig.mk.
#
INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
ifndef board_info_txt
board_info_txt := $(TARGET_BOARD_INFO_FILE)
endif
$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
$(call pretty,"Generated: ($@)")
ifdef board_info_txt