[Feature][T106_eSDK]T106-V2.01.01.02P56U06.AP.15.11_CAP.15.11(SDK4.6)diff_17.02(SDK4.7)
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I9dc02273b59a074828ab3eeaa84306415b153138
diff --git a/esdk/layers/meta-zxic/recipes-kernel/linux/linux_bb.diff b/esdk/layers/meta-zxic/recipes-kernel/linux/linux_bb.diff
new file mode 100755
index 0000000..34dda2f
--- /dev/null
+++ b/esdk/layers/meta-zxic/recipes-kernel/linux/linux_bb.diff
@@ -0,0 +1,33 @@
+diff --git a/linux-zxic_5.10.bb b/linux-zxic_5.10.bb
+index abadd9b..a8c7f65 100755
+--- a/linux-zxic_5.10.bb
++++ b/linux-zxic_5.10.bb
+@@ -4,16 +4,16 @@ PV = "${LINUX_VERSION}"
+ LICENSE = "GPLv2"
+ LIC_FILES_CHKSUM ?= "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
+ LINUX_VERSION ?= "5.10.156"
+-
++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}' "
+-FILESEXTRAPATHS_prepend :="${SRC-PATH}:"
++FILESEXTRAPATHS_prepend :="${TOPDIR}/../upstream:"
+ # 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
+ }
+