compiling with gcc "-O9" flag (gcc 6.3.1, Fedora core 24) finds more uninitialized variables (which causes the build to fail). I've attached a patch that fixes these, if you are interested.
NOR SPI flash driver missing EON and ISSI flash chips
uninitialized var in src/target/cortex_a.c causes build to stop
ath79 flash driver requires CPU address, where core driver passes offset