source: mainline/meson/arch/ia32/meson.build

Last change on this file was dc5647e, checked in by Jiri Svoboda <jiri@…>, 12 months ago

PC floppy disk driver

Bare minimum implemented.

  • Property mode set to 100644
File size: 3.0 KB
Line 
1#
2# Copyright (c) 2021 Jiri Svoboda
3# Copyright (c) 2019 Jiří Zárevúcky
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9#
10# - Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer.
12# - Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution.
15# - The name of the author may not be used to endorse or promote products
16# derived from this software without specific prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29
30_march = '-march=' + '-'.join(PROCESSOR.split('_'))
31if PROCESSOR == 'core'
32 # FIXME
33 _march = '-march=prescott'
34endif
35
36
37arch_uspace_c_args = [
38 _march,
39 '-D__LE__',
40 '-mno-tls-direct-seg-refs',
41 '-fno-omit-frame-pointer',
42]
43
44arch_kernel_c_args = arch_uspace_c_args + [
45 _march,
46 '-mno-mmx',
47 '-mno-sse',
48 '-mno-sse2',
49 '-mno-sse3',
50 '-mno-3dnow',
51]
52
53arch_kernel_link_args = [ '-nostdlib' ]
54arch_uspace_link_args = [ '-nostdlib', '-lgcc' ]
55
56# Binaries to be included in a barebone build
57rd_essential += [
58 'app/edit',
59 'app/mixerctl',
60 'app/wavplay',
61
62 'srv/audio/hound',
63]
64
65# Drivers to be included in a barebone build
66rd_essential_drv += [
67 'drv/intctl/apic',
68 'drv/intctl/i8259',
69 'drv/platform/pc',
70 'drv/block/isa-ide',
71 'drv/bus/pci/pciintel',
72 'drv/bus/isa',
73 'drv/audio/sb16',
74 'drv/char/i8042',
75 'drv/hid/ps2mouse',
76 'drv/hid/xtkbd',
77]
78
79# Drivers to be included in a regular build
80rd_drv += [
81 'drv/audio/hdaudio',
82 'drv/audio/sb16',
83 'drv/block/ahci',
84 'drv/block/isa-ide',
85 'drv/block/pc-floppy',
86 'drv/block/pci-ide',
87 'drv/block/usbmast',
88 'drv/block/virtio-blk',
89 'drv/bus/isa',
90 'drv/bus/pci/pciintel',
91 'drv/bus/usb/ehci',
92 'drv/bus/usb/ohci',
93 'drv/bus/usb/uhci',
94 'drv/bus/usb/usbdiag',
95 'drv/bus/usb/usbflbk',
96 'drv/bus/usb/usbhub',
97 'drv/bus/usb/usbmid',
98 'drv/bus/usb/vhc',
99 'drv/bus/usb/xhci',
100 'drv/char/i8042',
101 'drv/char/ns8250',
102 'drv/char/pc-lpt',
103 'drv/hid/ps2mouse',
104 'drv/hid/xtkbd',
105 'drv/hid/usbhid',
106 'drv/intctl/apic',
107 'drv/intctl/i8259',
108 'drv/nic/ar9271',
109 'drv/nic/e1k',
110 'drv/nic/ne2k',
111 'drv/nic/rtl8139',
112 'drv/nic/rtl8169',
113 'drv/nic/virtio-net',
114 'drv/platform/pc',
115 'drv/time/cmos-rtc',
116]
Note: See TracBrowser for help on using the repository browser.