Home | History | Annotate | Download | only in board
      1 #
      2 # Set up product-global definitions and include product-specific rules.
      3 #
      4 
      5 ifneq ($(strip $(TARGET_NO_BOOTLOADER)),true)
      6   INSTALLED_BOOTLOADER_MODULE := $(PRODUCT_OUT)/bootloader
      7   ifeq ($(strip $(TARGET_BOOTLOADER_IS_2ND)),true)
      8     INSTALLED_2NDBOOTLOADER_TARGET := $(PRODUCT_OUT)/2ndbootloader
      9   else
     10     INSTALLED_2NDBOOTLOADER_TARGET :=
     11   endif
     12 else
     13   INSTALLED_BOOTLOADER_MODULE :=
     14   INSTALLED_2NDBOOTLOADER_TARGET :=
     15 endif	# TARGET_NO_BOOTLOADER
     16 
     17 ifneq ($(strip $(TARGET_NO_KERNEL)),true)
     18   INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel
     19 else
     20   INSTALLED_KERNEL_TARGET :=
     21 endif
     22 
     23 -include $(TARGET_DEVICE_DIR)/AndroidBoard.mk
     24 
     25 # Generate a file that contains various information about the
     26 # device we're building for.  This file is typically packaged up
     27 # with everything else.
     28 #
     29 # If TARGET_BOARD_INFO_FILE (which can be set in BoardConfig.mk) is
     30 # defined, it is used, otherwise board-info.txt is looked for in
     31 # $(TARGET_DEVICE_DIR).
     32 #
     33 INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
     34 board_info_txt := $(TARGET_BOARD_INFO_FILE)
     35 ifndef board_info_txt
     36 board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
     37 endif
     38 $(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
     39 	$(hide) build/tools/check_radio_versions.py $< $(BOARD_INFO_CHECK)
     40 	$(call pretty,"Generated: ($@)")
     41 ifdef board_info_txt
     42 	$(hide) grep -v '#' $< > $@
     43 else
     44 	$(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
     45 endif
     46