]> git.saurik.com Git - apple/xnu.git/blame - iokit/conf/Makefile.arm64
xnu-7195.81.3.tar.gz
[apple/xnu.git] / iokit / conf / Makefile.arm64
CommitLineData
5ba3f43e
A
1######################################################################
2#BEGIN Machine dependent Makefile fragment for arm
3######################################################################
f427ee49
A
4#
5# XXX: CFLAGS
6#
7CWARNFLAGS = $(CWARNFLAGS_STD) -Wno-unused-parameter -Wshorten-64-to-32 -Wimplicit-int-conversion
8CXXWARNFLAGS = $(CXXWARNFLAGS_STD) -Wno-unused-parameter -Wno-cast-qual -Wno-shadow -Wshorten-64-to-32 -Wimplicit-int-conversion
5ba3f43e
A
9
10# Files that must go in the __HIB segment:
f427ee49
A
11UNCONFIGURED_HIB_FILES= \
12 IOHibernateRestoreKernel.o
13
14HIB_FILES=$(filter $(UNCONFIGURED_HIB_FILES),$(OBJS))
15
16# Unconfigured __HIB files must be Mach-O for "setsegname"
17# KASAN must be disabled for unconfigured __HIB files
18# because the kasan runtime isn't available during hibernation resume
19IOHibernateRestoreKernel.o_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG) -fno-sanitize=address -UKASAN
20# Stack protector and stack check must be disabled because the stack protector runtime isn't available
21IOHibernateRestoreKernel.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check
f427ee49
A
22
23IOHibernateIO.cpo_CFLAGS_ADD += -I$(SRCROOT)/osfmk
24IOHibernateRestoreKernel.o_CFLAGS_ADD += -I$(SRCROOT)/osfmk
5ba3f43e
A
25
26######################################################################
27#END Machine dependent Makefile fragment for arm
28######################################################################