[Feature][ZXW-102] update sdk compile script for vehicle_dc_ref

Only Configure:Yes
Affected branch:master
Affected module: sdk
Is it affected on both ZXIC and MTK:only ZXIC
Self-test: Yes
Doc Update:No

Change-Id: Ibe21507c89a71a37a380d3af9787e4828a6b1ef8
diff --git a/esdk_patch/linux_bb.diff b/esdk_patch/linux_bb.diff
index b4bc4f9..d68aeb5 100644
--- a/esdk_patch/linux_bb.diff
+++ b/esdk_patch/linux_bb.diff
@@ -1,20 +1,19 @@
 diff --git a/linux-zxic_5.10.bb b/linux-zxic_5.10.bb
-old mode 100644
-new mode 100755
-index 29942f4..4b10e1c
+index abadd9b..a8c7f65 100755
 --- a/linux-zxic_5.10.bb
 +++ b/linux-zxic_5.10.bb
-@@ -4,15 +4,15 @@ PV      = "${LINUX_VERSION}"
+@@ -4,16 +4,16 @@ PV      = "${LINUX_VERSION}"
  LICENSE = "GPLv2"
  LIC_FILES_CHKSUM ?= "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
  LINUX_VERSION    ?= "5.10.156"
 -
-+BSPDIR = "${TOPDIR}/../upstream/"
++BSPDIR = "${TOPDIR}/../upstream"
  #pub include
 -include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
 +include ${TOPDIR}/layers/meta-zxic/conf/pub_esdk.inc
  
  DEPENDS += "kern-tools-native"
+ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES','dm-verity','zstd-native','',d)}"
  inherit kernel  siteinfo  
  
  EXTRA_OEMAKE_append = " LOADADDR=${KERNEL_LOADADDR} EXTRA_CFLAGS='${ZXIC_EXTRA_CFLAGS}' "
@@ -23,3 +22,11 @@
  # PR_CONFIG_cpe = "linux-5_10-cpe-${BOOT_CTL}-defconfig"
  # PR_CONFIG_v2x = "linux-5_10-v2x-${BOOT_CTL}-defconfig"
  PR_CONFIG_vehicle_dc = "linux-5_10-vehicle_dc-${BOOT_CTL}-defconfig"
+@@ -61,7 +61,7 @@ kernel_do_configure() {
+ 
+ fakeroot do_cpio () {
+ 	if ${@bb.utils.contains('DISTRO_FEATURES','dm-verity','true','false',d)}; then
+-		cp  -v  ${BSPDIR}/sources/meta-zxic-custom/conf/distro/dm-verity/${KERNEL_INITRAMFS_CPIO}   ${B}/
++		cp  -v  ${BSPDIR}/../esdk/sources/meta-zxic-custom/conf/distro/dm-verity/${KERNEL_INITRAMFS_CPIO}   ${B}/
+ 	fi
+ }
diff --git a/esdk_patch/mk_esdk.sh b/esdk_patch/mk_esdk.sh
index 5037d76..75a112e 100755
--- a/esdk_patch/mk_esdk.sh
+++ b/esdk_patch/mk_esdk.sh
@@ -3,7 +3,7 @@
 dest_dir_relative=$1
 intall_dir=$(pwd)
 
-chmod a+x ./vehicle_dc-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh
+chmod a+x ./vehicle_dc_ref-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh
 mkdir ${dest_dir_relative}
 cd $1
 dest_dir=$(pwd)
@@ -12,7 +12,7 @@
 	echo "Input invaild path for folders to install\n"
 	exit 1
 fi
-./vehicle_dc-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh -d ${dest_dir}/esdk
+./vehicle_dc_ref-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh -d ${dest_dir}/esdk
 tar -zxvf upstream.tar.gz -C $dest_dir
 ln -s ${dest_dir}/upstream/tools ${dest_dir}/esdk
 cp linux_bb.diff ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux/