source: mainline/defaults/amd64/Makefile.config@ 745a3f1

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 745a3f1 was a0a273e, checked in by jzr <zarevucky.jiri@…>, 8 years ago

Unify compiler handling a bit.

Most compiler flags have been changed from GCC-specific to "common",
since code might build but not work properly without them.
Clang still rejects some of the flags, but at least we can see
the incompatibilities now.

Explicit —target flag was removed from clang, in favor of using clang
through a target-specific symlink. This allows clang to automatically
find correct assembler and linker, if it needs to.

Additionally, assembly language files are now compiled using $(CC)
whether or not they need the preprocessor. This allows clang to build
.s files using its integrated assembler.

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[4850560]1# Platform
2PLATFORM = amd64
3
[4bf0926e]4# Kernel memory model
5MEMORY_MODEL = kernel
6
[4850560]7# Ramdisk format
[d42a0bd]8RDFMT = ext4fs
[4850560]9
10# Compiler
11COMPILER = gcc_cross
12
[a0a273e]13# In case compiler is clang, whether or not to use its integrated assembler.
14INTEGRATED_AS = default
15
[4850560]16# Debug build
17CONFIG_DEBUG = y
18
[31fb9a0]19# Deadlock detection support for spinlocks
20CONFIG_DEBUG_SPINLOCK = y
21
[4850560]22# Support for SMP
23CONFIG_SMP = y
24
25# Lazy FPU context switching
26CONFIG_FPU_LAZY = y
27
28# Support for userspace debuggers
[31fb9a0]29CONFIG_UDEBUG = y
[4850560]30
31# Kernel console support
32CONFIG_KCONSOLE = y
33
[e2b762ec]34# Kernel symbol information
35CONFIG_SYMTAB = y
36
[4850560]37# Detailed kernel logging
38CONFIG_LOG = n
39
[ad8f03d2]40# Kernel function tracing
41CONFIG_TRACE = n
42
[31fb9a0]43# Compile kernel tests
44CONFIG_TEST = y
[4850560]45
[452e91b]46# Kernel RCU implementation
47RCU = PREEMPT_A
48
[eb56bd7]49# Input device class
50CONFIG_HID_IN = generic
[4850560]51
[eb56bd7]52# Output device class
53CONFIG_HID_OUT = generic
[31fb9a0]54
55# PC keyboard support
56CONFIG_PC_KBD = y
57
58# EGA support
59CONFIG_EGA = y
[4850560]60
61# Framebuffer support
62CONFIG_FB = y
63
[421c833]64# Default framebuffer mode
[19a9e3a]65CONFIG_BFB_MODE = 1024x768
[4850560]66
[421c833]67# Default framebuffer depth
[1f5c9c96]68CONFIG_BFB_BPP = 16
[1641eb0]69
[1d40c93d]70# Include development files (headers, libraries)
71CONFIG_DEVEL_FILES = y
72
[ca2815e]73# OHCI root hub power switch, ganged is enough
74OHCI_POWER_SWITCH = ganged
[83285fd]75
76# GRUB boot loader architecture
77GRUB_ARCH = pc
[2c52073]78
79# Optimization level
80OPTIMIZATION = 3
Note: See TracBrowser for help on using the repository browser.