your problems are that d2 uses -caf hardware repos and you are trying to compile with the stock aosp qcom hardware repos. You will need to wait for the -caf repos to build. You removed the liblights from msm8960-common right ? yea you dont want to do that, the samsung msm8960 devices use a specific version of liblights,Managed to work past my problem with SElinux for now, the build has now moved on to... another set of errors!
Build currently hangs at this:
Going to bed, will get back at it in the morning. Source should be up on github by tomorrow nightCode:host C++: libutils_32 <= system/core/libutils/StopWatch.cpp host C++: libutils_32 <= system/core/libutils/String8.cpp host C++: libutils_32 <= system/core/libutils/String16.cpp host C++: libutils_32 <= system/core/libutils/SystemClock.cpp host C++: libutils_32 <= system/core/libutils/Threads.cpp host C++: libutils_32 <= system/core/libutils/Timers.cpp system/core/libutils/Timers.cpp: In function 'nsecs_t systemTime(int)': system/core/libutils/Timers.cpp:43:13: error: 'CLOCK_BOOTTIME' was not declared in this scope build/core/binary.mk:618: recipe for target 'out/host/linux-x86/obj32/STATIC_LIBRARIES/libutils_intermediates/Timers.o' failed make: *** [out/host/linux-x86/obj32/STATIC_LIBRARIES/libutils_intermediates/Timers.o] Error 1 #### make failed to build some targets (01:19 (mm:ss)) ####
Also relating to the kernel, hammerhead and flo are shipping with a 3.4 kernel as well as grouper is shipping with a 3.1 kernel for lollipop so there is no "need" to update the kernel