Adding linux-test module to Android build

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Adding linux-test module to Android build

跳至解决方案
2,754 次查看
krzysztofsza_ac
Contributor III

Hi!

I'm trying to add memtool module to Android 4.2.2. According to suggestions received I've applied patch for this (android-imx6-kitkat/0400-ENGR00268294-Add-memtool-test-into-i.MX6-android.patch at master · rabeeh/a...) - it's ofr 4.4.4 but it probably should work on 4.2.2. When patch applied, Android.mk was added to folder /external/linux-test/test/memtool.

Unfortunatelly, after rebuilding android filesystem I still have no executable here. Is there any more place, that I have to select this module to be included?

标签 (2)
0 项奖励
回复
1 解答
1,845 次查看
krzysztofsza_ac
Contributor III

I've solved it by myself.

Applied patch was using

LOCAL_MODULE_TAGS := tests

while to properly compile user build we need to change it to

LOCAL_MODULE_TAGS := optional

and add module name memtool to PRODUCT_PACKAGES in vendor board makefille which for our is /device/variscite/var_som_mx6q/var_som_mx6q.mk. So it's like this:

PRODUCT_PACKAGES += \

     memtool

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,846 次查看
krzysztofsza_ac
Contributor III

I've solved it by myself.

Applied patch was using

LOCAL_MODULE_TAGS := tests

while to properly compile user build we need to change it to

LOCAL_MODULE_TAGS := optional

and add module name memtool to PRODUCT_PACKAGES in vendor board makefille which for our is /device/variscite/var_som_mx6q/var_som_mx6q.mk. So it's like this:

PRODUCT_PACKAGES += \

     memtool

0 项奖励
回复
1,845 次查看
SergioSolis
NXP Employee
NXP Employee

Thank you for posting the answer Krysztof,  I think you could have algo used:

LOCAL_MODULE_TAGS := eng

0 项奖励
回复
1,845 次查看
krzysztofsza_ac
Contributor III

But if I'm using user build (lunch var_som_mx6q-user) will this also work for module, that is selected to be included in eng build?

0 项奖励
回复