[Android] sungm:
Doing make bacon gives me another error:

~/cm14.1$ make -j2 bacon
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
CM_VERSION=
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-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=NMF26Q
OUT_DIR=/home/sungminjang/cm14.1/out
============================================
Running kati to generate build-aosp_arm.ninja...
./packages/apps/Settings/Android.mk was modified, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
CM_VERSION=
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-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=NMF26Q
OUT_DIR=/home/sungminjang/cm14.1/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/sungminjang/cm14.1/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
./packages/apps/Settings/Android.mk:3: *** missing separator.
build/core/ninja.mk:166: recipe for target '/home/sungminjang/cm14.1/out/build-aosp_arm.ninja' failed
make: *** [/home/sungminjang/cm14.1/out/build-aosp_arm.ninja] Error 1

However, to extract recovery.img using the mkvendor.sh, I think I need to run:

./build/tools/device/mkvendor.sh KTTech s330 (recovery.img location)

And when I run that, I get an error as such:

~/cm14.1$ ./build/tools/device/mkvendor.sh KTTech s330 /home/sungminjang/kttech/recovery.img
Arguments: KTTech s330 /home/sungminjang/kttech/recovery.img
unpackbootimg not found. Is your android build environment set up and have the host tools been built?

It seems that I need the "unpackbootimg" file in the directory, ~/cm14.1/out/host/linux-x86/bin

but I don't see the "unpackbootimg" file at all. I ran the "make -j4 bacon" ("otatools" before) because after a long google search, I found that running "make -j4 bacon" could help out with getting the "unpackbootimg."

Is there something that I'm doing wrong??

And thanks so much for your help! Have been stuck on this for a long time :(