I'm attempting to rebuild Cyanogenmod 14.1 with Realtek drivers support. I have managed to download the entire CM source code as well proprietary specific files for my phone which is a Motorola Nexus 6 (shamu) as mentioned in this guide Android CyanogenMod Kernel Building
However, I'm facing problems with the final step of compiling the ROM. I run the following command:
brunch shamu
(shamu being the codename for my device)
then i get the following output.....
including vendor/cm/vendorsetup.sh
build/core/envsetup.mk:89: *** Unable to determine HOST_ARCH from uname -sm: Linux i686!. Stop.
Device shamu not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_moto_shamu
Default revision: cm-14.1
Checking branch info
Checking if device/moto/shamu is fetched from android_device_moto_shamu
CyanogenMod/android_device_moto_shamu already fetched to device/moto/shamu
Syncing repository to retrieve project.
Fetching project CyanogenMod/android_device_moto_shamu
Fetching projects: 100% (1/1), done.
Repository synced!
Looking for dependencies in device/moto/shamu
Done
build/core/envsetup.mk:89: *** Unable to determine HOST_ARCH from uname -sm: Linux i686!. Stop.
build/core/envsetup.mk:89: *** Unable to determine HOST_ARCH from uname -sm: Linux i686!. Stop.
** Don't have a product spec for: 'cm_shamu'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
what could the following error mean?
build/core/envsetup.mk:89: *** Unable to determine HOST_ARCH from uname -sm: Linux i686!. Stop
UPDATE (solved)
I had to delete the ~/android/system/out folder and run brunch shamu
again.