Adding linux-test module to Android build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding linux-test module to Android build

Jump to solution
1,682 Views
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?

Labels (2)
0 Kudos
1 Solution
773 Views
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

View solution in original post

0 Kudos
3 Replies
774 Views
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 Kudos
773 Views
SergioSolis
NXP Employee
NXP Employee

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

LOCAL_MODULE_TAGS := eng

0 Kudos
773 Views
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 Kudos