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

Last change on this file since b10caf8 was b10caf8, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 10, 2018 at 5:16:30 AM

bsps: Remove headers from librtemsbsp_a_SOURCES

This was used by the not supported "make dist".

This patch is a part of the BSP source reorganization.

Update #3285.

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