Commit 4fbff78d authored by Alexandru Elisei's avatar Alexandru Elisei
Browse files

Makefile: Use correct objcopy binary when cross-compiling for x86_64

Use the compiler toolchain version of objcopy instead of the native one
when cross-compiling for the x86_64 architecture.
parent 51645dd5
......@@ -22,6 +22,7 @@ CC := $(CROSS_COMPILE)gcc
CFLAGS :=
LD := $(CROSS_COMPILE)ld
LDFLAGS :=
OBJCOPY := $(CROSS_COMPILE)objcopy
FIND := find
CSCOPE := cscope
......@@ -480,7 +481,7 @@ x86/bios/bios.bin.elf: x86/bios/entry.S x86/bios/e820.c x86/bios/int10.c x86/bio
x86/bios/bios.bin: x86/bios/bios.bin.elf
$(E) " OBJCOPY " $@
$(Q) objcopy -O binary -j .text x86/bios/bios.bin.elf x86/bios/bios.bin
$(Q) $(OBJCOPY) -O binary -j .text x86/bios/bios.bin.elf x86/bios/bios.bin
x86/bios/bios-rom.o: x86/bios/bios-rom.S x86/bios/bios.bin x86/bios/bios-rom.h
$(E) " CC " $@
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment