blob: 1f9331dbdb2982c135e1d6bbd04034cc29f8328c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
## This is a generated file, manual edits might be lost
## .config
#
# Automatically generated file; DO NOT EDIT.
# Main menu
#
#
# Toolchain
#
CONFIG_CFLAGS="-g -Og"
CONFIG_CXXFLAGS="-g -Og"
CONFIG_LDFLAGS=""
# end of Toolchain
#
# Target
#
CONFIG_ARCH_i686=y
# end of Target
#
# Devices
#
CONFIG_PIC_8259=y
CONFIG_UART_16550=y
CONFIG_VGA_TEXT_MODE=y
CONFIG_KB_PS2=y
# end of Devices
## toolchain.mk
ARCH=i686
# define compiler, linker, archiver and strip and their flags
${ARCH}_AS := i686-elf-as
${ARCH}_CC := i686-elf-gcc
${ARCH}_CCID := $(shell ${${ARCH}_CC} --version | head -n1)
${ARCH}_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer \
-D__ARCH__="${ARCH}" -ffreestanding -std=gnu11 -mgeneral-regs-only \
$(shell echo ${CONFIG_CFLAGS})
${ARCH}_LD := i686-elf-ld
${ARCH}_LDID := $(shell ${${ARCH}_LD} --version | head -n1)
${ARCH}_LDFLAGS := -static -nostdlib \
$(shell echo ${CONFIG_LDFLAGS})
${ARCH}_AR := i686-elf-ar
${ARCH}_ARFLAGS := -crus
${ARCH}_STRIP := i686-elf-strip
# define compiler and flags for test targets
HOST_CC := gcc
HOST_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion \
${CFLAGS}
HOST_CXX := g++
HOST_CXXFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -g -Og \
$(shell pkg-config --cflags gtest gtest_main gmock) \
${CXXFLAGS}
HOST_LDFLAGS := $(shell pkg-config --libs gtest gtest_main gmock)
# emulator name and flags
QEMU := qemu-system-i386 -accel kvm -machine pc
|