Question: I am trying to build a kernel for Android following the instructions [here](https://source.android.com/source/building-kernels.html).

Checking out the msm/angler:

```
git checkout -b android-msm-angler-3.10-marshmallow-mr1 origin/android-msm-angler-3.10-marshmallow-mr1

```

After `make angler_defconfig`, `make` results in the following error.

```
Makefile:796: *** multiple target patterns.  Stop.

```

Would somebody help me to resolve this issue?

Answer: 
You can change prebuilts gcc  

from:

```
arm/arm-eabi-X.X 

```

to:

```
aarch64/aarch64-linux-android-X.X

```
1. go to aosp files.
In my scenario:
cd /aosp\_files/out/target/product/angler

type in terminal:

```
dd if=kernel bs=1 skip=$(LC_ALL=C grep -a -b -o $'\x1f\x8b\x08\x00\x00\x00\x00\x00' kernel | cut -d ':' -f 1) | zgrep -a 'Linux version'

```

-> then You will see output with commit sha-1

```
Linux version 3.10.73-gde1f200

```

2. copy your sha-1 after 'g' -> de1f200
3. go to your kernel\_files

git checkout your\_sha1
4. then

export PATH=$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH

export ARCH=arm64

export CROSS\_COMPILE=aarch64-linux-android-
5. make angler\_defconfig

make -j4
6. If You will get error 

make distclean
7. repat from 4.
8. Should work : )