keirf / flashfloppy

Floppy drive emulator for Gotek hardware
Other
1.33k stars 193 forks source link

building the firmware from official source code does not generate the same official firmware #794

Closed gfernval closed 1 year ago

gfernval commented 1 year ago

I have downloaded the file https://github.com/keirf/flashfloppy/archive/refs/tags/v3.39.zip (official 3.39 release) and compiled it in Ubuntu 20.04 according to the wiki docs:

sudo apt -y install git gcc-arm-none-eabi python3-pip srecord stm32flash zip unzip wget

python3 -m pip install --user crcmod intelhex

unzip flashfloppy-3.39.zip

cd flashfloppy-3.39

make dist

It compiles succesfully without problems, but the firmware .hex files generated are not identical to the official firmware. What is the reason? Different time and date used in the building of the official firmware? Different compiler versions used in the building? Different HxC_Compat_Mode-v9-FF.zip downloaded from the web?

keirf commented 1 year ago

Indeed: different compiler, different compile date.

More importantly by default version is set to the git tree hash. If you want to specify a version number you need make dist VER=3.39 for example.