Question to OAR

Dieter Schaefer Dieter.B.Schaefer at t-online.de
Mon Nov 17 23:44:24 UTC 2003


> > Digging into that problem myself, I found the following: 
> > * target=m68k-rtems, rtemsbsp=mcf5206elite
> > * target=arm-rtems, rtemsbsp=edb7312 + vegaplus
> > builds Ok, including tests 
> > * powerpc-rtems, rtemsbsp=eth_comm + mbx8xx
> > fails to build.
> > Now, guess why ... If you need a hint, don't hesitate to ask ...
> > Of course, It's fixed now.
> And ... will you tell us?

sure, my hack is attached. Pls feel free to use it any way you like.
.../cpukit/score/cpu/powerpc/Makefile.am 
The problem for CygWin was that LIB in the line 
$(LIB): $(OBJS) 
was undefined. Linux was obviously more tolerant and skipped it.

This is because of modification to take care of powerpc old/new exceptions 
I guess. All other targets have LIB= ... defined, because they have cpu.c 
in there directories. For powerpc this is in the bsp directories.
I know, about 2 years ago it was introduced. Is it still necessary 
today to have old/new exceptions? Maybe things could be merged together 
and unified - just a question.

> 
> RTEMS is an OpenSource project and if you want it to be improved
> collaborate and contribute, or stay away.
OpenSource means taking and giving ... I agree with that ...

Dieter Schaefer

> 
> Ralf
> 
> 



-------------- next part --------------
##
## Makefile.am,v 1.17 2002/12/11 17:08:30 ralf Exp
## modified by DiScha 2003/11/15 to enable build under CygWin
##

ACLOCAL_AMFLAGS = -I ../../../aclocal

include $(top_srcdir)/../../../automake/multilib.am
include $(top_srcdir)/../../../automake/compile.am
include $(top_srcdir)/../../../automake/lib.am

$(PROJECT_INCLUDE)/%.h: %.h
	$(INSTALL_DATA) $< $@

$(PROJECT_INCLUDE):
	$(mkinstalldirs) $@

$(PROJECT_INCLUDE)/rtems:
	$(mkinstalldirs) $@

$(PROJECT_INCLUDE)/rtems/score:
	$(mkinstalldirs) $@

include_HEADERS = asm.h
PREINSTALL_FILES = $(PROJECT_INCLUDE) \
    $(include_HEADERS:%=$(PROJECT_INCLUDE)/%)

include_rtems_scoredir = $(includedir)/rtems/score
include_rtems_score_HEADERS = \
  rtems/score/ppc.h \
  rtems/score/types.h
include_rtems_score_HEADERS += rtems/score/cpu.h

$(PROJECT_INCLUDE)/rtems/old-exceptions:
	$(mkinstalldirs) $@

include_rtems_old_exceptionsdir = $(includedir)/rtems/old-exceptions
include_rtems_old_exceptions_HEADERS = rtems/old-exceptions/cpu.h

$(PROJECT_INCLUDE)/rtems/new-exceptions:
	$(mkinstalldirs) $@

include_rtems_new_exceptionsdir = $(includedir)/rtems/new-exceptions
include_rtems_new_exceptions_HEADERS = rtems/new-exceptions/cpu.h

$(PROJECT_INCLUDE)/rtems/powerpc:
	$(mkinstalldirs) $@

include_rtems_powerpcdir = $(includedir)/rtems/powerpc
include_rtems_powerpc_HEADERS = rtems/powerpc/registers.h

PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \
    $(include_rtems_score_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)

PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/old-exceptions \
    $(include_rtems_old_exceptions_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)

PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/new-exceptions \
    $(include_rtems_new_exceptions_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)

PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/powerpc \
    $(include_rtems_powerpc_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h)

C_FILES = # cpu.c
OBJS = # $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))

#S_FILES = # cpu_asm.S
#OBJS += $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT))

#$(LIB): $(OBJS)
#	$(make-library)

all-local: $(ARCH) $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
#all-local: $(ARCH) $(PREINSTALL_FILES) $(LIB) $(TMPINSTALL_FILES)

include $(top_srcdir)/../../../automake/local.am


More information about the users mailing list