feat: Introduce clean-android-all.sh and refine Android build documentation and scripts for AMLNN SDK dependency.

This commit is contained in:
dian.yuan 2026-02-24 20:10:11 +08:00
parent 21105e3db7
commit b285b41a98
13 changed files with 53 additions and 153 deletions

View file

@ -16,20 +16,6 @@ for deployment on Amlogic NPU platforms.
#### 1. Compile
#### AMLNN SDK Setup
Resolve the AMLNN nnsdk dependency using one of the following methods:
- **Priority 1 Environment variable (recommended)**
```bash
export AMLNN_HOME=/path/to/amlnn-toolkit
```
- **Priority 3 Sibling directory fallback** *(automatic)*
Place `amlnn-toolkit` as a sibling to `amlnn-model-playground`:
```bash
git clone git@github.com:Amlogic-NN/amlnn-toolkit.git ../amlnn-toolkit
```
**Prerequisites:**
- Android NDK (r25e recommended)
- `ANDROID_NDK_PATH` environment variable set
@ -38,7 +24,7 @@ Resolve the AMLNN nnsdk dependency using one of the following methods:
```bash
# Build for arm64-v8a
cd examples/mobilenet/cpp
./build-android.sh -a arm64-v8a
AMLNN_HOME=/path/to/amlnn-toolkit ./build-android.sh -a arm64-v8a
```
The executable will be generated at `build/android/mobilenet_v2_demo` (Note: executable name may vary, verify in build folder).