blob: 6a11c12d9665ead1ffc7a481f546f4f25ee518bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# SPDX-License-Identifier: GPL-2.0-or-later
# Early physical-address execution environment. It deliberately has no heap,
# exceptions, RTTI, thread-safe statics, or PIE/GOT assumptions.
PHYS_CFLAGS := $(WARNINGS) -Os -g -ffreestanding -nostdlib \
-fno-pie -fno-stack-protector $(TOOLCHAIN_CFLAGS) \
$(KCPPFLAGS) $(INCLUDES) -I$(BUILD)/generated
PHYS_CXXFLAGS := $(PHYS_CFLAGS) $(TOOLCHAIN_CXXFLAGS) -std=c++23 \
-fno-exceptions -fno-rtti -fno-use-cxa-atexit \
-fno-threadsafe-statics
PHYS_ASFLAGS := $(PHYS_CFLAGS)
|