| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # | 
 | 2 | # Set up product-global definitions and include product-specific rules. | 
 | 3 | # | 
 | 4 |  | 
| Jean-Baptiste Queru | 3f4e53a | 2010-09-15 11:59:33 -0700 | [diff] [blame] | 5 | -include $(TARGET_DEVICE_DIR)/AndroidBoard.mk | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 6 |  | 
 | 7 | # Generate a file that contains various information about the | 
 | 8 | # device we're building for.  This file is typically packaged up | 
 | 9 | # with everything else. | 
 | 10 | # | 
| Doug Zongker | 545b799 | 2012-01-19 10:43:49 -0800 | [diff] [blame] | 11 | # If TARGET_BOARD_INFO_FILE (which can be set in BoardConfig.mk) is | 
 | 12 | # defined, it is used, otherwise board-info.txt is looked for in | 
 | 13 | # $(TARGET_DEVICE_DIR). | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 14 | # | 
 | 15 | INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt | 
| Ying Wang | dc31d76 | 2011-06-13 17:36:08 -0700 | [diff] [blame] | 16 | board_info_txt := $(TARGET_BOARD_INFO_FILE) | 
| Doug Zongker | 545b799 | 2012-01-19 10:43:49 -0800 | [diff] [blame] | 17 | ifndef board_info_txt | 
 | 18 | board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt) | 
| Ying Wang | dc31d76 | 2011-06-13 17:36:08 -0700 | [diff] [blame] | 19 | endif | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 20 | $(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt) | 
| Doug Zongker | 9296f09 | 2012-03-20 16:42:22 -0700 | [diff] [blame] | 21 | 	$(hide) build/tools/check_radio_versions.py $< $(BOARD_INFO_CHECK) | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 22 | 	$(call pretty,"Generated: ($@)") | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 23 | ifdef board_info_txt | 
| Doug Zongker | 545b799 | 2012-01-19 10:43:49 -0800 | [diff] [blame] | 24 | 	$(hide) grep -v '#' $< > $@ | 
| Brian Swetland | 2b80317 | 2009-11-25 13:43:25 -0800 | [diff] [blame] | 25 | else | 
 | 26 | 	$(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@ | 
| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 27 | endif |