From 4a0fac8c390ddb1da3a942cb077ca7b2d608a0d0 Mon Sep 17 00:00:00 2001 From: Diego Rondini Date: Tue, 20 Sep 2022 10:20:42 +0200 Subject: [PATCH] Fix "EDID length 127 is not a multiple of 128" Fix issue EDID bin length issue that apperead on recent versions of gcc or objcopy (see gh-21). The fix has been originally suggested by marwanramadan. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 693bdbd..8c4d039 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ clean: cc -c -DCRC="0x00" -o $@ $^ %.bin.nocrc: %.o - objcopy -Obinary $^ $@ + objcopy -j .data -Obinary $^ $@ %.crc: %.bin.nocrc cat $^ | edid-decode \ @@ -26,7 +26,7 @@ clean: cc -c -DCRC="$$(cat $*.crc)" -o $@ $*.S %.bin: %.p - objcopy -Obinary $^ $@ + objcopy -j .data -Obinary $^ $@ %.bin.ihex: %.p objcopy -Oihex $^ $@