From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757288AbYEAKtY (ORCPT ); Thu, 1 May 2008 06:49:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753722AbYEAKtQ (ORCPT ); Thu, 1 May 2008 06:49:16 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:49527 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752563AbYEAKtP (ORCPT ); Thu, 1 May 2008 06:49:15 -0400 From: "Rafael J. Wysocki" To: Sam Ravnborg , Ingo Molnar Subject: Re: [PATCH] fix rebuild of wakeup.bin Date: Thu, 1 May 2008 12:48:52 +0200 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) Cc: Roland McGrath , Pavel Machek , linux-kernel@vger.kernel.org, Thomas Gleixner , "H. Peter Anvin" References: <20080501010516.DD2FE26FA05@magilla.localdomain> <20080501093107.GA2392@uranus.ravnborg.org> In-Reply-To: <20080501093107.GA2392@uranus.ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805011248.53295.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, 1 of May 2008, Sam Ravnborg wrote: > 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. Thanks for fixing this! Ingo, please merge. > Signed-off-by: Sam Ravnborg > Cc: Rafael J. Wysocki > Cc: Pavel Machek > Cc: Thomas Gleixner > Cc: H. Peter Anvin > Cc: Ingo Molnar > Cc: Roland McGrath > --- > diff --git a/arch/x86/kernel/acpi/Makefile b/arch/x86/kernel/acpi/Makefile > index 7335959..fd5ca97 100644 > --- a/arch/x86/kernel/acpi/Makefile > +++ b/arch/x86/kernel/acpi/Makefile > @@ -10,5 +10,5 @@ endif > $(obj)/wakeup_rm.o: $(obj)/realmode/wakeup.bin > > $(obj)/realmode/wakeup.bin: FORCE > - $(Q)$(MAKE) $(build)=$(obj)/realmode $@ > + $(Q)$(MAKE) $(build)=$(obj)/realmode > > diff --git a/arch/x86/kernel/acpi/realmode/Makefile b/arch/x86/kernel/acpi/realmode/Makefile > index 0929008..1c31cc0 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 Thanks, Rafael