Adding linux-test module to Android build

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Adding linux-test module to Android build

ソリューションへジャンプ
2,091件の閲覧回数
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,182件の閲覧回数
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,183件の閲覧回数
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,182件の閲覧回数
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,182件の閲覧回数
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 件の賞賛
返信