Hi,
      How can I debug the value of ${TARGET_ARCH} in 
meta-xilinx/classes/xilinx-boot.class, for the following function:

do_export_xparam() {
bbnote "Replacing xparameters header to match hardware model"
xparam=$1
if [ "${TARGET_ARCH}" == "powerpc" ]; then
        cpu="PPC`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`"
else
        cpu=`echo ${TARGET_CPU} | tr '[:lower:]' '[:upper:]'`
fi
cp ${xparam} ${S}/board/xilinx/${XILINX_BOARD}
echo "/*** Cannonical definitions ***/
#define XPAR_PLB_CLOCK_FREQ_HZ XPAR_PROC_BUS_0_FREQ_HZ
#define XPAR_CORE_CLOCK_FREQ_HZ XPAR_CPU_${cpu}_CORE_CLOCK_FREQ_HZ
#ifndef XPAR_DDR2_SDRAM_MEM_BASEADDR
# define XPAR_DDR2_SDRAM_MEM_BASEADDR XPAR_DDR_SDRAM_MPMC_BASEADDR
#endif
#define XPAR_PCI_0_CLOCK_FREQ_HZ    0" >> 
${S}/board/xilinx/${XILINX_BOARD}/xparameters.h
}

My machine is configured as virtex-5, and meta-xilinx/conf/machine/virtex5.conf 
doesn't specify TARGET_ARCH, it just defines the following

TARGET_CPU  = "440"
#tune for the 440 cpu
require conf/machine/include/tune-ppc440.inc

So is that a mistake?

At the moment, the value for cpu=440, instead of PPC440 for do_export_xparam().

Best regards,

Elvis Dowson
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to