diff options
author | Jarkko Sakkinen <jarkko.sakkinen@intel.com> | 2012-05-09 16:25:06 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-05-09 16:32:17 -0400 |
commit | c5403aed044e23f8d1ecdf05d0ff120314186527 (patch) | |
tree | 7c0a3dbfd8a75bbbf48ba581aaed2fef0581f040 /arch/x86/realmode | |
parent | cda846f101fb1396b6924f1d9b68ac3d42de5403 (diff) |
x86, realmode: build fix: remove duplicate build
Real-mode binary was built twice. This patch fixes
the issue by making realmode.relocs as target for
realmode.bin.
[ hpa: removed the direct dependency on realmode.relocs in
arch/x86/realmode/Makefile ]
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
Link: http://lkml.kernel.org/r/1336595106-21135-1-git-send-email-jarkko.sakkinen@intel.com
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/realmode')
-rw-r--r-- | arch/x86/realmode/Makefile | 5 | ||||
-rw-r--r-- | arch/x86/realmode/rm/Makefile | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/realmode/Makefile b/arch/x86/realmode/Makefile index f22a4f8d99d6..a05b3aca64ad 100644 --- a/arch/x86/realmode/Makefile +++ b/arch/x86/realmode/Makefile | |||
@@ -11,10 +11,7 @@ subdir- := rm | |||
11 | 11 | ||
12 | obj-y += rmpiggy.o | 12 | obj-y += rmpiggy.o |
13 | 13 | ||
14 | $(obj)/rmpiggy.o: $(obj)/rm/realmode.relocs $(obj)/rm/realmode.bin | 14 | $(obj)/rmpiggy.o: $(obj)/rm/realmode.bin |
15 | 15 | ||
16 | $(obj)/rm/realmode.bin: FORCE | 16 | $(obj)/rm/realmode.bin: FORCE |
17 | $(Q)$(MAKE) $(build)=$(obj)/rm $@ | 17 | $(Q)$(MAKE) $(build)=$(obj)/rm $@ |
18 | |||
19 | $(obj)/rm/realmode.relocs: FORCE | ||
20 | $(Q)$(MAKE) $(build)=$(obj)/rm $@ | ||
diff --git a/arch/x86/realmode/rm/Makefile b/arch/x86/realmode/rm/Makefile index de40bc44b92f..1c1d3d3bbee4 100644 --- a/arch/x86/realmode/rm/Makefile +++ b/arch/x86/realmode/rm/Makefile | |||
@@ -48,7 +48,7 @@ $(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE | |||
48 | 48 | ||
49 | OBJCOPYFLAGS_realmode.bin := -O binary | 49 | OBJCOPYFLAGS_realmode.bin := -O binary |
50 | 50 | ||
51 | $(obj)/realmode.bin: $(obj)/realmode.elf | 51 | $(obj)/realmode.bin: $(obj)/realmode.elf $(obj)/realmode.relocs |
52 | $(call if_changed,objcopy) | 52 | $(call if_changed,objcopy) |
53 | 53 | ||
54 | quiet_cmd_relocs = RELOCS $@ | 54 | quiet_cmd_relocs = RELOCS $@ |