Linux dd does not support sizes specified in hex...

Apparantly a BSD thing to support hex, failed on Linux when extracting isr
vectors and data from original firmware.
master
Adam Engstrom 2017-01-06 11:25:52 +01:00
parent 055714d9b2
commit 3fd6d33ff0
1 changed files with 2 additions and 2 deletions

View File

@ -13,11 +13,11 @@ build/orig_fw.bin: orig_fw.hex
build/section_isr.bin: build/orig_fw.bin
@echo "Create isr vectors binary..."
$(QUIET)dd if=$< of=$@ bs=1 skip=0x7fe0 count=0x20 2> /dev/null
$(QUIET)dd if=$< of=$@ bs=1 skip=32736 count=32 status=none
build/section_data.bin: build/orig_fw.bin
@echo "Create data section binary..."
$(QUIET)dd if=$< of=$@ bs=1 count=0x2780 2> /dev/null
$(QUIET)dd if=$< of=$@ bs=1 count=10112 status=none
build/section_data_patch.bin: build/section_data.bin patch.py
@echo "Patching data section..."