Skip to content

Commit

Permalink
Fix "EDID length 127 is not a multiple of 128"
Browse files Browse the repository at this point in the history
Fix issue EDID bin length issue that apperead on recent versions of gcc
or objcopy (see akatrevorjaygh-21). The fix has been originally suggested by
marwanramadan.
  • Loading branch information
diegorondini committed Sep 20, 2022
1 parent 31a6f80 commit 4a0fac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 $^ $@
Expand Down

0 comments on commit 4a0fac8

Please sign in to comment.