summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/mips/malta
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-12-23 18:18:56 +1100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-25 08:45:26 +0100
commit2afb22b7e1ebcbe40373ff7e0efae7d207c655a9 (patch)
tree44759efe9374f13200a97e96d91bd9a2b7e5ce2a /c/src/lib/libbsp/mips/malta
parentMAINTAINERS: Add myself to Write After Approval. (diff)
downloadrtems-2afb22b7e1ebcbe40373ff7e0efae7d207c655a9.tar.bz2
Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
Diffstat (limited to 'c/src/lib/libbsp/mips/malta')
-rw-r--r--c/src/lib/libbsp/mips/malta/Makefile.am18
-rw-r--r--c/src/lib/libbsp/mips/malta/configure.ac3
-rw-r--r--c/src/lib/libbsp/mips/malta/include/bsp.h113
-rw-r--r--c/src/lib/libbsp/mips/malta/include/irq.h131
-rw-r--r--c/src/lib/libbsp/mips/malta/include/pci.h139
-rw-r--r--c/src/lib/libbsp/mips/malta/include/tm27.h1
-rw-r--r--c/src/lib/libbsp/mips/malta/preinstall.am87
-rw-r--r--c/src/lib/libbsp/mips/malta/startup/bsp_specs (renamed from c/src/lib/libbsp/mips/malta/bsp_specs)0
8 files changed, 6 insertions, 486 deletions
diff --git a/c/src/lib/libbsp/mips/malta/Makefile.am b/c/src/lib/libbsp/mips/malta/Makefile.am
index b73ce85d1c..38b902cd0a 100644
--- a/c/src/lib/libbsp/mips/malta/Makefile.am
+++ b/c/src/lib/libbsp/mips/malta/Makefile.am
@@ -7,23 +7,11 @@ EXTRA_DIST =
include $(top_srcdir)/../../../../automake/compile.am
include $(top_srcdir)/../../bsp.am
-include_bspdir = $(includedir)/bsp
+dist_project_lib_DATA = startup/bsp_specs
-dist_project_lib_DATA = bsp_specs
-
-include_HEADERS = include/bsp.h
-include_HEADERS += include/tm27.h
-include_bsp_HEADERS = ../shared/liblnk/regs.h
#isr
-include_bsp_HEADERS += ../../shared/include/irq-generic.h
-include_bsp_HEADERS += ../../shared/include/irq-info.h
-include_bsp_HEADERS += include/irq.h
#pci
-include_bsp_HEADERS += include/pci.h
#irq
-include_bsp_HEADERS += ../shared/irq/i8259.h
-nodist_include_HEADERS = include/bspopts.h
-nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
DISTCLEANFILES = include/bspopts.h
@@ -32,7 +20,7 @@ start.$(OBJEXT): start/start.S
$(CPPASCOMPILE) -o $@ -c $<
project_lib_DATA = start.$(OBJEXT)
-dist_project_lib_DATA += startup/linkcmds
+project_lib_DATA += linkcmds
noinst_LIBRARIES = libbsp.a
libbsp_a_SOURCES =
@@ -85,5 +73,5 @@ libbsp_a_SOURCES += irq/vectorisrs.c
libbsp_a_SOURCES += irq/interruptmask.c
libbsp_a_SOURCES += ../shared/irq/i8259.c
-include $(srcdir)/preinstall.am
include $(top_srcdir)/../../../../automake/local.am
+include $(srcdir)/../../../../../../bsps/mips/malta/headers.am
diff --git a/c/src/lib/libbsp/mips/malta/configure.ac b/c/src/lib/libbsp/mips/malta/configure.ac
index 248734f85b..6633da14fe 100644
--- a/c/src/lib/libbsp/mips/malta/configure.ac
+++ b/c/src/lib/libbsp/mips/malta/configure.ac
@@ -4,6 +4,9 @@ AC_PREREQ([2.69])
AC_INIT([rtems-c-src-lib-libbsp-mips-malta],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
AC_CONFIG_SRCDIR([make/custom/malta.cfg])
RTEMS_TOP(../../../../../..)
+RTEMS_SOURCE_TOP
+RTEMS_BUILD_TOP
+RTEMS_BSP_LINKCMDS
RTEMS_CANONICAL_TARGET_CPU
AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
diff --git a/c/src/lib/libbsp/mips/malta/include/bsp.h b/c/src/lib/libbsp/mips/malta/include/bsp.h
deleted file mode 100644
index c1169cd0a4..0000000000
--- a/c/src/lib/libbsp/mips/malta/include/bsp.h
+++ /dev/null
@@ -1,113 +0,0 @@
-/**
- * @file
- *
- * This include file contains some definitions specific to the
- * MIPS Malta Board.
- */
-
-/*
- * COPYRIGHT (c) 1989-2012.
- * On-Line Applications Research Corporation (OAR).
- *
- * 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 LIBBSP_MIPS_MALTA_BSP_H
-#define LIBBSP_MIPS_MALTA_BSP_H
-
-#ifndef ASM
-
-#include <bspopts.h>
-#include <bsp/default-initial-extension.h>
-
-#include <rtems.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define BSP_FEATURE_IRQ_EXTENSION
-#define BSP_SHARED_HANDLER_SUPPORT 1
-
-#define REVISION_REGISTER_ADDRESS 0x1fc00010
-#define PRORV_MASK 0x0000000f /* 4 bit Product Revision */
-#define PROID_MASK 0x000000f0 /* 4 bit Product ID */
-#define CORRV_MASK 0x00000300 /* 2 bit Core Board Revision */
-#define CORID_MASK 0x0000fc00 /* 6 bit Core Board ID */
-#define FPGRV_MASK 0x00ff0000 /* 8 bit CBUS FPGA Revision */
-#define BSP_8259_BASE_ADDRESS (0x18000000UL | 0xa0000000UL)
-#define BSP_PCI_BASE_ADDRESS (0x1be00000UL | 0xa0000000UL)
-#define BSP_NIC_IO_BASE (0x10000000UL | 0xa0000000UL)
-#define PCI0_IO_BASE (0x18000000UL | 0xa0000000UL)
-#define BSP_NIC_MEM_BASE (0x00000000UL | 0xa0000000UL)
-
-/* functions */
-#define WRITE_PROTECTED_UINT8( _addr, _value ) \
- do { \
- volatile uint8_t *_ptr = _addr | 0x80000000; \
- *_ptr = _value; \
- }
-#define WRITE_PROTECTED_UINT16( _addr, _value ) \
- do { \
- volatile uint16_t *_ptr = _addr | 0x80000000; \
- *_ptr = _value; \
- }
-#define WRITE_PROTECTED_UINT32( _addr, _value ) \
- do { \
- volatile uint32_t *_ptr = _addr | 0x80000000; \
- *_ptr = _value; \
- }
-#define READ_PROTECTED_UINT8( _addr, _value ) \
- do { \
- volatile uint8_t *_ptr = _addr | 0x80000000; \
- _value = *_ptr; \
- }
-#define READ_PROTECTED_UINT16( _addr, _value ) \
- do { \
- volatile uint16_t *_ptr = _addr | 0x80000000; \
- _value = *_ptr; \
- }
-#define READ_PROTECTED_UINT32( _addr, _value ) \
- do { \
- volatile uint32_t *_ptr = _addr | 0x80000000; \
- _value = *_ptr; \
- }
-
-#define READ_UINT8( _register_, _value_ ) \
- ((_value_) = *((volatile unsigned char *)(_register_)))
-
-#define WRITE_UINT8( _register_, _value_ ) \
- (*((volatile unsigned char *)(_register_)) = (_value_))
-
-#define READ_UINT16( _register_, _value_ ) \
- ((_value_) = *((volatile unsigned short *)(_register_)))
-
-#define WRITE_UINT16( _register_, _value_ ) \
- (*((volatile unsigned short *)(_register_)) = (_value_))
-
-void simple_out_32(uint32_t base, uint32_t addr, uint32_t val);
-void simple_out_le32(uint32_t base, uint32_t addr, uint32_t val);
-uint8_t simple_in_8( uint32_t base, uint32_t addr );
-void simple_out_8( uint32_t base, uint32_t addr, uint8_t val );
-int16_t simple_in_le16( uint32_t base, uint32_t addr );
-int16_t simple_in_16( uint32_t base, uint32_t addr );
-uint32_t simple_in_le32( uint32_t base, uint32_t addr );
-uint32_t simple_in_32( uint32_t base, uint32_t addr );
-void simple_out_le16( uint32_t base, uint32_t addr, uint16_t val );
-void simple_out_16( uint32_t base, uint32_t addr, uint16_t val );
-
-/*
- * Prototypes for methods called from .S for dependency tracking
- */
-void init_tlb(void);
-void resettlb(int i);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* !ASM */
-
-#endif
diff --git a/c/src/lib/libbsp/mips/malta/include/irq.h b/c/src/lib/libbsp/mips/malta/include/irq.h
deleted file mode 100644
index 3ca6f964a9..0000000000
--- a/c/src/lib/libbsp/mips/malta/include/irq.h
+++ /dev/null
@@ -1,131 +0,0 @@
-/**
- * @file
- *
- * @ingroup bsp_interrupt
- *
- * @brief Malta Interrupt Definitions
- */
-
-/*
- * COPYRIGHT (c) 1989-2012.
- * On-Line Applications Research Corporation (OAR).
- *
- * 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 LIBBSP_MIPS_MALTA_IRQ_H
-#define LIBBSP_MIPS_MALTA_IRQ_H
-
-#ifndef ASM
- #include <rtems.h>
- #include <rtems/irq.h>
- #include <rtems/irq-extension.h>
- #include <rtems/score/mips.h>
-#endif
-
-/**
- * @addtogroup bsp_interrupt
- *
- * @{
- */
-
-#define BSP_INTERRUPT_VECTOR_MIN 0
-
-/*
- * Interrupt Vector Numbers
- *
- * NOTE: Numbers 0-15 directly map to levels on the IRC.
- * Number 16 is "1xxxx" per p. 164 of the TX3904 manual.
- */
-#define MALTA_CPU_INT_START MIPS_INTERRUPT_BASE+0
-#define MALTA_CPU_INT_SW0 MALTA_CPU_INT_START+0
-#define MALTA_CPU_INT_SW2 MALTA_CPU_INT_START+1
-#define MALTA_CPU_INT0 MALTA_CPU_INT_START+2
-#define MALTA_CPU_INT1 MALTA_CPU_INT_START+3
-#define MALTA_CPU_INT2 MALTA_CPU_INT_START+4
-#define MALTA_CPU_INT3 MALTA_CPU_INT_START+5
-#define MALTA_CPU_INT4 MALTA_CPU_INT_START+6
-#define MALTA_CPU_INT5 MALTA_CPU_INT_START+7
-#define MALTA_CPU_INT_LAST MALTA_CPU_INT5
-
-#define MALTA_SB_IRQ_START MALTA_CPU_INT_LAST+1
-#define MALTA_SB_IRQ_0 MALTA_SB_IRQ_START+0
-#define MALTA_SB_IRQ_1 MALTA_SB_IRQ_START+1
-#define MALTA_SB_IRQ_2 MALTA_SB_IRQ_START+2
-#define MALTA_SB_IRQ_3 MALTA_SB_IRQ_START+3
-#define MALTA_SB_IRQ_4 MALTA_SB_IRQ_START+4
-#define MALTA_SB_IRQ_5 MALTA_SB_IRQ_START+5
-#define MALTA_SB_IRQ_6 MALTA_SB_IRQ_START+6
-#define MALTA_SB_IRQ_7 MALTA_SB_IRQ_START+7
-#define MALTA_SB_IRQ_8 MALTA_SB_IRQ_START+8
-#define MALTA_SB_IRQ_9 MALTA_SB_IRQ_START+9
-#define MALTA_SB_IRQ_10 MALTA_SB_IRQ_START+10
-#define MALTA_SB_IRQ_11 MALTA_SB_IRQ_START+11
-#define MALTA_SB_IRQ_12 MALTA_SB_IRQ_START+12
-#define MALTA_SB_IRQ_13 MALTA_SB_IRQ_START+13
-#define MALTA_SB_IRQ_14 MALTA_SB_IRQ_START+14
-#define MALTA_SB_IRQ_15 MALTA_SB_IRQ_START+15
-#define MALTA_SB_IRQ_LAST MALTA_SB_IRQ_15
-
-#define MALTA_PCI_ADP_START MALTA_SB_IRQ_LAST+1
-#define MALTA_PCI_ADP20 MALTA_PCI_ADP_START+0
-#define MALTA_PCI_ADP21 MALTA_PCI_ADP_START+1
-#define MALTA_PCI_ADP22 MALTA_PCI_ADP_START+2
-#define MALTA_PCI_ADP27 MALTA_PCI_ADP_START+3
-#define MALTA_PCI_ADP28 MALTA_PCI_ADP_START+4
-#define MALTA_PCI_ADP29 MALTA_PCI_ADP_START+5
-#define MALTA_PCI_ADP30 MALTA_PCI_ADP_START+6
-#define MALTA_PCI_ADP31 MALTA_PCI_ADP_START+7
-#define MALTA_PCI_ADP_LAST MALTA_PCI_ADP31
-#
-
-#define BSP_INTERRUPT_VECTOR_MAX MALTA_PCI_ADP_LAST
-
-/*
- * Redefine interrupts with more descriptive names.
- * The Generic ones above match the hardware name,
- * where these match the device name.
- */
-#define MALTA_INT_SOUTHBRIDGE_INTR MALTA_CPU_INT0
-#define MALTA_INT_SOUTHBRIDGE_SMI MALTA_CPU_INT1
-#define MALTA_INT_TTY2 MALTA_CPU_INT2
-#define MALTA_INT_COREHI MALTA_CPU_INT3
-#define MALTA_INT_CORELO MALTA_CPU_INT4
-#define MALTA_INT_TICKER MALTA_CPU_INT5
-
-#define MALTA_IRQ_TIMER_SOUTH_BRIDGE MALTA_SB_IRQ_0
-#define MALTA_IRQ_KEYBOARD_SUPERIO MALTA_SB_IRQ_1
-#define MALTA_IRQ_RESERVED1_SOUTH_BRIDGE MALTA_SB_IRQ_2
-#define MALTA_IRQ_TTY1 MALTA_SB_IRQ_3
-#define MALTA_IRQ_TTY0 MALTA_SB_IRQ_4
-#define MALTA_IRQ_NOT_USED MALTA_SB_IRQ_5
-#define MALTA_IRQ_FLOPPY_SUPERIO MALTA_SB_IRQ_6
-#define MALTA_IRQ_PARALLEL_PORT_SUPERIO MALTA_SB_IRQ_7
-#define MALTA_IRQ_REALTIME_CLOCK_SOUTH_BRIDGE MALTA_SB_IRQ_8
-#define MALTA_IRQ_I2C_SOUTH_BRIDGE MALTA_SB_IRQ_9
-/* PCI A, PCI B (including Ethernet) PCI slot 1..4, Ethernet */
-#define MALTA_IRQ_PCI_A_B MALTA_SB_IRQ_10
-/* PCI slot 1..4 (audio, USB) */
-#define MALTA_IRQ_PCI_C_D MALTA_SB_IRQ_11
-#define MALTA_IRQ_MOUSE_SUPERIO MALTA_SB_IRQ_12
-#define MALTA_IRQ_RESERVED2_SOUTH_BRIDGE MALTA_SB_IRQ_13
-#define MALTA_IRQ_PRIMARY_IDE MALTA_SB_IRQ_14
-#define MALTA_IRQ_SECONDARY_IDE MALTA_SB_IRQ_15
-#define MALTA_IRQ_SOUTH_BRIDGE MALTA_PCI_ADP20
-#define MALTA_IRQ_ETHERNET MALTA_IRQ_PCI_A_B
-#define MALTA_IRQ_AUDIO MALTA_PCI_ADP22
-#define MALTA_IRQ_CORE_CARD MALTA_PCI_ADP27
-#define MALTA_IRQ_PCI_CONNECTOR_1 MALTA_PCI_ADP28
-#define MALTA_IRQ_PCI_CONNECTOR_2 MALTA_PCI_ADP29
-#define MALTA_IRQ_PCI_CONNECTOR_3 MALTA_PCI_ADP30
-#define MALTA_IRQ_PCI_CONNECTOR_4 MALTA_PCI_ADP31
-
-#ifndef ASM
-
-#endif /* ASM */
-
-/** @} */
-
-#endif /* LIBBSP_MIPS_MALTA_IRQ_H */
diff --git a/c/src/lib/libbsp/mips/malta/include/pci.h b/c/src/lib/libbsp/mips/malta/include/pci.h
deleted file mode 100644
index c5944da548..0000000000
--- a/c/src/lib/libbsp/mips/malta/include/pci.h
+++ /dev/null
@@ -1,139 +0,0 @@
-/**
- * @file
- */
-
-/*
- * COPYRIGHT (c) 1989-2012.
- * On-Line Applications Research Corporation (OAR).
- *
- * 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.
- */
-
-/*
- *
- * PCI defines and function prototypes
- * Copyright 1994, Drew Eckhardt
- * Copyright 1997, 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
- *
- * For more information, please consult the following manuals (look at
- * http://www.pcisig.com/ for how to get them):
- *
- * PCI BIOS Specification
- * PCI Local Bus Specification
- * PCI to PCI Bridge Specification
- * PCI System Design Guide
- */
-
-#ifndef BSP_PCI_H
-#define BSP_PCI_H
-
-#include <rtems/pci.h>
-#include <bsp.h>
-#include <stdio.h>
-
-struct _pin_routes
-{
- int pin, int_name[4];
-};
-struct _int_map
-{
- int bus, slot, opts;
- struct _pin_routes pin_route[5];
-};
-struct pcibridge
-{
- int bus;
- int slot;
-};
-
-/* If there's a conflict between a name in the routing table and
- * what's already set on the device, reprogram the device setting
- * to reflect int_name[0] for the routing table entry
- */
-#define PCI_FIXUP_OPT_OVERRIDE_NAME (1<<0)
-
-void FixupPCI( const struct _int_map *, int (*swizzler)(int,int) );
-
-/* FIXME: This probably belongs into rtems/pci.h */
-extern unsigned char pci_bus_count();
-
-int indirect_pci_read_config_byte(
- unsigned char bus,
- unsigned char slot,
- unsigned char function,
- unsigned char offset,
- uint8_t *val
-);
-
-int indirect_pci_read_config_word(
- unsigned char bus,
- unsigned char slot,
- unsigned char function,
- unsigned char offset,
- uint16_t *val
-);
-
-int indirect_pci_read_config_dword(
- unsigned char bus,
- unsigned char slot,
- unsigned char function,
- unsigned char offset,
- uint32_t *val
-);
-
-int indirect_pci_write_config_byte(
- unsigned char bus,
- unsigned char slot,
- unsigned char function,
- unsigned char offset,
- uint8_t val
-);
-
-int indirect_pci_write_config_word(
- unsigned char bus,
- unsigned char slot,
- unsigned char function,
- unsigned char offset,
- uint16_t val
-);
-
-int indirect_pci_write_config_dword(
- unsigned char bus,
- unsigned char slot,
- unsigned char function,
- unsigned char offset,
- uint32_t val
-);
-
-/* Can these be moved to the rtems pci.h? */
-int FindPCIbridge( int mybus, struct pcibridge *pb );
-
-const pci_config_access_functions pci_indirect_functions;
-
-void pci_out_le32( uint32_t base, uint32_t addr, uint32_t val);
-void pci_out_32( uint32_t base, uint32_t addr, uint32_t val);
-uint8_t pci_in_8 ( uint32_t base, uint32_t addr );
-int16_t pci_in_le16 ( uint32_t base, uint32_t addr );
-uint32_t pci_in_le32 ( uint32_t base, uint32_t addr );
-int16_t pci_in_16 ( uint32_t base, uint32_t addr );
-uint32_t pci_in_32 ( uint32_t base, uint32_t addr );
-void pci_out_8 ( uint32_t base, uint32_t addr, uint8_t val );
-void pci_out_le16( uint32_t base, uint32_t addr, uint16_t val );
-void pci_out_16( uint32_t base, uint32_t addr, uint16_t val );
-void pci_out_32 ( uint32_t base, uint32_t addr, uint32_t val);
-
-#define out_32(_addr, _val) pci_out_32(BSP_PCI_BASE_ADDRESS, _addr, _val)
-#define out_le32(_addr, _val) pci_out_le32(BSP_PCI_BASE_ADDRESS, _addr, _val)
-#define out_32(_addr, _val) pci_out_32(BSP_PCI_BASE_ADDRESS, _addr, _val)
-#define in_8(_addr) pci_in_8( BSP_PCI_BASE_ADDRESS, _addr )
-#define in_le16(_addr) pci_in_le16( BSP_PCI_BASE_ADDRESS, _addr )
-#define in_le32(_addr) pci_in_le32( BSP_PCI_BASE_ADDRESS, _addr )
-#define in_16(_addr) pci_in_16( BSP_PCI_BASE_ADDRESS, _addr )
-#define in_32(_addr) pci_in_32( BSP_PCI_BASE_ADDRESS, _addr )
-#define out_8(_addr,_val) pci_out_8( BSP_PCI_BASE_ADDRESS, _addr, _val )
-#define out_le16(_addr,_val) pci_out_le16( BSP_PCI_BASE_ADDRESS, _addr, _val )
-#define out_16(_addr,_val) pci_out_16( BSP_PCI_BASE_ADDRESS, _addr, _val )
-
-#endif /* BSP_PCI_H */
diff --git a/c/src/lib/libbsp/mips/malta/include/tm27.h b/c/src/lib/libbsp/mips/malta/include/tm27.h
deleted file mode 100644
index 0dfa7bf628..0000000000
--- a/c/src/lib/libbsp/mips/malta/include/tm27.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <rtems/tm27-default.h>
diff --git a/c/src/lib/libbsp/mips/malta/preinstall.am b/c/src/lib/libbsp/mips/malta/preinstall.am
deleted file mode 100644
index e725a6b4b8..0000000000
--- a/c/src/lib/libbsp/mips/malta/preinstall.am
+++ /dev/null
@@ -1,87 +0,0 @@
-## Automatically generated by ampolish3 - Do not edit
-
-if AMPOLISH3
-$(srcdir)/preinstall.am: Makefile.am
- $(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am
-endif
-
-PREINSTALL_DIRS =
-DISTCLEANFILES += $(PREINSTALL_DIRS)
-
-all-am: $(PREINSTALL_FILES)
-
-PREINSTALL_FILES =
-CLEANFILES = $(PREINSTALL_FILES)
-
-all-local: $(TMPINSTALL_FILES)
-
-TMPINSTALL_FILES =
-CLEANFILES += $(TMPINSTALL_FILES)
-
-$(PROJECT_LIB)/$(dirstamp):
- @$(MKDIR_P) $(PROJECT_LIB)
- @: > $(PROJECT_LIB)/$(dirstamp)
-PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
-
-$(PROJECT_INCLUDE)/$(dirstamp):
- @$(MKDIR_P) $(PROJECT_INCLUDE)
- @: > $(PROJECT_INCLUDE)/$(dirstamp)
-PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
-
-$(PROJECT_INCLUDE)/bsp/$(dirstamp):
- @$(MKDIR_P) $(PROJECT_INCLUDE)/bsp
- @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
-PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
-
-$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
-PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
-
-$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
-
-$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
-
-$(PROJECT_INCLUDE)/bsp/regs.h: ../shared/liblnk/regs.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/regs.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/regs.h
-
-$(PROJECT_INCLUDE)/bsp/irq-generic.h: ../../shared/include/irq-generic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-generic.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-generic.h
-
-$(PROJECT_INCLUDE)/bsp/irq-info.h: ../../shared/include/irq-info.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-info.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-info.h
-
-$(PROJECT_INCLUDE)/bsp/irq.h: include/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
-
-$(PROJECT_INCLUDE)/bsp/pci.h: include/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h
-
-$(PROJECT_INCLUDE)/bsp/i8259.h: ../shared/irq/i8259.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/i8259.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/i8259.h
-
-$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
-
-$(PROJECT_INCLUDE)/bsp/bootcard.h: ../../shared/include/bootcard.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bootcard.h
-PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
-
-$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
-TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
-
-$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
- $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
-PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
-
diff --git a/c/src/lib/libbsp/mips/malta/bsp_specs b/c/src/lib/libbsp/mips/malta/startup/bsp_specs
index 87638cc027..87638cc027 100644
--- a/c/src/lib/libbsp/mips/malta/bsp_specs
+++ b/c/src/lib/libbsp/mips/malta/startup/bsp_specs