Merge "Revert "Remove USE_XML_AUDIO_POLICY_CONF build flag""
diff --git a/hikey-common.mk b/hikey-common.mk
index 77ea15b..a2cb460 100644
--- a/hikey-common.mk
+++ b/hikey-common.mk
@@ -1,5 +1,5 @@
 ifndef TARGET_KERNEL_USE
-TARGET_KERNEL_USE=4.14
+TARGET_KERNEL_USE=4.19
 endif
 
 HIKEY_USE_DRM_HWCOMPOSER := false
diff --git a/hikey960/device-hikey960.mk b/hikey960/device-hikey960.mk
index 2695698..9bde93b 100644
--- a/hikey960/device-hikey960.mk
+++ b/hikey960/device-hikey960.mk
@@ -54,6 +54,8 @@
 			libRSDriverArm.so \
 			libmalicore.bc \
 			END_USER_LICENCE_AGREEMENT.txt
+
+ifdef $(MALI_RS_DRIVER_AVAILABLE)
 PRODUCT_COPY_FILES += \
         $(LOCAL_PATH)/../mali/bifrost/lib/libclcore.bc:vendor/lib/libclcore.bc \
         $(LOCAL_PATH)/../mali/bifrost/lib/libclcore_neon.bc:vendor/lib/libclcore_neon.bc \
@@ -61,7 +63,7 @@
         $(LOCAL_PATH)/../mali/bifrost/lib64/libbcc.so:vendor/lib64/libbcc.so \
         $(LOCAL_PATH)/../mali/bifrost/lib64/libclcore.bc:vendor/lib64/libclcore.bc \
         $(LOCAL_PATH)/../mali/bifrost/lib64/libLLVM.so:vendor/lib64/libLLVM.so
-
+endif
 
 OVERRIDE_RS_DRIVER := libRSDriverArm.so
 PRODUCT_PACKAGES += android.hardware.renderscript@1.0-impl