Improve version patching in Makefile

This commit is contained in:
GaryOderNichts 2024-04-14 19:14:40 +02:00
parent 22562059d8
commit 4c2d3eef36
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ patch: unpack
@echo "Patching versions..."
# patch version to 254.0.0 (blob_header.bin is big endian, VER_.bin is little endian)
@printf '\xfe\x00\x00\x00' | dd of=unpacked/blob_header.bin bs=1 seek=0 conv=notrunc
@printf '\x00\x00\x00\xfe' | dd of=unpacked/VER_.bin bs=1 seek=0 conv=notrunc
@env printf '\xfe\x00\x00\x00' | dd of=unpacked/blob_header.bin bs=1 seek=0 count=4 conv=notrunc
@env printf '\x00\x00\x00\xfe' | dd of=unpacked/VER_.bin bs=1 seek=0 count=4 conv=notrunc
pack: patch
@echo "Packing firmware..."