forked from Imagelibrary/rtems
libcpu: Add new entry for or1k cpu and include cache manager stubs.
This commit is contained in:
committed by
Joel Sherrill
parent
23b14f87cf
commit
eeea9e30a2
20
c/src/lib/libcpu/or1k/Makefile.am
Normal file
20
c/src/lib/libcpu/or1k/Makefile.am
Normal file
@@ -0,0 +1,20 @@
|
||||
ACLOCAL_AMFLAGS = -I ../../../aclocal
|
||||
|
||||
include $(top_srcdir)/../../../automake/compile.am
|
||||
|
||||
CLEANFILES =
|
||||
DISTCLEANFILES =
|
||||
noinst_PROGRAMS =
|
||||
|
||||
include_libcpudir = $(includedir)/libcpu
|
||||
|
||||
## shared/cache
|
||||
include_libcpu_HEADERS = ../shared/include/cache.h
|
||||
noinst_PROGRAMS += shared/cache.rel
|
||||
shared_cache_rel_SOURCES = ../shared/src/no_cache.c shared/cache/cache_.h
|
||||
shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
|
||||
shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||
|
||||
include $(srcdir)/preinstall.am
|
||||
|
||||
include $(top_srcdir)/../../../automake/local.am
|
||||
31
c/src/lib/libcpu/or1k/configure.ac
Normal file
31
c/src/lib/libcpu/or1k/configure.ac
Normal file
@@ -0,0 +1,31 @@
|
||||
## Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.69])
|
||||
AC_INIT([rtems-c-src-lib-libcpu-or1k],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
|
||||
RTEMS_TOP([../../../../..],[../../..])
|
||||
|
||||
RTEMS_CANONICAL_TARGET_CPU
|
||||
|
||||
AM_INIT_AUTOMAKE([no-define foreign subdir-objects 1.12.2])
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
RTEMS_ENV_RTEMSBSP
|
||||
|
||||
RTEMS_PROJECT_ROOT
|
||||
|
||||
RTEMS_PROG_CC_FOR_TARGET
|
||||
AM_PROG_CC_C_O
|
||||
RTEMS_CANONICALIZE_TOOLS
|
||||
RTEMS_PROG_CCAS
|
||||
|
||||
# At this time all models should use the shared directory so do this
|
||||
AM_CONDITIONAL(shared, true)
|
||||
|
||||
AC_PATH_PROG([AMPOLISH3],[ampolish3],[])
|
||||
|
||||
RTEMS_AMPOLISH3
|
||||
|
||||
# Explicitly list all Makefiles here
|
||||
AC_CONFIG_FILES([Makefile
|
||||
])
|
||||
AC_OUTPUT
|
||||
23
c/src/lib/libcpu/or1k/preinstall.am
Normal file
23
c/src/lib/libcpu/or1k/preinstall.am
Normal file
@@ -0,0 +1,23 @@
|
||||
## Automatically generated by ampolish3 - Do not edit
|
||||
|
||||
if AMPOLISH3
|
||||
$(srcdir)/preinstall.am: Makefile.am
|
||||
$(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am
|
||||
endif
|
||||
|
||||
all-am: $(PREINSTALL_FILES)
|
||||
|
||||
PREINSTALL_FILES =
|
||||
CLEANFILES += $(PREINSTALL_FILES)
|
||||
|
||||
PREINSTALL_DIRS =
|
||||
DISTCLEANFILES += $(PREINSTALL_DIRS)
|
||||
|
||||
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
||||
@$(MKDIR_P) $(PROJECT_INCLUDE)/libcpu
|
||||
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||
|
||||
$(PROJECT_INCLUDE)/libcpu/cache.h: ../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
|
||||
11
c/src/lib/libcpu/or1k/shared/cache/cache_.h
vendored
Normal file
11
c/src/lib/libcpu/or1k/shared/cache/cache_.h
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* or1k Cache Manager Support
|
||||
*/
|
||||
|
||||
#ifndef __OR1K_CACHE_H
|
||||
#define __OR1K_CACHE_H
|
||||
|
||||
#include <libcpu/cache.h>
|
||||
|
||||
#endif
|
||||
/* end of include file */
|
||||
Reference in New Issue
Block a user