ln -rs throws suntax error in do_populate_sysroot:append()

"Jojan" <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
I have a sysroot provide glibc-external
sysroot_stage_dirs function does not stage links  correctly
in my do_install append I added ln -rs ${D}${libdir} ${D}${prefix_native}/lib64   link of lib64 to /usr/lib
lib64 is also added in FILES:${PN}

But when do_populate_sysroot calls the sysroot_stage_dirs()  , that populates everything defined in the SYSROOT_DIRS
sysroot_stage_dirs() {
from="$1"
to="$2"

for dir in      /usr/include     /usr/lib     /lib     /lib     /usr/share     /sysroot-only ; do

sysroot_stage_dir "$from$dir" "$to$dir"
done
}

I added  an append function like this so that lib64 is a softlink to lib . The stage
do_populate_sysroot:append() {
dstdir = d.getVar('SYSROOT_DESTDIR')
#    bb.warn("DEST DIR s '%s'" % (dstdir))
ln -s -r ${dstdir}${libdir} ${SYSROOT_DESTDIR}${prefix_native}/lib64
}

But this cause a syntax error
ln -s -r ${dstdir}${libdir} ${SYSROOT_DESTDIR}${prefix_native}/lib64
^
SyntaxError: invalid syntax
ERROR: Parsing halted due to errors, see error messages above

Adding "SYSROOT_DIRS +=   ${prefix_native}/lib64 \ "  does not work , becuase it only created empty directory . Any idea why ln command throws syntax error in do_populate_sysroot:append()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.