1 | ## |
---|
2 | ## |
---|
3 | |
---|
4 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
5 | |
---|
6 | # FIXME: We must not include *.cfg |
---|
7 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
8 | |
---|
9 | CLEANFILES = |
---|
10 | |
---|
11 | include $(top_srcdir)/../../../../automake/compile.am |
---|
12 | include $(top_srcdir)/../../bsp.am |
---|
13 | |
---|
14 | dist_project_lib_DATA = ../../../../../../bsps/i386/pc386/start/bsp_specs |
---|
15 | |
---|
16 | |
---|
17 | noinst_PROGRAMS = |
---|
18 | |
---|
19 | start.$(OBJEXT): ../../../../../../bsps/i386/pc386/start/start.S |
---|
20 | $(CPPASCOMPILE) -o $@ -c $< |
---|
21 | project_lib_DATA = start.$(OBJEXT) |
---|
22 | |
---|
23 | project_lib_DATA += linkcmds |
---|
24 | |
---|
25 | project_lib_LIBRARIES = librtemsbsp.a |
---|
26 | librtemsbsp_a_SOURCES = |
---|
27 | |
---|
28 | # clock |
---|
29 | librtemsbsp_a_SOURCES +=../../../../../../bsps/i386/pc386/clock/ckinit.c |
---|
30 | librtemsbsp_a_SOURCES +=../../../../../../bsps/i386/pc386/clock/todcfg.c |
---|
31 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/rtc/rtc-support.c |
---|
32 | |
---|
33 | if RTEMS_VGA |
---|
34 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/inch.c |
---|
35 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/outch.c |
---|
36 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/defkeymap.c |
---|
37 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/keyboard.c |
---|
38 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/pc_keyb.c |
---|
39 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/ps2_mouse.c |
---|
40 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/vgainit.c |
---|
41 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/vt.c |
---|
42 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/videoAsm.S |
---|
43 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/kbd_parser.c |
---|
44 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/vgacons.c |
---|
45 | if USE_VGA |
---|
46 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/fb_vga.c |
---|
47 | endif |
---|
48 | if USE_CIRRUS_GD5446 |
---|
49 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/fb_cirrus.c |
---|
50 | endif |
---|
51 | if USE_VBE_RM |
---|
52 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/fb_vesa_rm.c |
---|
53 | endif |
---|
54 | endif |
---|
55 | |
---|
56 | # console (non-graphics support) |
---|
57 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/serial_mouse_config.c |
---|
58 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/uart.c |
---|
59 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/tty_drv.c |
---|
60 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/realmode_int.c |
---|
61 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/legacy-console.c |
---|
62 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/console_select.c |
---|
63 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/console_control.c |
---|
64 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/conscfg.c |
---|
65 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/printk_support.c |
---|
66 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/exar17d15x.c |
---|
67 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/rtd316.c |
---|
68 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/uart_bus_pci.c |
---|
69 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/gdb_select.c |
---|
70 | |
---|
71 | # gdb |
---|
72 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/i386-stub.c |
---|
73 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/i386-stub-glue.c |
---|
74 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/console/gdb_glue.c |
---|
75 | |
---|
76 | # gnat |
---|
77 | |
---|
78 | # pci |
---|
79 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/pci/pcibios.c |
---|
80 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/pci/pci_io.c |
---|
81 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/pci/pci_bus_count.c |
---|
82 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/pci/pci_find_device.c |
---|
83 | |
---|
84 | # startup |
---|
85 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bsp_fatal_halt.c |
---|
86 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspgetworkarea.c |
---|
87 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspidle.S |
---|
88 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspstart.c |
---|
89 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspcmdline.c |
---|
90 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c |
---|
91 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/bspreset.c |
---|
92 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/idt.c |
---|
93 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/irq.c |
---|
94 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/irq_init.c |
---|
95 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/elcr.c |
---|
96 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c |
---|
97 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c |
---|
98 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/ldsegs.S |
---|
99 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/irq/irq_asm.S |
---|
100 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c |
---|
101 | |
---|
102 | # timer |
---|
103 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/btimer/btimer.c |
---|
104 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/btimer/timerisr.S |
---|
105 | |
---|
106 | if HAS_IDE |
---|
107 | # ide |
---|
108 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/ata/ide.c |
---|
109 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/ata/idecfg.c |
---|
110 | endif |
---|
111 | |
---|
112 | if HAS_SMP |
---|
113 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/getcpuid.c |
---|
114 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/smp-imps.c |
---|
115 | |
---|
116 | project_lib_DATA += appstart.$(OBJEXT) |
---|
117 | appcpustart.$(OBJEXT): ../../../../../../bsps/i386/pc386/start/start16.S |
---|
118 | $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $< |
---|
119 | |
---|
120 | appstart.$(OBJEXT): appcpustart.$(OBJEXT) |
---|
121 | $(LD) -r -N -T $(top_srcdir)/../../../../../../bsps/i386/pc386/start/linkcmds \ |
---|
122 | -Ttext 0x70000 -e app_processor_start -nostdlib \ |
---|
123 | -o appstart_tmp.exe $< |
---|
124 | $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin |
---|
125 | $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@ |
---|
126 | endif |
---|
127 | |
---|
128 | if HAS_NETWORKING |
---|
129 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/net/3c509.c |
---|
130 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/net/elink.c |
---|
131 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/net/ne2000.c |
---|
132 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/net/wd8003.c |
---|
133 | endif |
---|
134 | |
---|
135 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/cache/cache.c |
---|
136 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/cpuModel.S |
---|
137 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/displayCpu.c |
---|
138 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/idtr.S |
---|
139 | librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/page.c |
---|
140 | |
---|
141 | if HAS_SMP |
---|
142 | librtemsbsp_a_LIBADD = appstart.$(OBJEXT) |
---|
143 | endif |
---|
144 | |
---|
145 | |
---|
146 | include $(top_srcdir)/../../../../automake/local.am |
---|
147 | include $(srcdir)/../../../../../../bsps/shared/irq-sources.am |
---|
148 | include $(srcdir)/../../../../../../bsps/shared/shared-sources.am |
---|
149 | include $(top_srcdir)/../../../../automake/subdirs.am |
---|
150 | include $(srcdir)/../../../../../../bsps/i386/pc386/headers.am |
---|