• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 210提供的Android4.0源码中怎么编译单模块 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 94249
精华: 0
发帖: 28
金钱: 140 两
威望: 28 点
综合积分: 56 分
注册时间: 2013-07-12
最后登录: 2015-12-02
楼主  发表于: 2013-10-10 13:52

 210提供的Android4.0源码中怎么编译单模块

整个源码已经编译完成成功了,但是要怎么编译单模块,难道修改部分源码,要从头开始重新编译
使用mmm命令没有效果
级别: 新手上路
UID: 95789
精华: 0
发帖: 25
金钱: 130 两
威望: 26 点
综合积分: 50 分
注册时间: 2013-08-24
最后登录: 2014-01-02
1楼  发表于: 2013-10-10 16:04

 回 楼主(long426654) 的帖子

mmm是不行的,用make modules
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2013-10-10 22:32

 回 楼主(long426654) 的帖子

"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 94249
精华: 0
发帖: 28
金钱: 140 两
威望: 28 点
综合积分: 56 分
注册时间: 2013-07-12
最后登录: 2015-12-02
3楼  发表于: 2013-10-11 10:42

 回 2楼(kasim) 的帖子

不行,提示没有sdk
级别: 新手上路
UID: 94249
精华: 0
发帖: 28
金钱: 140 两
威望: 28 点
综合积分: 56 分
注册时间: 2013-07-12
最后登录: 2015-12-02
4楼  发表于: 2013-10-11 11:15

 回 2楼(kasim) 的帖子

$source ./setenv
$cd frameworks/base/
$mm
这样写
提示的是
make:进入目录‘/opt/FriendlyARM/mini210/android/android-4.0.3_r1’
make: 没有什么可以做的为'all_modules'。
make:离开目录‘/opt/FriendlyARM/mini210/android/android-4.0.3_r1’
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2013-10-11 11:37

 回 4楼(long426654) 的帖子

如果你在frameworks/base下执行mm,编译的是该目录下Android.mk定义的所有模块中自上一次完整编译后修改的那些模块。你修改过这些模块的源代码吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 94249
精华: 0
发帖: 28
金钱: 140 两
威望: 28 点
综合积分: 56 分
注册时间: 2013-07-12
最后登录: 2015-12-02
6楼  发表于: 2013-10-11 11:46

 回 5楼(kasim) 的帖子

没有修改源码,我只是把开机的图片换掉了
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2013-10-11 12:11

 回 6楼(long426654) 的帖子

你能告诉我你具体修改的是哪个文件吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 94249
精华: 0
发帖: 28
金钱: 140 两
威望: 28 点
综合积分: 56 分
注册时间: 2013-07-12
最后登录: 2015-12-02
8楼  发表于: 2013-10-11 12:15

 回 7楼(kasim) 的帖子

./frameworks/base/core/res/assets/images  目录下的两张图
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2013-10-11 12:21

 回 8楼(long426654) 的帖子

这个目录下的东西由frameworks/base/core/res下的Android.mk定义,所以你需要在frameworks/base/core/res下执行mm. 生成的结果在out目录下的system/framework/framework-res.apk
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go