source: rtems/c/src/lib/libbsp/mips/malta/Makefile.am @ d8d6a08

5
Last change on this file since d8d6a08 was 2afb22b, checked in by Chris Johns <chrisj@…>, on 12/23/17 at 07:18:56

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.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1##
2##
3
4ACLOCAL_AMFLAGS = -I ../../../../aclocal
5EXTRA_DIST =
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10dist_project_lib_DATA = startup/bsp_specs
11
12#isr
13#pci
14#irq
15DISTCLEANFILES = include/bspopts.h
16
17
18EXTRA_DIST += start/start.S ../shared/liblnk/regs.h
19start.$(OBJEXT): start/start.S
20        $(CPPASCOMPILE) -o $@ -c $<
21project_lib_DATA = start.$(OBJEXT)
22
23project_lib_DATA += linkcmds
24
25noinst_LIBRARIES = libbsp.a
26libbsp_a_SOURCES =
27
28# startup
29libbsp_a_SOURCES += startup/simple_access.c
30libbsp_a_SOURCES += ../../shared/bspclean.c
31libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
32libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
33libbsp_a_SOURCES += startup/bspstart.c
34libbsp_a_SOURCES += startup/bspreset.c
35libbsp_a_SOURCES += ../../shared/bootcard.c
36libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
37libbsp_a_SOURCES += ../../shared/sbrk.c
38libbsp_a_SOURCES += startup/inittlb.c
39libbsp_a_SOURCES += ../shared/startup/idttlb.S
40
41# clock
42libbsp_a_SOURCES += ../shared/clock/clockdrv.c
43libbsp_a_SOURCES += ../shared/clock/mips_timer.S
44libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
45
46# console
47libbsp_a_SOURCES += console/conscfg.c
48libbsp_a_SOURCES += console/printk_support.c
49libbsp_a_SOURCES += ../../shared/console.c
50libbsp_a_SOURCES += ../../shared/console_select.c
51libbsp_a_SOURCES += ../../shared/console_read.c
52libbsp_a_SOURCES += ../../shared/console_write.c
53libbsp_a_SOURCES += ../../shared/console_control.c
54# timer
55libbsp_a_SOURCES += ../../shared/timerstub.c
56
57libbsp_a_LIBADD  = ../../../libcpu/@RTEMS_CPU@/shared/cache.rel
58libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/interrupts.rel
59
60# pci
61libbsp_a_SOURCES += pci/pci.c
62libbsp_a_SOURCES += ../../shared/pci/pci_find_device.c
63
64#isr
65libbsp_a_SOURCES += ../../shared/src/irq-generic.c
66libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
67libbsp_a_SOURCES += ../../shared/src/irq-info.c
68libbsp_a_SOURCES += ../../shared/src/irq-shell.c
69libbsp_a_SOURCES += ../../shared/src/irq-server.c
70libbsp_a_SOURCES += ../shared/irq/vectorexceptions.c
71libbsp_a_SOURCES += ../shared/irq/irq.c
72libbsp_a_SOURCES += irq/vectorisrs.c
73libbsp_a_SOURCES += irq/interruptmask.c
74libbsp_a_SOURCES += ../shared/irq/i8259.c
75
76include $(top_srcdir)/../../../../automake/local.am
77include $(srcdir)/../../../../../../bsps/mips/malta/headers.am
Note: See TracBrowser for help on using the repository browser.