[Feature] automake sdk files

Change-Id: If63c4029a4e95cd69534c6ecb9a3020557856b12
diff --git a/meta-sdk/meta-sdk.tar.gz b/meta-sdk/meta-sdk.tar.gz
new file mode 100644
index 0000000..345d6a5
--- /dev/null
+++ b/meta-sdk/meta-sdk.tar.gz
Binary files differ
diff --git a/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-main.conf b/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-main.conf
index 125aa83..0e021e9 100644
--- a/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-main.conf
+++ b/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-main.conf
@@ -24,4 +24,4 @@
 EXTRA_IMAGEDEPENDS += "${@'modem' if ${MODEM_INT_EXIST} == True or ${MODEM_CUSTOM_EXIST} == True else ''}"
 
 MEMORY_SIZE = "1024"
-NAND_CHIP_NAME = "MT29F8G08ADBFA"
\ No newline at end of file
+NAND_CHIP_NAME = "MT29F8G08ADBFA"
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/bl33/bl33_1.0.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/bl33/bl33_1.0.bbappend
index 895d979..bb3d55a 100644
--- a/meta/meta-mediatek-mt2735/recipes-bsp/bl33/bl33_1.0.bbappend
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/bl33/bl33_1.0.bbappend
@@ -57,3 +57,11 @@
 		  bberror "Little kernel image size overflow, please have a check."
 	fi
 }
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/bl33/
+	install ${BL33_OUT}/build-${BL33_PROJECT}/lk.bin ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/bl33/lk.bin
+
+
+}
+addtask gensdk after do_compile before do_install
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/dpm/dpm.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/dpm/dpm.bbappend
new file mode 100644
index 0000000..5acc489
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/dpm/dpm.bbappend
@@ -0,0 +1,9 @@
+

+do_gensdk() {

+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/dpmfw/${TARGET_PLATFORM} 

+	install ${DPM_OUT}/${DPM_BINARY} ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/dpmfw/${TARGET_PLATFORM}/${DPM_BINARY}

+        install ${DPM_PREBUILT}/LICENSE ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/dpmfw/${TARGET_PLATFORM}/LICENSE

+

+}

+

+addtask gensdk after do_deploy before do_package

diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/lk/lk_2.0.0.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/lk/lk_2.0.0.bbappend
index 07f00f9..3963613 100644
--- a/meta/meta-mediatek-mt2735/recipes-bsp/lk/lk_2.0.0.bbappend
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/lk/lk_2.0.0.bbappend
@@ -62,3 +62,12 @@
 do_genheader () {
 	${WORKDIR}/recipe-sysroot-native${bindir}/python-native/python2 ${WORKDIR}/recipe-sysroot-native${datadir}/packer/mipack.py -d ${LK_OUT}/build-${LK_PROJECT} -o ${WORKDIR}/${LK_IMAGE} ${WORKDIR}/ap_bl2.json
 }
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/bl2/
+	install ${LK_OUT}/build-${LK_PROJECT}/lk.bin ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/bl2/lk.bin
+
+
+}
+
+addtask gensdk after do_compile before do_genheader
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/mcupm/mcupm.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/mcupm/mcupm.bbappend
new file mode 100644
index 0000000..2879d5e
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/mcupm/mcupm.bbappend
@@ -0,0 +1,10 @@
+
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/mcupm/${TARGET_PLATFORM} 
+	install ${MCUPM_OUT}/${MCUPM_BINARY} ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/mcupm/${TARGET_PLATFORM}/${MCUPM_BINARY}
+       
+
+}
+
+addtask gensdk after do_deploy before do_package
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/medmcu/medmcu.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/medmcu/medmcu.bbappend
new file mode 100644
index 0000000..7a289d2
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/medmcu/medmcu.bbappend
@@ -0,0 +1,9 @@
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/medmcu/${TARGET_PLATFORM} 
+	install ${MEDMCU_PREBUILT}/${MEDMCU_BINARY} ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/medmcu/${TARGET_PLATFORM}/${MEDMCU_BINARY}
+        install ${MEDMCU_PREBUILT}/LICENSE ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/medmcu/${TARGET_PLATFORM}/LICENSE 
+
+}
+
+addtask gensdk after do_deploy before do_package
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/scatter/scatter.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/scatter/scatter.bbappend
index 330d585..8ba7f9e 100644
--- a/meta/meta-mediatek-mt2735/recipes-bsp/scatter/scatter.bbappend
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/scatter/scatter.bbappend
@@ -1,3 +1,12 @@
 FILESEXTRAPATHS_append := ":${THISDIR}/files"
 
 SRC_URI_append = " file://${SCATTER_PROJECT}"
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/bsp/scatter
+	cp -Rf ${MTK_SRC}/* ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/bsp/scatter/
+
+
+
+}
+addtask gensdk after do_install before do_deploy
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/spmfw/spmfw.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/spmfw/spmfw.bbappend
index e3a4bc0..32cf6c2 100644
--- a/meta/meta-mediatek-mt2735/recipes-bsp/spmfw/spmfw.bbappend
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/spmfw/spmfw.bbappend
@@ -8,3 +8,16 @@
 	install ${SPMFW_OUT}/${SPMFW_BINARY} ${DEPLOYDIR}/${SPMFW_BINARY}
 	install ${SPMFW_PREBUILT}/${SPMFW_INFO} ${DEPLOYDIR}/${SPMFW_VERSION}
 }
+
+
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/spmfw/${TARGET_PLATFORM} 
+	install ${SPMFW_PREBUILT}/${SPMFW_PREBUILT_BINARY} ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/spmfw/${TARGET_PLATFORM}/${SPMFW_PREBUILT_BINARY}
+	install ${SPMFW_PREBUILT}/LICENSE ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/spmfw/${TARGET_PLATFORM}/LICENSE
+        install ${SPMFW_PREBUILT}/verName ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/spmfw/${TARGET_PLATFORM}/verName
+
+
+}
+
+addtask gensdk after do_deploy before do_package
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/sspm/sspm.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/sspm/sspm.bbappend
new file mode 100644
index 0000000..d09dcf2
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/sspm/sspm.bbappend
@@ -0,0 +1,10 @@
+
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/sspm/${TARGET_PLATFORM} 
+	install ${SSPM_PREBUILT}/${SSPM_BINARY} ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/sspm/${TARGET_PLATFORM}/${SSPM_BINARY}
+
+
+}
+
+addtask gensdk after do_deploy before do_package
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/atf_1.6.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/atf_1.6.bbappend
index 8f41d1a..aa60882 100644
--- a/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/atf_1.6.bbappend
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/atf_1.6.bbappend
@@ -13,3 +13,17 @@
 		'TBASE_VER=${@oe.utils.conditional('TEE_SUPPORT', 'tbase', '${TBASE_VER}', '', d)}' \
 		"
 
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/trustzone/atf
+        origin=$(pwd)
+        cd ${WORKDIR}
+	tar -czvf ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/trustzone/atf/atf-out.tar.gz ./out
+        cd ${origin}
+
+
+}
+
+addtask gensdk after do_deploy before do_package
+
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/optee-os_3.2.0.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/optee-os_3.2.0.bbappend
index fb9bfb7..d92d062 100644
--- a/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/optee-os_3.2.0.bbappend
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/optee-os_3.2.0.bbappend
@@ -11,3 +11,15 @@
         ln -s ${WORKDIR}/out/${OPTEE_ARCH}-plat-${OPTEEOUTPUTMACHINE}/export-ta_arm64 ${WORKDIR}/out/${OPTEE_ARCH}-plat-${OPTEEOUTPUTMACHINE}/export-ta_${OPTEE_ARCH}
     fi
 }
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/trustzone/optee-os
+        origin=$(pwd)
+        cd ${WORKDIR}
+	tar -czvf ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/trustzone/optee-os/optee-out.tar.gz ./out
+        cd ${origin}
+
+
+}
+
+addtask gensdk after do_deploy before do_package
diff --git a/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/teeloader.bbappend b/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/teeloader.bbappend
new file mode 100644
index 0000000..d0c2fa0
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-bsp/trustzone/teeloader.bbappend
@@ -0,0 +1,12 @@
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/trustzone/teeloader
+        origin=$(pwd)
+        cd ${WORKDIR}
+	tar -czvf ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/trustzone/teeloader/teeloader-out.tar.gz ./out
+        cd ${origin}
+
+
+}
+
+addtask gensdk after do_deploy before do_package
diff --git a/meta/meta-mediatek-mt2735/recipes-core/images/mtk-image-2735.bbappend b/meta/meta-mediatek-mt2735/recipes-core/images/mtk-image-2735.bbappend
new file mode 100644
index 0000000..bee8d05
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-core/images/mtk-image-2735.bbappend
@@ -0,0 +1,19 @@
+
+
+
+
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/rootfs
+        origin=$(pwd)
+        cd ${WORKDIR}
+	tar -czvf ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/rootfs/lynq_rootfs_1.1.tar.gz ./rootfs
+        md5sum ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/rootfs/lynq_rootfs_1.1.tar.gz > ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/rootfs/md5sum.txt
+        sha256sum ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/rootfs/lynq_rootfs_1.1.tar.gz > ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/firmware/rootfs/sh256sum.txt
+        cd ${origin}
+
+
+}
+
+addtask gensdk after do_rootfs before do_image
+
diff --git a/meta/meta-mediatek-mt2735/recipes-devtools/datool/fbtool.bbappend b/meta/meta-mediatek-mt2735/recipes-devtools/datool/fbtool.bbappend
new file mode 100644
index 0000000..3ecd3af
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-devtools/datool/fbtool.bbappend
@@ -0,0 +1,20 @@
+FILESEXTRAPATHS_append := ":${THISDIR}/files"
+
+SRC_URI_append = " file://dl_addr.ini"
+
+SSTATE_DUPWHITELIST += "${DEPLOY_DIR_IMAGE}"
+do_deploy_append () {
+        install -d ${DEPLOYDIR}
+        install -m 0644 ${WORKDIR}/dl_addr.ini -t ${DEPLOYDIR}
+}
+
+
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/devtools/datool
+	cp -Rf ${EXTERNALSRC}/* ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/devtools/datool/
+
+
+
+}
+addtask gensdk after do_install before do_deploy
diff --git a/meta/meta-mediatek-mt2735/recipes-devtools/datool/files/dl_addr.ini b/meta/meta-mediatek-mt2735/recipes-devtools/datool/files/dl_addr.ini
new file mode 100644
index 0000000..6d7d165
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-devtools/datool/files/dl_addr.ini
@@ -0,0 +1,19 @@
+[DA1]

+da1_path=lk.bin

+da1_addr=0x201000

+da1_jump_64=0x1

+

+[DA2]

+da2_path=

+da2_addr=0x0

+

+[FALL_THRU_TO_FB]

+fall_thru_to_fb=0

+

+[Cert]

+cert_path=

+[MEID]

+meid_ctrl=0

+

+[Auth]

+auth_path=

diff --git a/meta/meta-mediatek-mt2735/recipes-devtools/packer/packer_1.0.0.bb b/meta/meta-mediatek-mt2735/recipes-devtools/packer/packer_1.0.0.bb
new file mode 100644
index 0000000..10028ee
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-devtools/packer/packer_1.0.0.bb
@@ -0,0 +1,20 @@
+DESCRIPTION = "A signing tool to pack image"
+LICENSE = "MediaTekProprietary"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=41dcd72a73784acc0e6d9713bce9b087"
+DEPENDS = "python-native python-pycrypto-native \
+          python-setuptools-native python-six-native \
+          python-ecdsa-native python-cryptoplus-native python-jsoncomment-native"
+BBCLASSEXTEND = "native"
+
+inherit workonsrc
+WORKONSRC = "${TOPDIR}/../src/devtools/packer"
+
+do_install() {
+	install -d ${D}${datadir}/packer
+	install -m 644 ${S}/${TARGET_PLATFORM}/mipack.py ${D}${datadir}/packer
+	install -m 644 ${S}/${TARGET_PLATFORM}/cryptoSB.py ${D}${datadir}/packer
+	if [ "${TARGET_PLATFORM}" = "mt2735" ]; then
+		install -m 644 ${S}/${TARGET_PLATFORM}/test_pkcs1_15_mytest.py ${D}${datadir}/packer
+		install -m 644 ${S}/${TARGET_PLATFORM}/test_pkcs1_pss_mytest.py ${D}${datadir}/packer
+	fi
+}
diff --git a/meta/meta-mediatek-mt2735/recipes-devtools/packer/packer_1.0.0.bbappend b/meta/meta-mediatek-mt2735/recipes-devtools/packer/packer_1.0.0.bbappend
new file mode 100644
index 0000000..93b934f
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-devtools/packer/packer_1.0.0.bbappend
@@ -0,0 +1,11 @@
+
+
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/devtools/packer
+	cp -Rf ${WORKONSRC}/* ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/devtools/packer/
+
+
+
+}
+addtask gensdk after do_compile before do_install
diff --git a/meta/meta-mediatek-mt2735/recipes-hsm/hsm/hsm_1.0.0.bbappend b/meta/meta-mediatek-mt2735/recipes-hsm/hsm/hsm_1.0.0.bbappend
index 093a7fc..4cff310 100644
--- a/meta/meta-mediatek-mt2735/recipes-hsm/hsm/hsm_1.0.0.bbappend
+++ b/meta/meta-mediatek-mt2735/recipes-hsm/hsm/hsm_1.0.0.bbappend
@@ -9,3 +9,20 @@
 }
 
 addtask deploy before do_build after do_compile
+do_genheader () {
+	${WORKDIR}/recipe-sysroot-native${bindir}/python-native/python2 ${WORKDIR}/recipe-sysroot-native${datadir}/packer/mipack.py -d ${B}out/ -o ${B}out/bootloader.bin ${WORKDIR}/bootloader.json
+        ${WORKDIR}/recipe-sysroot-native${bindir}/python-native/python2 ${WORKDIR}/recipe-sysroot-native${datadir}/packer/mipack.py -d ${B}out/ -o ${B}out/hsm.bin ${WORKDIR}/hsm.json
+}
+
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/hsm/
+        origin=$(pwd)
+        cd ${B}
+	tar -czvf ${DEPLOY_DIR_IMAGE}/../sdk/prebuilt/firmware/hsm/hsm-out.tar.gz ./out
+        cd ${origin}
+
+
+}
+
+addtask gensdk after do_compile before do_genheader
+addtask genheader before do_deploy after do_compile
diff --git a/meta/meta-mediatek-mt2735/recipes-kernel/linux/linux-mtk-extension_4.19.bbappend b/meta/meta-mediatek-mt2735/recipes-kernel/linux/linux-mtk-extension_4.19.bbappend
index e993937..ebc4507 100644
--- a/meta/meta-mediatek-mt2735/recipes-kernel/linux/linux-mtk-extension_4.19.bbappend
+++ b/meta/meta-mediatek-mt2735/recipes-kernel/linux/linux-mtk-extension_4.19.bbappend
@@ -81,3 +81,15 @@
 	fi
 
 }
+
+MODULES_SRC = "${TOPDIR}/../src/kernel/modules"
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/kernel/linux/v4.19
+        install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/kernel/modules
+	cp -Rf ${KERNEL_SRC}/* ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/kernel/linux/v4.19/
+        cp -Rf ${MODULES_SRC}/* ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/kernel/modules/
+
+
+}
+addtask gensdk after do_install before do_deploy
diff --git a/meta/meta-mediatek-mt2735/recipes-modem/modem/modem_1.0.0.bbappend b/meta/meta-mediatek-mt2735/recipes-modem/modem/modem_1.0.0.bbappend
new file mode 100644
index 0000000..16b9fcf
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-modem/modem/modem_1.0.0.bbappend
@@ -0,0 +1,10 @@
+
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/modem/${TARGET_PLATFORM}/${MODEM_PROJECT}
+        echo ${MODEM_DIR}
+        cp -Rf ${MODEM_DIR}/* ${DEPLOY_DIR_IMAGE_ROOT}/sdk/prebuilt/modem/${TARGET_PLATFORM}/${MODEM_PROJECT}/ 
+
+}
+
+addtask gensdk after do_configure before do_deploy 
diff --git a/meta/meta-mediatek-mt2735/recipes-support/ab-tools/abtools.bbappend b/meta/meta-mediatek-mt2735/recipes-support/ab-tools/abtools.bbappend
new file mode 100644
index 0000000..f8fbd73
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-support/ab-tools/abtools.bbappend
@@ -0,0 +1,25 @@
+DESCRIPTION = "A/B update package tools"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=562c740877935f40b262db8af30bca36"
+BBCLASSEXTEND = "native nativesdk"
+
+WORKONSRC = "${TOPDIR}/../src/support/ab_tools"
+OECMAKE_SOURCEPATH = "${S}"
+
+inherit workonsrc
+
+FILES_${PN}-dev = ""
+FILES_${PN} += "${libdir}"
+FILES_${PN} += "${bindir}"
+FILES_${PN} += "${datadir}"
+
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/support/ab_tools
+	cp -Rf ${WORKONSRC}/* ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/support/ab_tools/
+
+
+
+}
+addtask gensdk after do_compile before do_install
+
diff --git a/meta/meta-mediatek-mt2735/recipes-support/bootctrl/bootctrl.bbappend b/meta/meta-mediatek-mt2735/recipes-support/bootctrl/bootctrl.bbappend
new file mode 100644
index 0000000..81e829b
--- /dev/null
+++ b/meta/meta-mediatek-mt2735/recipes-support/bootctrl/bootctrl.bbappend
@@ -0,0 +1,11 @@
+
+
+DEPLOY_DIR_IMAGE_ROOT = "${DEPLOY_DIR}/images"
+do_gensdk() {
+	install -d ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/support/bootctrl
+	cp -Rf ${WORKONSRC}/* ${DEPLOY_DIR_IMAGE_ROOT}/sdk/src/support/bootctrl/
+
+
+
+}
+addtask gensdk after do_compile before do_install
diff --git a/mk_eng.sh b/mk_eng.sh
old mode 100644
new mode 100755
diff --git a/src/bsp/hsm/src/build/Makefile b/src/bsp/hsm/src/build/Makefile
index a105c9d..297bfdb 100644
--- a/src/bsp/hsm/src/build/Makefile
+++ b/src/bsp/hsm/src/build/Makefile
@@ -14,7 +14,6 @@
 	make -f $(BUILD_SYSTEM)/auto_gen.mk TARGET_NAME=$@
 	make -f $(BUILD_SYSTEM)/build.mk TARGET_NAME=$@
 	@ echo -ne "\tGenerate $@ image\n"
-	@ $(PYTHON_PATH) $(PACK_TOOL) -d $(OUTDIR) -o $(OUTDIR)/$@.bin $(TOP_ROOT)../$@.json
 
 bl: bootloader | $(OUTDIR)
 	@ $(BUILD_SYSTEM)/scripts/add_padding.sh $(OUTDIR)/$^.bin 98304
diff --git a/src/bsp/lk/oe-logs b/src/bsp/lk/oe-logs
index c8eff27..69e4f1c 120000
--- a/src/bsp/lk/oe-logs
+++ b/src/bsp/lk/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/auto2735evb_ivt_main-pokymllib32-linux-gnueabi/lib32-lk/2.0.0-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/auto2735evb_ivt_main-pokymllib32-linux-gnueabi/lib32-lk/2.0.0-r0/temp
\ No newline at end of file
diff --git a/src/bsp/lk/oe-workdir b/src/bsp/lk/oe-workdir
index 5fbc1f4..5ad6bf2 120000
--- a/src/bsp/lk/oe-workdir
+++ b/src/bsp/lk/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/auto2735evb_ivt_main-pokymllib32-linux-gnueabi/lib32-lk/2.0.0-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/auto2735evb_ivt_main-pokymllib32-linux-gnueabi/lib32-lk/2.0.0-r0
\ No newline at end of file
diff --git a/src/bsp/scatter/oe-logs b/src/bsp/scatter/oe-logs
index 17ac0b6..c0b413d 120000
--- a/src/bsp/scatter/oe-logs
+++ b/src/bsp/scatter/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/scatter/1.0-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/scatter/1.0-r0/temp
\ No newline at end of file
diff --git a/src/bsp/scatter/oe-workdir b/src/bsp/scatter/oe-workdir
index fad869c..837229d 120000
--- a/src/bsp/scatter/oe-workdir
+++ b/src/bsp/scatter/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/scatter/1.0-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/scatter/1.0-r0
\ No newline at end of file
diff --git a/src/bsp/trustzone/atf/oe-logs b/src/bsp/trustzone/atf/oe-logs
index 47b6a32..1f1f86a 120000
--- a/src/bsp/trustzone/atf/oe-logs
+++ b/src/bsp/trustzone/atf/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/auto2735evb_ivt_main-poky-linux/atf/1.6-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/auto2735evb_ivt_main-poky-linux/atf/1.6-r0/temp
\ No newline at end of file
diff --git a/src/bsp/trustzone/atf/oe-workdir b/src/bsp/trustzone/atf/oe-workdir
index ffb3306..817c936 120000
--- a/src/bsp/trustzone/atf/oe-workdir
+++ b/src/bsp/trustzone/atf/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/auto2735evb_ivt_main-poky-linux/atf/1.6-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/auto2735evb_ivt_main-poky-linux/atf/1.6-r0
\ No newline at end of file
diff --git a/src/bsp/trustzone/optee/optee_client/mt2xxx/3.2.0/oe-logs b/src/bsp/trustzone/optee/optee_client/mt2xxx/3.2.0/oe-logs
index 8480b61..776e693 120000
--- a/src/bsp/trustzone/optee/optee_client/mt2xxx/3.2.0/oe-logs
+++ b/src/bsp/trustzone/optee/optee_client/mt2xxx/3.2.0/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/optee-client/3.2.0-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/optee-client/3.2.0-r0/temp
\ No newline at end of file
diff --git a/src/bsp/trustzone/optee/optee_client/mt2xxx/3.2.0/oe-workdir b/src/bsp/trustzone/optee/optee_client/mt2xxx/3.2.0/oe-workdir
index 6124c3a..e5e7463 120000
--- a/src/bsp/trustzone/optee/optee_client/mt2xxx/3.2.0/oe-workdir
+++ b/src/bsp/trustzone/optee/optee_client/mt2xxx/3.2.0/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/optee-client/3.2.0-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/optee-client/3.2.0-r0
\ No newline at end of file
diff --git a/src/bsp/trustzone/optee/optee_os/mt2xxx/3.2.0/oe-logs b/src/bsp/trustzone/optee/optee_os/mt2xxx/3.2.0/oe-logs
index 1e32348..621af7c 120000
--- a/src/bsp/trustzone/optee/optee_os/mt2xxx/3.2.0/oe-logs
+++ b/src/bsp/trustzone/optee/optee_os/mt2xxx/3.2.0/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/optee-os/3.2.0-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/optee-os/3.2.0-r0/temp
\ No newline at end of file
diff --git a/src/bsp/trustzone/optee/optee_os/mt2xxx/3.2.0/oe-workdir b/src/bsp/trustzone/optee/optee_os/mt2xxx/3.2.0/oe-workdir
index 46b0544..06037c1 120000
--- a/src/bsp/trustzone/optee/optee_os/mt2xxx/3.2.0/oe-workdir
+++ b/src/bsp/trustzone/optee/optee_os/mt2xxx/3.2.0/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/optee-os/3.2.0-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/optee-os/3.2.0-r0
\ No newline at end of file
diff --git a/src/bsp/trustzone/optee/optee_test/mt2xxx/oe-logs b/src/bsp/trustzone/optee/optee_test/mt2xxx/oe-logs
index d00c8b3..7b47a58 120000
--- a/src/bsp/trustzone/optee/optee_test/mt2xxx/oe-logs
+++ b/src/bsp/trustzone/optee/optee_test/mt2xxx/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/auto2735evb_ivt_main-poky-linux/optee-test/3.2.0-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/auto2735evb_ivt_main-poky-linux/optee-test/3.2.0-r0/temp
\ No newline at end of file
diff --git a/src/bsp/trustzone/optee/optee_test/mt2xxx/oe-workdir b/src/bsp/trustzone/optee/optee_test/mt2xxx/oe-workdir
index 7305573..7560e7a 120000
--- a/src/bsp/trustzone/optee/optee_test/mt2xxx/oe-workdir
+++ b/src/bsp/trustzone/optee/optee_test/mt2xxx/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/auto2735evb_ivt_main-poky-linux/optee-test/3.2.0-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/auto2735evb_ivt_main-poky-linux/optee-test/3.2.0-r0
\ No newline at end of file
diff --git a/src/bsp/trustzone/optee/source/mt2xxx/optee_examples/oe-logs b/src/bsp/trustzone/optee/source/mt2xxx/optee_examples/oe-logs
index ad75fab..9b5b0f0 120000
--- a/src/bsp/trustzone/optee/source/mt2xxx/optee_examples/oe-logs
+++ b/src/bsp/trustzone/optee/source/mt2xxx/optee_examples/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/optee-example/3.2.0-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/optee-example/3.2.0-r0/temp
\ No newline at end of file
diff --git a/src/bsp/trustzone/optee/source/mt2xxx/optee_examples/oe-workdir b/src/bsp/trustzone/optee/source/mt2xxx/optee_examples/oe-workdir
index 7616272..94091a1 120000
--- a/src/bsp/trustzone/optee/source/mt2xxx/optee_examples/oe-workdir
+++ b/src/bsp/trustzone/optee/source/mt2xxx/optee_examples/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/optee-example/3.2.0-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/optee-example/3.2.0-r0
\ No newline at end of file
diff --git a/src/devtools/datool/oe-logs b/src/devtools/datool/oe-logs
index 8e650f6..7505c89 120000
--- a/src/devtools/datool/oe-logs
+++ b/src/devtools/datool/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/fbtool/1.0-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/fbtool/1.0-r0/temp
\ No newline at end of file
diff --git a/src/devtools/datool/oe-workdir b/src/devtools/datool/oe-workdir
index 5e5a9d3..acc8d41 120000
--- a/src/devtools/datool/oe-workdir
+++ b/src/devtools/datool/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/aarch64-poky-linux/fbtool/1.0-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/aarch64-poky-linux/fbtool/1.0-r0
\ No newline at end of file
diff --git a/src/kernel/linux/v4.19/oe-logs b/src/kernel/linux/v4.19/oe-logs
index ecc5c97..fc4a1ee 120000
--- a/src/kernel/linux/v4.19/oe-logs
+++ b/src/kernel/linux/v4.19/oe-logs
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/auto2735evb_ivt_main-poky-linux/linux-mtk-extension/4.19-r0/temp
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/auto2735evb_ivt_main-poky-linux/linux-mtk-extension/4.19-r0/temp
\ No newline at end of file
diff --git a/src/kernel/linux/v4.19/oe-workdir b/src/kernel/linux/v4.19/oe-workdir
index ca575a9..bb4c510 120000
--- a/src/kernel/linux/v4.19/oe-workdir
+++ b/src/kernel/linux/v4.19/oe-workdir
@@ -1 +1 @@
-/home/xj/GA376/MP1_GA/build/tmp/work/auto2735evb_ivt_main-poky-linux/linux-mtk-extension/4.19-r0
\ No newline at end of file
+/home/admin-user/git/T800/build/tmp/work/auto2735evb_ivt_main-poky-linux/linux-mtk-extension/4.19-r0
\ No newline at end of file