From 642ef003ec0b62ede17acf5d2c4af2d2a3d35f66 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 27 Nov 2017 06:23:29 +0100 Subject: bsps: Provide in each BSP Since the is highly BSP-dependent and used only by the tm27 test program we must provide this header file for each BSP. Without the preinstall build target each header file must have a unique source header file. Update #3254. --- cpukit/Makefile.am | 2 ++ cpukit/include/rtems/tm27-default.h | 52 +++++++++++++++++++++++++++++++++++++ cpukit/preinstall.am | 4 +++ 3 files changed, 58 insertions(+) create mode 100644 cpukit/include/rtems/tm27-default.h (limited to 'cpukit') diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index d905f2b73a..f6ee1bfbed 100644 --- a/cpukit/Makefile.am +++ b/cpukit/Makefile.am @@ -270,6 +270,8 @@ include_rtems_HEADERS += libmisc/untar/untar.h ## fsmount include_rtems_HEADERS += libmisc/fsmount/fsmount.h +include_rtems_HEADERS += include/rtems/tm27-default.h + ## Driver manager if LIBDRVMGR include_drvmgrdir = $(includedir)/drvmgr diff --git a/cpukit/include/rtems/tm27-default.h b/cpukit/include/rtems/tm27-default.h new file mode 100644 index 0000000000..7fdb09a5ba --- /dev/null +++ b/cpukit/include/rtems/tm27-default.h @@ -0,0 +1,52 @@ +/** + * @file + * + * @ingroup shared_tm27 + * + * @brief Empty stub for tm27.h + */ + +/* + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef _RTEMS_TMTEST27 +#error "This is an RTEMS internal file you must not include directly." +#endif + +#ifndef __tm27_h +#define __tm27_h + +/** + * @defgroup shared_tm27 Time Test 27 + * + * @ingroup shared_include + * + * @brief Stuff for Time Test 27 + */ + +#define MUST_WAIT_FOR_INTERRUPT 0 + +void Install_tm27_vector(void (*_handler)()) +{ +} + +#define Cause_tm27_intr() \ + do { \ + ; \ + } while (0) + + +#define Clear_tm27_intr() \ + do { \ + ; \ + } while (0) + +#define Lower_tm27_intr() \ + do { \ + ; \ + } while (0) + +#endif diff --git a/cpukit/preinstall.am b/cpukit/preinstall.am index d595085ebe..b687fb3ae5 100644 --- a/cpukit/preinstall.am +++ b/cpukit/preinstall.am @@ -602,6 +602,10 @@ $(PROJECT_INCLUDE)/rtems/fsmount.h: libmisc/fsmount/fsmount.h $(PROJECT_INCLUDE) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fsmount.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fsmount.h +$(PROJECT_INCLUDE)/rtems/tm27-default.h: include/rtems/tm27-default.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/tm27-default.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/tm27-default.h + if LIBDRVMGR $(PROJECT_INCLUDE)/drvmgr/$(dirstamp): @$(MKDIR_P) $(PROJECT_INCLUDE)/drvmgr -- cgit v1.2.3