blob: a4701389562ca7f98016bd5176d9d40cabb0075a [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Josh Poimboeufc207aee2017-06-28 10:11:06 -05002OBJECT_FILES_NON_STANDARD_hibernate_asm_$(BITS).o := y
3
Joseph Cihula9b7b89e2009-03-30 14:03:01 -07004# __restore_processor_state() restores %gs after S3 resume and so should not
5# itself be stack-protected
6nostackp := $(call cc-option, -fno-stack-protector)
Peter Chubb00024be2009-07-08 13:20:13 +02007CFLAGS_cpu.o := $(nostackp)
Joseph Cihula9b7b89e2009-03-30 14:03:01 -07008
Sergio Luis08687ae2009-04-28 00:27:22 +02009obj-$(CONFIG_PM_SLEEP) += cpu.o
Rafael J. Wysockief8b03f2008-02-09 23:24:09 +010010obj-$(CONFIG_HIBERNATION) += hibernate_$(BITS).o hibernate_asm_$(BITS).o