Fix the following build error of QSPI u-boot.
| couldn't read file "byte_swap.tcl": no such file or directory
| WARNING: /home/yocto/poky/ls1021aqds/tmp/work/ls1021aqds-poky-linux-gnueabi/u-boot-ls1/2014.07-r0/temp/run.do_compile.18788:1 exit 1 from
| tclsh byte_swap.tcl /home/yocto/poky/ls1021aqds/tmp/work/ls1021aqds-poky-linux-gnueabi/u-boot-ls1/2014.07-r0/git/u-boot.bin /home/yocto/poky/ls1021aqds/tmp/work/ls1021aqds-poky-linux-gnueabi/u-boot-ls1/2014.07-r0/git/u-boot.swap.bin 8
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
do_compile_append () {
case "${UBOOT_MACHINE}" in
- *spi*) tclsh byte_swap.tcl ${S}/u-boot.bin ${S}/u-boot.swap.bin 8
+ *spi*) tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${S}/u-boot.bin ${S}/u-boot.swap.bin 8
mv ${S}/u-boot.swap.bin ${S}/u-boot.bin;;
esac
}