summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi/realmode
diff options
context:
space:
mode:
authorSam Ravnborg2008-05-01 11:31:07 +0200
committerIngo Molnar2008-05-04 20:04:45 +0200
commit4c6214c75a5aca5417156a47cd890b128c5f0637 (patch)
tree859e3135f0110a54fc351a114867b04dadaf6f20 /arch/x86/kernel/acpi/realmode
parentuml: fix gcc problem (diff)
downloadkernel-qcow2-linux-4c6214c75a5aca5417156a47cd890b128c5f0637.tar.gz
kernel-qcow2-linux-4c6214c75a5aca5417156a47cd890b128c5f0637.tar.xz
kernel-qcow2-linux-4c6214c75a5aca5417156a47cd890b128c5f0637.zip
kbuild, suspend, x86: fix rebuild of wakeup.bin
In kernel/acpi/realmode/Makefile use the 'always' variable to say that wakeup.bin should always be made. In acpi/Makefile we then do not need to specify the requested target and we avoid the message from make: `arch/x86/kernel/acpi/realmode/wakeup.bin' is up to date. Add wakeup.lds to list af targets to avoid rebuilding wakeup.bin - from Roland McGrath. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Rafael J. Wysocki <rjw@sisk.pl> Cc: Pavel Machek <pavel@suse.cz> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Roland McGrath <roland@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/acpi/realmode')
-rw-r--r--arch/x86/kernel/acpi/realmode/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/acpi/realmode/Makefile b/arch/x86/kernel/acpi/realmode/Makefile
index 092900854acc..1c31cc0e9def 100644
--- a/arch/x86/kernel/acpi/realmode/Makefile
+++ b/arch/x86/kernel/acpi/realmode/Makefile
@@ -6,7 +6,8 @@
# for more details.
#
-targets := wakeup.bin wakeup.elf
+always := wakeup.bin
+targets := wakeup.elf wakeup.lds
wakeup-y += wakeup.o wakemain.o video-mode.o copy.o
@@ -48,7 +49,7 @@ LDFLAGS_wakeup.elf := -T
CPPFLAGS_wakeup.lds += -P -C
-$(obj)/wakeup.elf: $(src)/wakeup.lds $(WAKEUP_OBJS) FORCE
+$(obj)/wakeup.elf: $(obj)/wakeup.lds $(WAKEUP_OBJS) FORCE
$(call if_changed,ld)
OBJCOPYFLAGS_wakeup.bin := -O binary