Expansion Error during parsing uboot recipe while migrating from dey3.2 to dey4.0

while doing migration from dey3.2 to dey4.0, while building the OS, i am facing the below error

shankar@amar-virtualbox:~/dualboot/dcm$ ./scripts/build_yocto -c dcm_system/security/conf/yocto_build_unsecure_images.conf
No output_image_name defined, output images will be named baxter.swu/sdcard
Building Yocto Images for << mfg >> OS <>
fatal: unable to access ‘http://lunsung02.global.baxter.com/yocto/external-repo/kirkstone-layers/meta-swupdate.git/’: Failed to connect to lunsung02.global.baxter.com port 80: No route to host
Failed to fetch upstream branch kirkstone
ccimx6uldcm
Loading cache: 100% |###################################################################################################################################################| Time: 0:00:02
WARNING: /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/…/meta-baxter/recipes-bsp/u-boot-baxter_2020.04.bb: Exception during build_dependencies for do_configure | ETA: 0:00:38
WARNING: /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/…/meta-baxter/recipes-bsp/u-boot-baxter_2020.04.bb: Error during finalise of /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/…/meta-baxter/recipes-bsp/u-boot-baxter_2020.04.bb
ERROR: ExpansionError during parsing /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/…/meta-baxter/recipes-bsp/u-boot-baxter_2020.04.bb
Traceback (most recent call last):
File “/home/shankar/dualboot/dcm/high_sdk/build-kirkstone/…/poky/meta/classes/patch.bbclass”, line 87, in src_patches(d=, all=True, expand=True):
import oe.patch
> return oe.patch.src_patches(d, all, expand)

File “/home/shankar/dualboot/dcm/high_sdk/build-kirkstone/…/poky/meta/lib/oe/patch.py”, line 829, in src_patches(d=, all=True, expand=True):
workdir = d.getVar(‘WORKDIR’)
> fetch = bb.fetch2.Fetch([], d)
patches = []
File “/home/shankar/dualboot/dcm/high_sdk/poky/bitbake/lib/bb/fetch2/init.py”, line 1682, in Fetch.init(urls=[“${@oe.utils.conditional(‘DIGI_INTERNAL_GIT’,”, “‘1’”, ‘,’, “‘${DIGI_GIT}u-boot-denx.git’,”, “‘git://github.com/digi-embedded/u-boot.git;protocol=https’,”, ‘d)};nobranch=1’], d=, cache=True, localonly=False, connection_cache=None):
try:
> self.ud = FetchData(url, d, localonly)
except NonLocalMethod:
File “/home/shankar/dualboot/dcm/high_sdk/poky/bitbake/lib/bb/fetch2/init.py”, line 1269, in FetchData.init(url=“${@oe.utils.conditional(‘DIGI_INTERNAL_GIT’,”, d=, localonly=False):
self.basepath = None
> (self.type, self.host, self.path, self.user, self.pswd, self.parm) = decodeurl(d.expand(url))
self.date = self.getSRCDate(d)
File “/home/shankar/dualboot/dcm/high_sdk/poky/bitbake/lib/bb/fetch2/init.py”, line 357, in decodeurl(url=“${@oe.utils.conditional(‘DIGI_INTERNAL_GIT’,”):
if not m:
> raise MalformedUrl(url)

bb.data_smart.ExpansionError: Failure expanding variable do_configure, expression was if [ -n “ccimx6uldcm1GB” ]; then
unset i j
for config in ccimx6uldcm1GB_defconfig; do
i=$(expr $i + 1);
for type in ccimx6uldcm1GB; do
j=$(expr $j + 1);
if [ $j -eq $i ]; then
oe_runmake -C /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git O=/home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git/${config} ${config}
if [ -n “${@’ '.join(find_cfgs(d))}” ]; then
merge_config.sh -m -O /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git/${config} /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git/${config}/.config ${@" “.join(find_cfgs(d))}
oe_runmake -C /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git O=/home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git/${config} oldconfig
fi
fi
done
unset j
done
unset i
DEVTOOL_DISABLE_MENUCONFIG=true
else
if [ -n " ccimx6uldcm1GB_defconfig” ]; then
oe_runmake -C /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git O=/home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git ccimx6uldcm1GB_defconfig
else
oe_runmake -C /home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git O=/home/shankar/dualboot/dcm/high_sdk/build-kirkstone/tmp/work/ccimx6uldcm-oe-linux-gnueabi/u-boot-baxter/2020.04-r0/git oldconfig
fi
merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
cml1_do_configure
fi
which triggered exception MalformedUrl: The URL: ‘${@oe.utils.conditional(‘DIGI_INTERNAL_GIT’,’ is invalid and cannot be interpreted
The variable dependency chain for the failure is: do_configure

ERROR: Parsing halted due to errors, see error messages above
Exiting due to an error.

I am not understanding why this error is coming, this error is due to DIGI_INTERNAL_GIT variable

I will provide the necessary inputs
Please help me solving this error.

Thanks,
Amar Suryawanshi