diff options
author | Kevin May <kevin.may@arm.com> | 2022-07-20 12:17:36 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2022-07-27 15:57:31 +0100 |
commit | 07389192266eedac50a64c7d66ef62c1532e06f2 (patch) | |
tree | 321e02509ab204e2da08f5e4f816ecf4afde5743 /shim | |
parent | 89fb62475136aabc3420484cc4b5e0062c94751f (diff) | |
download | armnn-07389192266eedac50a64c7d66ef62c1532e06f2.tar.gz |
IVGCVSW-7113 Fix building nn driver failed in our Android OOBT
* Android.bp file gets picked up by older Android versions so
rename it to "switch it off" and update guide on how to enable it
Signed-off-by: Kevin May <kevin.may@arm.com>
Change-Id: I1fc59a0d0dc2e6ce9cdc19f94b0b34d08d414351
Diffstat (limited to 'shim')
-rw-r--r-- | shim/Android.bp.off (renamed from shim/Android.bp) | 2 | ||||
-rw-r--r-- | shim/BuildGuideShimSupportLibrary.md | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/shim/Android.bp b/shim/Android.bp.off index 7e0d62aeb1..f3810da463 100644 --- a/shim/Android.bp +++ b/shim/Android.bp.off @@ -90,7 +90,7 @@ cc_defaults { cc_binary { name: "android.hardware.neuralnetworks-shim-service-armnn", srcs: ["./shimservice.cpp"], - enabled: false, + enabled: true, defaults: ["NeuralNetworksShimArmnnDriverAidl_server_defaults"], init_rc: ["./config/android.hardware.neuralnetworks-shim-service-armnn.rc"], vintf_fragments: ["./config/android.hardware.neuralnetworks-shim-service-armnn.xml"], diff --git a/shim/BuildGuideShimSupportLibrary.md b/shim/BuildGuideShimSupportLibrary.md index dc69f8f77c..c0b0f8570b 100644 --- a/shim/BuildGuideShimSupportLibrary.md +++ b/shim/BuildGuideShimSupportLibrary.md @@ -141,10 +141,13 @@ make ## Build Arm NN Shim -By default the Arm NN shim Android.bp is not enabled. -Enable it by editing armnn/shim/Android.bp and setting `enabled: true` +By default the Arm NN shim Android.bp.off is not enabled. +It is enabled below by renaming it to Android.bp ```bash +cd ${WORKING_DIR}/armnn/shim +mv Android.bp.off Android.bp + cd $AOSP_ROOT source build/envsetup.sh lunch <device>-eng |