Msm 高通平台配置記錄之一

來源:互聯網
上載者:User

device/qcom/msm8625/BoardConfig.mk

TARGET_CPU_ABI  := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_BOARD_PLATFORM := msm7627a
TARGET_BOOTLOADER_BOARD_NAME := 7x27
TARGET_CPU_SMP := true
TARGET_AVOID_DRAW_TEXTURE_EXTENSION := true
TARGET_USES_16BPPSURFACE_FOR_OPAQUE := true

Board部分配置如上:

vendor/qcom/proprietary/common/config/device-vendor.mk

ifneq (, $(filter $(PRODUCT_LIST), $(TARGET_PRODUCT)))

  include device/qcom/$(TARGET_PRODUCT)/BoardConfig.mk

  ifeq ($(call is-board-platform,msm8660),true)     這裡判斷當前平台是否是msm8660. 
    PREBUILT_BOARD_PLATFORM_DIR := msm8660_surf
  else ifeq ($(TARGET_PRODUCT),msm8625)
    PREBUILT_BOARD_PLATFORM_DIR := msm8625
  else
   #PREBUILT_BOARD_PLATFORM_DIR := $(TARGET_BOARD_PLATFORM)
    PREBUILT_BOARD_PLATFORM_DIR := msm8625

  endif

 84 # $(call is-board-platform,bp)
 85 # returns true or empty
 86 define is-board-platform
 87 $(call match-word,$(1),$(TARGET_BOARD_PLATFORM))
 88 endef
 89 
 90 # $(call is-not-board-platform,bp)
 91 # returns true or empty
 92 define is-not-board-platform
 93 $(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true)
 94 endef
 95 
 96 # $(call is-board-platform-in-list,bpl)
 97 # returns true or empty
 98 define is-board-platform-in-list
 99 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1))      

匹配當前的TARGET_BOARD_PLATFORM ,也就是msm7627a 是否在定義的列表裡面. 這個就是關鍵用法.


100 endef

101 
102 # $(call is-vendor-board-platform,vendor)
103 # returns true or empty
104 define is-vendor-board-platform
105 $(strip \
106   $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\
107     $(call get-vendor-board-platforms,$(1)) \
108   ) \
109 )
110 endef

vim device/qcom/common/utils.mk

 # vars for use by utils  2 empty :=  3 space := $(empty) $(empty)  4 colon := $(empty):$(empty)  5 underscore := $(empty)_$(empty)  6   7 # $(call match-word,w1,w2)  8 # checks if w1 == w2  9 # How it works 10 #   if (w1-w2 not empty or w2-w1 not empty) then not_match else match 11 # 12 # returns true or empty 13 #$(warning :$(1): :$(2): :$(subst $(1),,$(2)):) \ 14 #$(warning :$(2): :$(1): :$(subst $(2),,$(1)):) \ 15 # 16 define match-word 17 $(strip \ 18   $(if $(or $(subst $(1),$(empty),$(2)),$(subst $(2),$(empty),$(1))),,true) \ 19 ) 20 endef  1 # vars for use by utils  2 empty :=  3 space := $(empty) $(empty)  4 colon := $(empty):$(empty)  5 underscore := $(empty)_$(empty)  6   7 # $(call match-word,w1,w2)  8 # checks if w1 == w2  9 # How it works 10 #   if (w1-w2 not empty or w2-w1 not empty) then not_match else match 11 # 12 # returns true or empty 13 #$(warning :$(1): :$(2): :$(subst $(1),,$(2)):) \ 14 #$(warning :$(2): :$(1): :$(subst $(2),,$(1)):) \ 15 # 16 define match-word 17 $(strip \ 18   $(if $(or $(subst $(1),$(empty),$(2)),$(subst $(2),$(empty),$(1))),,true) \

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.