From 0b251df68d2111760ae2324da1f4618c5f85bacf Mon Sep 17 00:00:00 2001 From: Kimon Hoffmann Date: Wed, 17 May 2023 17:37:10 +0200 Subject: [PATCH] Enable using custom objcopy during build. (#291) Signed-off-by: Kimon Hoffmann --- build32/Makefile | 3 ++- build64/Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build32/Makefile b/build32/Makefile index 08f269d..107ba80 100644 --- a/build32/Makefile +++ b/build32/Makefile @@ -1,5 +1,6 @@ AS = as -32 CC = gcc +OBJCOPY = objcopy GIT = git @@ -142,7 +143,7 @@ memtest_shared: $(OBJS) ldscripts/memtest_shared.lds Makefile $(LD) -shared -Bsymbolic -T ldscripts/memtest_shared.lds -o $@ $(OBJS) memtest_shared.bin: memtest_shared - objcopy -O binary $< memtest_shared.bin + $(OBJCOPY) -O binary $< memtest_shared.bin memtest.bin: memtest_shared.bin boot/bootsect.o boot/setup.o ldscripts/memtest_bin.lds $(eval SIZES=$(shell size -B -d memtest_shared | grep memtest_shared)) diff --git a/build64/Makefile b/build64/Makefile index 4457013..f0ef164 100644 --- a/build64/Makefile +++ b/build64/Makefile @@ -1,5 +1,6 @@ AS = as -64 CC = gcc +OBJCOPY = objcopy GIT = git @@ -141,7 +142,7 @@ memtest_shared: $(OBJS) ldscripts/memtest_shared.lds Makefile $(LD) -shared -Bsymbolic -T ldscripts/memtest_shared.lds -o $@ $(OBJS) memtest_shared.bin: memtest_shared - objcopy -O binary $< memtest_shared.bin + $(OBJCOPY) -O binary $< memtest_shared.bin memtest.bin: memtest_shared.bin boot/bootsect.o boot/setup.o ldscripts/memtest_bin.lds $(eval SIZES=$(shell size -B -d memtest_shared | grep memtest_shared))