Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Josh Poimboeuf | c207aee | 2017-06-28 10:11:06 -0500 | [diff] [blame] | 2 | OBJECT_FILES_NON_STANDARD_hibernate_asm_$(BITS).o := y |
| 3 | |
Joseph Cihula | 9b7b89e | 2009-03-30 14:03:01 -0700 | [diff] [blame] | 4 | # __restore_processor_state() restores %gs after S3 resume and so should not |
| 5 | # itself be stack-protected |
| 6 | nostackp := $(call cc-option, -fno-stack-protector) |
Peter Chubb | 00024be | 2009-07-08 13:20:13 +0200 | [diff] [blame] | 7 | CFLAGS_cpu.o := $(nostackp) |
Joseph Cihula | 9b7b89e | 2009-03-30 14:03:01 -0700 | [diff] [blame] | 8 | |
Sergio Luis | 08687ae | 2009-04-28 00:27:22 +0200 | [diff] [blame] | 9 | obj-$(CONFIG_PM_SLEEP) += cpu.o |
Rafael J. Wysocki | ef8b03f | 2008-02-09 23:24:09 +0100 | [diff] [blame] | 10 | obj-$(CONFIG_HIBERNATION) += hibernate_$(BITS).o hibernate_asm_$(BITS).o |