aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2022-07-20 12:17:36 +0100
committerKevin May <kevin.may@arm.com>2022-07-20 13:43:13 +0000
commitb6f506b96fb69cc7c023576ac0164b85962e269f (patch)
tree321e02509ab204e2da08f5e4f816ecf4afde5743
parente9e963001a03af74a104218f123fafc27c573eec (diff)
downloadarmnn-b6f506b96fb69cc7c023576ac0164b85962e269f.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
-rw-r--r--shim/Android.bp.off (renamed from shim/Android.bp)2
-rw-r--r--shim/BuildGuideShimSupportLibrary.md7
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