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
RevLine 
[c21d4d6]1#
[581a54a]2# Copyright (c) 2021 Jiri Svoboda
[c21d4d6]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
[63660a3]30_march = '-march=' + '-'.join(PROCESSOR.split('_'))
31if PROCESSOR == 'core'
32 # FIXME
33 _march = '-march=prescott'
34endif
35
36
37arch_uspace_c_args = [
[7eec25fc]38 _march,
[63660a3]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
[c89ae25]53arch_kernel_link_args = [ '-nostdlib' ]
[63660a3]54arch_uspace_link_args = [ '-nostdlib', '-lgcc' ]
55
[581a54a]56# Binaries to be included in a barebone build
[63660a3]57rd_essential += [
58 'app/edit',
59 'app/mixerctl',
60 'app/wavplay',
61
62 'srv/audio/hound',
[581a54a]63]
[63660a3]64
[581a54a]65# Drivers to be included in a barebone build
66rd_essential_drv += [
[63660a3]67 'drv/intctl/apic',
68 'drv/intctl/i8259',
69 'drv/platform/pc',
[59c0f478]70 'drv/block/isa-ide',
[63660a3]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]
[581a54a]78
79# Drivers to be included in a regular build
80rd_drv += [
81 'drv/audio/hdaudio',
82 'drv/audio/sb16',
83 'drv/block/ahci',
[59c0f478]84 'drv/block/isa-ide',
[dc5647e]85 'drv/block/pc-floppy',
[443695e]86 'drv/block/pci-ide',
[581a54a]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.