aboutsummaryrefslogtreecommitdiffstats
path: root/diag/mbr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'diag/mbr/Makefile')
-rw-r--r--diag/mbr/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/diag/mbr/Makefile b/diag/mbr/Makefile
index 79ff9f01..5b7153c9 100644
--- a/diag/mbr/Makefile
+++ b/diag/mbr/Makefile
@@ -15,10 +15,9 @@
# Makefile for MBR
#
-topdir = ../..
mbrdir = $(topdir)/mbr
-MAKEDIR = $(topdir)/mk
include $(MAKEDIR)/embedded.mk
+VPATH = $(SRC)
all: handoff.bin
@@ -27,7 +26,7 @@ all: handoff.bin
.PRECIOUS: %.elf
%.elf: %.o $(mbrdir)/mbr.ld
- $(LD) $(LDFLAGS) -T $(mbrdir)/mbr.ld -e _start -o $@ $<
+ $(LD) $(LDFLAGS) -T $(mbrdir)/$(ARCH)/mbr.ld -e _start -o $@ $<
%.bin: %.elf $(mbrdir)/checksize.pl
$(OBJCOPY) -O binary $< $@