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

Last change on this file since 2d0bc83 was 2d0bc83, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 30, 2018 at 6:42:21 PM

build: Remove EXTRA_DIST

A "make dist" is not supported. So, it makes no sense to have pure "make
dist" related stuff in the Makefile.am.

  • Property mode set to 100644
File size: 5.5 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
48noinst_LIBRARIES = libbsp.a
49libbsp_a_SOURCES =
50
51# clock
52libbsp_a_SOURCES += clock/ckinit.c
53libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
54libbsp_a_SOURCES += clock/todcfg.c
55libbsp_a_SOURCES += ../../shared/tod.c
56
57if RTEMS_VGA
58libbsp_a_SOURCES += console/inch.c
59libbsp_a_SOURCES += console/outch.c
60libbsp_a_SOURCES += console/defkeymap.c
61libbsp_a_SOURCES += console/keyboard.c
62libbsp_a_SOURCES += console/pc_keyb.c
63libbsp_a_SOURCES += console/ps2_mouse.c
64libbsp_a_SOURCES += console/vgainit.c
65libbsp_a_SOURCES += console/vt.c
66libbsp_a_SOURCES += console/videoAsm.S
67libbsp_a_SOURCES += console/kbd_parser.c
68libbsp_a_SOURCES += console/vgacons.c
69if USE_VGA
70libbsp_a_SOURCES += console/fb_vga.c
71endif
72if USE_CIRRUS_GD5446
73libbsp_a_SOURCES += console/fb_cirrus.c
74endif
75if USE_VBE_RM
76libbsp_a_SOURCES += console/fb_vesa_rm.c
77endif
78endif
79
80# console (non-graphics support)
81libbsp_a_SOURCES += console/serial_mouse_config.c
82libbsp_a_SOURCES += ../../i386/shared/comm/uart.c
83libbsp_a_SOURCES += ../../i386/shared/comm/tty_drv.c
84libbsp_a_SOURCES += ../../i386/shared/realmode_int/realmode_int.c
85libbsp_a_SOURCES += ../../shared/console.c
86libbsp_a_SOURCES += console/console_select.c
87libbsp_a_SOURCES += ../../shared/console_read.c
88libbsp_a_SOURCES += ../../shared/console_write.c
89libbsp_a_SOURCES += console/console_control.c
90libbsp_a_SOURCES += console/conscfg.c
91libbsp_a_SOURCES += console/printk_support.c
92libbsp_a_SOURCES += console/exar17d15x.c
93libbsp_a_SOURCES += console/rtd316.c
94libbsp_a_SOURCES += console/uart_bus_pci.c
95libbsp_a_SOURCES += console/gdb_select.c
96
97# gdb
98libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c
99libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub-glue.c
100libbsp_a_SOURCES += ../../i386/shared/comm/gdb_glue.c
101
102# gnat
103libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
104
105# pci
106libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c
107libbsp_a_SOURCES += ../../i386/shared/pci/pci_io.c
108libbsp_a_SOURCES += ../../shared/pci/pci_bus_count.c
109libbsp_a_SOURCES += ../../shared/pci/pci_find_device.c
110
111# startup
112libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
113libbsp_a_SOURCES += startup/bsp_fatal_halt.c
114libbsp_a_SOURCES += startup/bspgetworkarea.c
115libbsp_a_SOURCES += startup/bspidle.S
116libbsp_a_SOURCES += startup/bspstart.c
117libbsp_a_SOURCES += startup/bspcmdline.c
118libbsp_a_SOURCES += ../../shared/bspclean.c
119libbsp_a_SOURCES += startup/bspreset.c
120libbsp_a_SOURCES += ../../i386/shared/irq/idt.c
121libbsp_a_SOURCES += ../../i386/shared/irq/irq.c
122libbsp_a_SOURCES += ../../i386/shared/irq/irq_init.c
123libbsp_a_SOURCES += ../../i386/shared/irq/elcr.c
124libbsp_a_SOURCES += ../../shared/bootcard.c
125libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
126libbsp_a_SOURCES += ../../shared/sbrk.c
127libbsp_a_SOURCES += startup/ldsegs.S
128libbsp_a_SOURCES += ../../i386/shared/irq/irq_asm.S
129libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
130libbsp_a_SOURCES += ../../shared/src/irq-generic.c
131libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
132libbsp_a_SOURCES += ../../shared/src/irq-info.c
133libbsp_a_SOURCES += ../../shared/src/irq-shell.c
134libbsp_a_SOURCES += ../../shared/src/irq-server.c
135
136# timer
137libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
138
139if HAS_IDE
140# ide
141libbsp_a_SOURCES += ide/ide.c
142libbsp_a_SOURCES += ide/idecfg.c
143endif
144
145if HAS_SMP
146libbsp_a_SOURCES += ../../i386/shared/smp/getcpuid.c
147libbsp_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
162libbsp_a_SOURCES += 3c509/3c509.c
163libbsp_a_SOURCES += 3c509/3c509.h
164libbsp_a_SOURCES += 3c509/elink.c
165libbsp_a_SOURCES += 3c509/elink.h
166libbsp_a_SOURCES += ne2000/ne2000.c
167libbsp_a_SOURCES += wd8003/wd8003.c
168endif
169
170libbsp_a_SOURCES += ../../../../../../bsps/i386/shared/cache/cache.c
171libbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/cpuModel.S
172libbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/displayCpu.c
173libbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/idtr.S
174libbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/page.c
175
176if HAS_SMP
177libbsp_a_LIBADD = appstart.$(OBJEXT)
178endif
179
180
181include $(top_srcdir)/../../../../automake/local.am
182include $(top_srcdir)/../../../../automake/subdirs.am
183include $(srcdir)/../../../../../../bsps/i386/pc386/headers.am
Note: See TracBrowser for help on using the repository browser.