zoukankan      html  css  js  c++  java
  • Msm 高通平台配置记录之一

    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) \



  • 相关阅读:
    [LeetCode] 159. Longest Substring with At Most Two Distinct Characters 最多有两个不同字符的最长子串
    [LeetCode] 76. Minimum Window Substring 最小窗口子串
    window.scrollTo和window.scrollBy
    background-clip与background-origin
    page-break-before和page-break-after
    CSS counter计数器(content目录序号自动递增)详解
    移动端网页巧用 margin和padding 的百分比实现自适应
    监听屏幕旋转事件window. onorientationchange
    apple-touch-startup-image 制作iphone web应用程序的启动画面
    当把链接保存到手机桌面。设置图标 只在safari浏览器中有用
  • 原文地址:https://www.cnblogs.com/yuzaipiaofei/p/4124132.html
Copyright © 2011-2022 走看看