[Xiaomi Redmi 2 Questions & Answers] pirej:
I tried just for the sake of trying :)

============================================

PLATFORM_VERSION_CODENAME=O

PLATFORM_VERSION=O

TARGET_PRODUCT=wt88047_64

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=generic

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv7-a-neon

TARGET_2ND_CPU_VARIANT=cortex-a53

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.4.0-78-generic-x86_64-with-Ubuntu-16.04-xenial

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=NYC

OUT_DIR=out

============================================

[38/38] bootstrap out/soong/.minibootstrap/build.ninja.in

[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/build.ninja.in

[4/4] cp out/soong/.bootstrap/bin/bpglob

[302/303] glob vendor/*/*/Android.bp

[44/45] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja

FAILED: out/soong/build.ninja

out/soong/.bootstrap/bin/soong_build -t -b out/soong -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp

error: system/extras/libfec/Android.bp:3:1: "libfec" depends on undefined module "libfec_rs"

error: test/vts/runners/target/vts_hal_hidl_target/Android.bp:17:1: "VtsHalHidlTargetTestBase" depends on undefined module "libhidlbase"

error: frameworks/native/cmds/lshal/Android.bp:15:1: "liblshal" depends on undefined module "libhidlbase"

error: frameworks/native/cmds/lshal/Android.bp:15:1: "liblshal" depends on undefined module "libhidltransport"

error: frameworks/native/cmds/lshal/Android.bp:15:1: "liblshal" depends on undefined module "libhidl-gen-utils"

error: frameworks/native/cmds/lshal/Android.bp:15:1: "liblshal" depends on undefined module "libvintf"

error: system/extras/f2fs_utils/Android.bp:27:1: "libf2fs_ioutils_host" depends on undefined module "libselinux"

error: system/extras/f2fs_utils/Android.bp:27:1: "libf2fs_ioutils_host" depends on undefined module "libext2_uuid"

error: frameworks/base/media/jni/Android.bp:1:1: "libmedia_jni" depends on undefined module "libexif"

error: frameworks/av/drm/drmserver/Android.bp:17:1: "drmserver" depends on undefined module "libselinux"

error: system/extras/ext4_utils/Android.bp:3:1: "libext4_utils" depends on undefined module "libselinux"

error: frameworks/rs/Android.bp:9:1: "libRS" depends on undefined module "libhidlbase"

error: frameworks/rs/Android.bp:9:1: "libRS" depends on undefined module "libhidltransport"

error: frameworks/rs/Android.bp:9:1: "libRS" depends on undefined module "libhwbinder"

error: frameworks/rs/Android.bp:9:1: "libRS" depends on undefined module "android.hardware.renderscript@1.0"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libselinux"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libselinux"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libhidlbase"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libhidltransport"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libhwbinder"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libvintf"

error: bootable/recovery/otautil/Android.bp:15:1: "libotautil" depends on undefined module "libselinux"

error: system/tools/aidl/Android.bp:100:1: "aidl_unittests" depends on undefined module "libgmock_host"

error: test/vts/compilation_tools/vtsc/Android.bp:56:1: "vtsc" depends on undefined module "libhidl-gen-utils"

error: frameworks/native/cmds/atrace/Android.bp:3:1: "atrace" depends on undefined module "libhwbinder"

error: frameworks/native/cmds/atrace/Android.bp:3:1: "atrace" depends on undefined module "libhidlbase"

error: frameworks/native/cmds/atrace/Android.bp:3:1: "atrace" depends on undefined module "libhidltransport"

error: device/linaro/hikey/bluetooth/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.hikey" depends on undefined module "android.hardware.bluetooth@1.0"

error: device/linaro/hikey/bluetooth/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.hikey" depends on undefined module "libhwbinder"

error: device/linaro/hikey/bluetooth/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.hikey" depends on undefined module "libhidlbase"

error: device/linaro/hikey/bluetooth/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.hikey" depends on undefined module "libhidltransport"

error: test/vts/compilation_tools/vtsc/Android.bp:17:1: "libvtsc" depends on undefined module "libhidl-gen-utils"

error: test/vts/drivers/libprofiling/Android.bp:40:1: "vts_profiling_configure" depends on undefined module "libhidlbase"

error: test/vts/drivers/libprofiling/Android.bp:40:1: "vts_profiling_configure" depends on undefined module "libhidltransport"

error: system/core/libsysutils/Android.bp:1:1: "libsysutils" depends on undefined module "libnl"

error: test/vts/drivers/libprofiling/Android.bp:17:1: "libvts_profiling" depends on undefined module "libhidlbase"

error: frameworks/native/cmds/dumpsys/tests/Android.bp:2:1: "dumpsys_test" depends on undefined module "libgmock"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "android.hardware.bluetooth-async"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "android.hardware.bluetooth-hci"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "android.hardware.bluetooth@1.0"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "libhwbinder"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "libhidlbase"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "libhidltransport"

[45/45] soong_build docs out/soong/.bootstrap/docs/soong_build.html

FAILED: out/soong/.bootstrap/docs/soong_build.html

out/soong/.bootstrap/bin/soong_build -t -b out/soong --docs out/soong/.bootstrap/docs/soong_build.html ./Android.bp

error: system/extras/libfec/Android.bp:3:1: "libfec" depends on undefined module "libfec_rs"

error: system/tools/aidl/Android.bp:100:1: "aidl_unittests" depends on undefined module "libgmock_host"

error: test/vts/drivers/libprofiling/Android.bp:17:1: "libvts_profiling" depends on undefined module "libhidlbase"

error: test/vts/runners/target/vts_hal_hidl_target/Android.bp:17:1: "VtsHalHidlTargetTestBase" depends on undefined module "libhidlbase"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "android.hardware.bluetooth-async"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "android.hardware.bluetooth-hci"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "android.hardware.bluetooth@1.0"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "libhwbinder"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "libhidlbase"

error: system/bt/test/rootcanal/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.sim" depends on undefined module "libhidltransport"

error: frameworks/rs/Android.bp:9:1: "libRS" depends on undefined module "libhidlbase"

error: frameworks/rs/Android.bp:9:1: "libRS" depends on undefined module "libhidltransport"

error: frameworks/rs/Android.bp:9:1: "libRS" depends on undefined module "libhwbinder"

error: frameworks/rs/Android.bp:9:1: "libRS" depends on undefined module "android.hardware.renderscript@1.0"

error: test/vts/compilation_tools/vtsc/Android.bp:17:1: "libvtsc" depends on undefined module "libhidl-gen-utils"

error: bootable/recovery/otautil/Android.bp:15:1: "libotautil" depends on undefined module "libselinux"

error: system/extras/ext4_utils/Android.bp:3:1: "libext4_utils" depends on undefined module "libselinux"

error: frameworks/base/media/jni/Android.bp:1:1: "libmedia_jni" depends on undefined module "libexif"

error: frameworks/native/cmds/lshal/Android.bp:15:1: "liblshal" depends on undefined module "libhidlbase"

error: frameworks/native/cmds/lshal/Android.bp:15:1: "liblshal" depends on undefined module "libhidltransport"

error: frameworks/native/cmds/lshal/Android.bp:15:1: "liblshal" depends on undefined module "libhidl-gen-utils"

error: frameworks/native/cmds/lshal/Android.bp:15:1: "liblshal" depends on undefined module "libvintf"

error: device/linaro/hikey/bluetooth/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.hikey" depends on undefined module "android.hardware.bluetooth@1.0"

error: device/linaro/hikey/bluetooth/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.hikey" depends on undefined module "libhwbinder"

error: device/linaro/hikey/bluetooth/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.hikey" depends on undefined module "libhidlbase"

error: device/linaro/hikey/bluetooth/Android.bp:16:1: "android.hardware.bluetooth@1.0-service.hikey" depends on undefined module "libhidltransport"

error: test/vts/drivers/libprofiling/Android.bp:40:1: "vts_profiling_configure" depends on undefined module "libhidlbase"

error: test/vts/drivers/libprofiling/Android.bp:40:1: "vts_profiling_configure" depends on undefined module "libhidltransport"

error: frameworks/native/cmds/dumpsys/tests/Android.bp:2:1: "dumpsys_test" depends on undefined module "libgmock"

error: frameworks/native/cmds/atrace/Android.bp:3:1: "atrace" depends on undefined module "libhwbinder"

error: frameworks/native/cmds/atrace/Android.bp:3:1: "atrace" depends on undefined module "libhidlbase"

error: frameworks/native/cmds/atrace/Android.bp:3:1: "atrace" depends on undefined module "libhidltransport"

error: system/extras/f2fs_utils/Android.bp:27:1: "libf2fs_ioutils_host" depends on undefined module "libselinux"

error: system/extras/f2fs_utils/Android.bp:27:1: "libf2fs_ioutils_host" depends on undefined module "libext2_uuid"

error: system/core/libsysutils/Android.bp:1:1: "libsysutils" depends on undefined module "libnl"

error: test/vts/compilation_tools/vtsc/Android.bp:56:1: "vtsc" depends on undefined module "libhidl-gen-utils"

error: frameworks/av/drm/drmserver/Android.bp:17:1: "drmserver" depends on undefined module "libselinux"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libselinux"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libselinux"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libhidlbase"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libhidltransport"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libhwbinder"

error: frameworks/base/core/jni/Android.bp:1:1: "libandroid_runtime" depends on undefined module "libvintf"

ninja: build stopped: subcommand failed.

03:09:27 soong failed with: exit status 1

build/core/main.mk:21: recipe for target 'run_soong_ui' failed

make: *** [run_soong_ui] Error 1

#### make failed to build some targets (18 seconds) ####

The preview sources are not fully public or complete yet.