dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIM env. variable question in baseboards


From: Steve Ellcey
Subject: SIM env. variable question in baseboards
Date: Thu, 24 May 2012 14:03:22 -0700
User-agent: Heirloom mailx 12.4 7/29/08

I am trying to create a generic baseboard file in dejagnu for use in
testing GCC with a simulator.  Rather then specify the simulator name
in the baseboard I want to use the SIM env. variable, but that does not
seem to be working.   Does any one know why?

Here is my baseboard (minus blank lines and comments):

load_generic_config "sim"
load_base_board_description "basic-sim"
setup_sim sim
#set_board_info sim /..../my_simulator
process_multilib_options ""
set_board_info compiler "[find_gcc]"
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]

If I uncomment 'set_board_info sim /..../my_simulator'
everthing works. But if I leave it out and set (and export) SIM before running
dejagnu to the same path as specified in the 'set_board_info sim' line
it does not use my simulator.  Can anyone explain why?  It seems like
setup_sim is supposed to be checking SIM and calling set_board_info
but it doesn't seem to.

Steve Ellcey
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]