[OE-core] [meta-xilinx] How to debug the value of ${TARGET_ARCH} in meta-xilinx/classes/xilinx-boot.class
Elvis Dowson
elvis.dowson at gmail.com
Sat Jun 2 20:36:01 UTC 2012
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
More information about the Openembedded-core
mailing list