variant_config.h.in moves to config/
... and is instantiated in the build tree now. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@957 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -24,9 +24,6 @@ include(compilerconfig)
|
|||||||
OPTION( BUILD_OVP "Build OVP Variant?" OFF) # Defaults to BOCHS ON
|
OPTION( BUILD_OVP "Build OVP Variant?" OFF) # Defaults to BOCHS ON
|
||||||
OPTION( BUILD_BOCHS "Build Bochs Variant?" ON)
|
OPTION( BUILD_BOCHS "Build Bochs Variant?" ON)
|
||||||
|
|
||||||
#### Configuration file emitting BUILD_OVP/BOCHS defines ####
|
|
||||||
configure_file(${CMAKE_SOURCE_DIR}/core/variant_config.h.cmake ${CMAKE_SOURCE_DIR}/core/variant_config.h)
|
|
||||||
|
|
||||||
if(BUILD_OVP)
|
if(BUILD_OVP)
|
||||||
message(STATUS "[${PROJECT_NAME}] Building OVP variant...")
|
message(STATUS "[${PROJECT_NAME}] Building OVP variant...")
|
||||||
SET(VARIANT ovp)
|
SET(VARIANT ovp)
|
||||||
|
|||||||
@ -30,8 +30,7 @@ endif(DOXYGEN_FOUND)
|
|||||||
|
|
||||||
## Add CMakeLists from subdirectories ##
|
## Add CMakeLists from subdirectories ##
|
||||||
# The autogenerated header files
|
# The autogenerated header files
|
||||||
# FIXME disabled for now; we'll need it later on for other configuration stuff.
|
add_subdirectory(config)
|
||||||
#add_subdirectory(config)
|
|
||||||
|
|
||||||
# fail* targets
|
# fail* targets
|
||||||
add_subdirectory(jobserver)
|
add_subdirectory(jobserver)
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "../variant_config.h"
|
#include "config/variant_config.h"
|
||||||
|
|
||||||
#if defined BUILD_BOCHS
|
#if defined BUILD_BOCHS
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
#define __SAL_INSTANCE_HPP__
|
#define __SAL_INSTANCE_HPP__
|
||||||
|
|
||||||
#include "SALConfig.hpp"
|
#include "SALConfig.hpp"
|
||||||
#include "../variant_config.h"
|
#include "config/variant_config.h"
|
||||||
|
|
||||||
#ifdef BUILD_BOCHS
|
#ifdef BUILD_BOCHS
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,3 @@
|
|||||||
|
#### Configuration file emitting BUILD_OVP/BOCHS defines ####
|
||||||
option( EXP_MHTEST "MH Testcampaign" on)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/variant_config.h.in
|
||||||
option( EXP_FAULTCOV "Fault coverage experiment" OFF)
|
${CMAKE_CURRENT_BINARY_DIR}/variant_config.h)
|
||||||
option( EXP_HSCSIMPLE "HSC simple experiment" OFF)
|
|
||||||
option( EXP_COOLCHECKSUM "Test campaign for chb's cool checksum" OFF)
|
|
||||||
option( EXP_CHECKSUM_OOSTUBS "OOStuBS Checksum" OFF)
|
|
||||||
|
|
||||||
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/experiments.hpp.in
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/experiments.hpp @ONLY}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,24 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright DanceOS Project
|
|
||||||
* http://www.danceos.org
|
|
||||||
*
|
|
||||||
* \file experiments.h.in
|
|
||||||
* \brief Experiment configuration
|
|
||||||
* \author Martin Hoffmann <hoffmann@cs.fau.de>
|
|
||||||
*
|
|
||||||
* The defines are generated by cmake.
|
|
||||||
* \attention THIS FILE IS AUTOGENERATED, DO NOT EDIT!
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef EXPERIMENTS_H
|
|
||||||
#define EXPERIMENTS_H
|
|
||||||
|
|
||||||
#cmakedefine EXP_MHTEST
|
|
||||||
#cmakedefine EXP_FAULTCOV
|
|
||||||
#cmakedefine EXP_HSCSIMPLE
|
|
||||||
#cmakedefine EXP_COOLCHECKSUM
|
|
||||||
#cmakedefine EXP_CHECKSUM_OOSTUBS
|
|
||||||
|
|
||||||
#endif // EXPERIMENTS_H
|
|
||||||
|
|
||||||
@ -1,8 +1,7 @@
|
|||||||
#ifndef CONFIG_H
|
#ifndef VARIANT_CONFIG_H
|
||||||
#define CONFIG_H
|
#define VARIANT_CONFIG_H
|
||||||
|
|
||||||
#cmakedefine BUILD_OVP
|
#cmakedefine BUILD_OVP
|
||||||
#cmakedefine BUILD_BOCHS
|
#cmakedefine BUILD_BOCHS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Reference in New Issue
Block a user