博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Msm 高通平台配置记录之一
阅读量:6799 次
发布时间:2019-06-26

本文共 2796 字,大约阅读时间需要 9 分钟。

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

转载于:https://www.cnblogs.com/yuzaipiaofei/archive/2013/02/22/4124132.html

你可能感兴趣的文章
java:如何让程序按要求自行重启?
查看>>
iOS:本地数据库sqlite的介绍
查看>>
python3 post方式上传文件。
查看>>
MVC 模型绑定
查看>>
android 时间对话框 TimePickerDialog简介
查看>>
href="javascript:void(0)"
查看>>
我的css释疑-float line-height inline-block vertical-align
查看>>
《Pro Android Graphics》读书笔记之第四节
查看>>
OC与Swift混编
查看>>
cxf webservice异步调用
查看>>
wampserver与 thinkphp 安装
查看>>
图像填充算法
查看>>
Cookie和Session的区别
查看>>
Leetcode: Binary Watch
查看>>
算法笔记_004:8枚硬币问题【减治法】
查看>>
让 MySQL 在 Linux 下表名不区分大小写(实为表名全小写)
查看>>
奇异值分解(SVD)原理与在降维中的应用
查看>>
linux文件管理2
查看>>
[转]python pickle模块
查看>>
爆气球这道题目,展开了新的思路
查看>>