Enable using custom objcopy during build. (#291)

Signed-off-by: Kimon Hoffmann <Kimon.Hoffmann@lawo.com>
This commit is contained in:
Kimon Hoffmann 2023-05-17 17:37:10 +02:00 committed by GitHub
parent 9e3958714b
commit 0b251df68d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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))

View File

@ -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))