source: rtems/c/src/lib/libbsp/i386/pc386/Makefile.am @ d584269

Last change on this file since d584269 was d584269, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 4, 2018 at 2:44:52 PM

bsps: Remove librtemsbsp.a wrapup

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 6.0 KB
Line 
1##
2##
3
4ACLOCAL_AMFLAGS = -I ../../../../aclocal
5
6# FIXME: We must not include *.cfg
7include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
8
9CLEANFILES =
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14dist_project_lib_DATA = startup/bsp_specs
15
16DISTCLEANFILES = include/bspopts.h
17
18noinst_PROGRAMS =
19
20_SUBDIRS = . tools
21
22TMPINSTALL_FILES =
23
24start.$(OBJEXT): start/start.S
25        $(CPPASCOMPILE) -o $@ -c $<
26project_lib_DATA = start.$(OBJEXT)
27
28start16.$(OBJEXT): start/start16.S
29        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
30
31start16-elf32.$(OBJEXT): start16.$(OBJEXT)
32        $(LD) -N -Ttext $(START16ADDR) -e start16 -nostdlib \
33          --oformat=elf32-i386 \
34        -o $@ $<
35
36start16.bin: start16-elf32.$(OBJEXT)
37        $(OBJCOPY) -O binary $< $@
38CLEANFILES += start16.bin
39
40$(PROJECT_LIB)/start16.bin: start16.bin $(PROJECT_LIB)/$(dirstamp)
41        $(INSTALL_DATA) $< $(PROJECT_LIB)/start16.bin
42TMPINSTALL_FILES += $(PROJECT_LIB)/start16.bin
43
44project_lib_DATA += start16.bin
45
46project_lib_DATA += linkcmds
47
48project_lib_LIBRARIES = librtemsbsp.a
49librtemsbsp_a_SOURCES =
50
51# clock
52librtemsbsp_a_SOURCES += clock/ckinit.c
53librtemsbsp_a_SOURCES += ../../shared/clockdrv_shell.h
54librtemsbsp_a_SOURCES += clock/todcfg.c
55librtemsbsp_a_SOURCES += ../../shared/tod.c
56
57if RTEMS_VGA
58librtemsbsp_a_SOURCES += console/inch.c
59librtemsbsp_a_SOURCES += console/outch.c
60librtemsbsp_a_SOURCES += console/defkeymap.c
61librtemsbsp_a_SOURCES += console/keyboard.c
62librtemsbsp_a_SOURCES += console/pc_keyb.c
63librtemsbsp_a_SOURCES += console/ps2_mouse.c
64librtemsbsp_a_SOURCES += console/vgainit.c
65librtemsbsp_a_SOURCES += console/vt.c
66librtemsbsp_a_SOURCES += console/videoAsm.S
67librtemsbsp_a_SOURCES += console/kbd_parser.c
68librtemsbsp_a_SOURCES += console/vgacons.c
69if USE_VGA
70librtemsbsp_a_SOURCES += console/fb_vga.c
71endif
72if USE_CIRRUS_GD5446
73librtemsbsp_a_SOURCES += console/fb_cirrus.c
74endif
75if USE_VBE_RM
76librtemsbsp_a_SOURCES += console/fb_vesa_rm.c
77endif
78endif
79
80# console (non-graphics support)
81librtemsbsp_a_SOURCES += console/serial_mouse_config.c
82librtemsbsp_a_SOURCES += ../../i386/shared/comm/uart.c
83librtemsbsp_a_SOURCES += ../../i386/shared/comm/tty_drv.c
84librtemsbsp_a_SOURCES += ../../i386/shared/realmode_int/realmode_int.c
85librtemsbsp_a_SOURCES += ../../shared/console.c
86librtemsbsp_a_SOURCES += console/console_select.c
87librtemsbsp_a_SOURCES += ../../shared/console_read.c
88librtemsbsp_a_SOURCES += ../../shared/console_write.c
89librtemsbsp_a_SOURCES += console/console_control.c
90librtemsbsp_a_SOURCES += console/conscfg.c
91librtemsbsp_a_SOURCES += console/printk_support.c
92librtemsbsp_a_SOURCES += console/exar17d15x.c
93librtemsbsp_a_SOURCES += console/rtd316.c
94librtemsbsp_a_SOURCES += console/uart_bus_pci.c
95librtemsbsp_a_SOURCES += console/gdb_select.c
96
97# gdb
98librtemsbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c
99librtemsbsp_a_SOURCES += ../../i386/shared/comm/i386-stub-glue.c
100librtemsbsp_a_SOURCES += ../../i386/shared/comm/gdb_glue.c
101
102# gnat
103librtemsbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
104
105# pci
106librtemsbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c
107librtemsbsp_a_SOURCES += ../../i386/shared/pci/pci_io.c
108librtemsbsp_a_SOURCES += ../../shared/pci/pci_bus_count.c
109librtemsbsp_a_SOURCES += ../../shared/pci/pci_find_device.c
110
111# startup
112librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
113librtemsbsp_a_SOURCES += startup/bsp_fatal_halt.c
114librtemsbsp_a_SOURCES += startup/bspgetworkarea.c
115librtemsbsp_a_SOURCES += startup/bspidle.S
116librtemsbsp_a_SOURCES += startup/bspstart.c
117librtemsbsp_a_SOURCES += startup/bspcmdline.c
118librtemsbsp_a_SOURCES += ../../shared/bspclean.c
119librtemsbsp_a_SOURCES += startup/bspreset.c
120librtemsbsp_a_SOURCES += ../../i386/shared/irq/idt.c
121librtemsbsp_a_SOURCES += ../../i386/shared/irq/irq.c
122librtemsbsp_a_SOURCES += ../../i386/shared/irq/irq_init.c
123librtemsbsp_a_SOURCES += ../../i386/shared/irq/elcr.c
124librtemsbsp_a_SOURCES += ../../shared/bootcard.c
125librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
126librtemsbsp_a_SOURCES += ../../shared/sbrk.c
127librtemsbsp_a_SOURCES += startup/ldsegs.S
128librtemsbsp_a_SOURCES += ../../i386/shared/irq/irq_asm.S
129librtemsbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
130librtemsbsp_a_SOURCES += ../../shared/src/irq-generic.c
131librtemsbsp_a_SOURCES += ../../shared/src/irq-legacy.c
132librtemsbsp_a_SOURCES += ../../shared/src/irq-info.c
133librtemsbsp_a_SOURCES += ../../shared/src/irq-shell.c
134librtemsbsp_a_SOURCES += ../../shared/src/irq-server.c
135
136# timer
137librtemsbsp_a_SOURCES += timer/timer.c timer/timerisr.S
138
139if HAS_IDE
140# ide
141librtemsbsp_a_SOURCES += ide/ide.c
142librtemsbsp_a_SOURCES += ide/idecfg.c
143endif
144
145if HAS_SMP
146librtemsbsp_a_SOURCES += ../../i386/shared/smp/getcpuid.c
147librtemsbsp_a_SOURCES += ../../i386/shared/smp/smp-imps.c
148
149project_lib_DATA += appstart.$(OBJEXT)
150appcpustart.$(OBJEXT): start/start16.S
151        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $<
152
153appstart.$(OBJEXT): appcpustart.$(OBJEXT)
154        $(LD) -r -N -T $(top_srcdir)/startup/linkcmds \
155            -Ttext 0x70000 -e app_processor_start -nostdlib \
156            -o appstart_tmp.exe $<
157        $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin
158        $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@
159endif
160
161if HAS_NETWORKING
162librtemsbsp_a_SOURCES += 3c509/3c509.c
163librtemsbsp_a_SOURCES += 3c509/3c509.h
164librtemsbsp_a_SOURCES += 3c509/elink.c
165librtemsbsp_a_SOURCES += 3c509/elink.h
166librtemsbsp_a_SOURCES += ne2000/ne2000.c
167librtemsbsp_a_SOURCES += wd8003/wd8003.c
168endif
169
170librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/cache/cache.c
171librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/cpuModel.S
172librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/displayCpu.c
173librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/idtr.S
174librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/page.c
175
176if HAS_SMP
177librtemsbsp_a_LIBADD = appstart.$(OBJEXT)
178endif
179
180
181include $(top_srcdir)/../../../../automake/local.am
182include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
183include $(top_srcdir)/../../../../automake/subdirs.am
184include $(srcdir)/../../../../../../bsps/i386/pc386/headers.am
Note: See TracBrowser for help on using the repository browser.