Chinaunix首页 | 论坛 | 博客
  • 博客访问: 344570
  • 博文数量: 104
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 202
  • 用 户 组: 普通用户
  • 注册时间: 2013-08-01 13:57
文章分类

全部博文(104)

文章存档

2017年(16)

2016年(37)

2015年(15)

2014年(8)

2013年(28)

我的朋友
mk2

分类: LINUX

2015-07-27 07:18:48

toupper = $(shell echo $1 |tr '[a-z]' '[A-Z]')
tolower = $(shell echo $1 |tr '[A-Z]' '[a-z]')
mktarget1 = @echo ./makebat $(call tolower,$(word 3,$(subst _, ,$@))) all $(call toupper,$(word 1,$(subst _, ,$@))) $(call toupper,$(word 2,$(subst _, ,$@)))
mktarget2 = @echo ./makebat $(call tolower,$(word 2,$(subst _, ,$@))) all $(call toupper,$(word 1,$(subst _, ,$@)))  
mktarget3 = @echo ./makebat process all $(call toupper,$(word 2,$(subst _, ,$@))) $(call toupper,$(word 1,$(subst _, ,$@))) liball
 
board_cpu = p2020 armadaxp saber
prj_cpu = 83xx armam335x saber armadaxp

all: sme smk smha $(83xx_lcard) $(arm_lcard)  $(prj_cpu)

sme: p2020
smk: armadaxp
smha: saber

$(board_cpu):%: %_COMMON %_NCPA

p2020_bspver:
    @echo ./makebat bspver all SME P2020
armadaxp_bspver:
    @echo ./makebat bspver all SMK ARMADAXP
saber_bspver:
    @echo ./makebat bspver all SMHA SABER

%_tuliplib:%_bspver
    $(call mktarget2)
%_dbscore:%_tuliplib
    $(call mktarget2)
%_COMMON:%_dbscore
    $(call mktarget3)
%_NCPA:%_dbscore
    $(call mktarget3)

prj_%:
    @echo ./makebat prj all NCPA $(call toupper,$(word 2,$(subst _, ,$@))) comprj
$(prj_cpu):%:prj_%

sai:

fege:

e1t1_coeus:

e1t1:

stm_coeus:

gpc:

rmu:
阅读(641) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~