Cleaned up to move conditional to C files -- not Makefile.

This commit is contained in:
Joel Sherrill
1999-09-02 18:12:57 +00:00
parent 9d709f59bd
commit 9396d1e43b
3 changed files with 12 additions and 18 deletions

View File

@@ -10,7 +10,9 @@
*
* $Id:
*/
#include <bsp.h>
#if (SCORE603E_GENERATION == 1)
#include <rtems/libio.h>
#include <libcsupport.h>
@@ -156,3 +158,4 @@ void set_irq_mask(
{
assert (0);
}
#endif /* end of generation 1 */

View File

@@ -10,7 +10,9 @@
*
* $Id:
*/
#include <bsp.h>
#if (SCORE603E_GENERATION == 2)
#include <rtems/libio.h>
#include <libcsupport.h>
@@ -165,14 +167,5 @@ rtems_unsigned16 read_and_clear_irq()
return irq;
}
#endif /* end of generation 2 */

View File

@@ -16,6 +16,12 @@ VPATH = @srcdir@:@srcdir@/../../../shared
PGM = ${ARCH}/startup.rel
# C source names, if any, go here -- minus the .c
#
# First and second generation use different Bridge chips :(
# Generation 1 --> 82378zb
# Generation 2 --> FPGA
STARTUP_C_PIECES = 82378zb FPGA
C_PIECES = bspclean bsplibc bsppost bspstart bootcard main sbrk setvec \
Hwr_init spurious genpvec $(STARTUP_C_PIECES) gnatinstallhandler
C_FILES = $(C_PIECES:%=%.c)
@@ -42,14 +48,6 @@ INSTALLDIRS = $(PROJECT_RELEASE)/lib
$(INSTALLDIRS):
@$(mkinstalldirs) $(INSTALLDIRS)
# First and second generation use different Bridge chips :(
# C source names, if any, go here -- minus the .c
# generation 1
STARTUP_C_PIECES_1_V = 82378zb
# generation 2
STARTUP_C_PIECES_2_V = FPGA
STARTUP_C_PIECES_ = $(STARTUP_C_PIECES_$(SCORE603E_GENERATION)_V)
#
# (OPTIONAL) Add local stuff here using +=
#