I am trying to build image from source code, but have some problems.
I checked out AOSP repository, and copied SLA folders ‘device’ and ‘vendor’ to AOSP source tree. I also copied folder ‘kernel-3.18’.
lunch full_amt6797_64_open-eng and started build with
make -j8 PLATFORM_FASTBOOT_EMPTY_STORAGE=yes -k (I also tried simply
make -j8), and it failed with a message:
device/mediatek/common/sepolicy/em_svr.te:91:WARNING 'unrecognized character' at token ''' on line 15399:
# Purpose : Battery Log can change temperature
device/mediatek/common/sepolicy/em_svr.te:91:WARNING 'unrecognized character' at token ''' on line 15405:
device/mediatek/common/sepolicy/teei_daemon.te:30:ERROR 'unknown type teei_client_device' at token ';' on line 24905:
#define for mlsconstrain
typeattribute teei_client_device mlstrustedobject;
checkpolicy: error(s) encountered while parsing configuration
I understand that everybody else has no problems building from source, where is my mistake?