From 18050f28ef10657a5073f83b6b57fc4460bdc76f Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Tue, 22 Mar 2016 17:55:32 +1100 Subject: [PATCH] * baseboards/generic-sim.exp: If DEJAGNU_SIM_SPECFILE exists in the environment, use that as the spec file for bare metal testing. Signed-off-by: Ben Elliston --- ChangeLog | 5 +++++ baseboards/generic-sim.exp | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a774046..7babcd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-03-22 Rob Savoye + + * baseboards/generic-sim.exp: If DEJAGNU_SIM_SPECFILE exists in + the environment, use that as the spec file for bare metal testing. + 2016-03-22 Ben Elliston * Makefile.am (config_DATA): Add config/aarch64-fv8.exp. diff --git a/baseboards/generic-sim.exp b/baseboards/generic-sim.exp index db15d96..178d91a 100644 --- a/baseboards/generic-sim.exp +++ b/baseboards/generic-sim.exp @@ -1,4 +1,4 @@ -# Copyright (C) 2012 Free Software Foundation, Inc. +# Copyright (C) 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc. # # This file is part of DejaGnu. # @@ -65,6 +65,9 @@ if {[info exists env(DEJAGNU_SIM_LINK_FLAGS)]} { if {[info exists env(DEJAGNU_SIM_LDSCRIPT)]} { set_board_info ldscript "$env(DEJAGNU_SIM_LDSCRIPT)" } +if {[info exists env(DEJAGNU_SIM_SPECFILE)]} { + set_board_info specfile "-specs=$env(DEJAGNU_SIM_SPECFILE)" +} if {[info exists env(DEJAGNU_SIM_OPTIONS)]} { set_board_info sim,options "$env(DEJAGNU_SIM_OPTIONS)" -- 2.7.4