Sort constants in csr generation.
authorTim 'mithro' Ansell <mithro@mithis.com>
Sat, 26 Sep 2015 07:57:43 +0000 (17:57 +1000)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sun, 27 Sep 2015 03:04:28 +0000 (11:04 +0800)
commitd628c147ecb92c871cc68e2f29511c600861fcb9
tree099e7b000bc01d7b383b44c2a9f22f5b2c3b3111
parent4fe0f6017cfd3bb463db0facc80185bef18fb12a
Sort constants in csr generation.

Previously the order of constant output depended on Python's hashing order
which changes every run. This caused the file to change every run.

With this change the csr.h file will always be the same. This can be verified
this with the following;
```bash
 CSR=software/include/generated/csr.h
 for i in 1 2 3 4 5 6; do
   rm -f $CSR; python make.py build-headers
   cp $CSR $CSR.$i
 done
 md5sum $CSR.*
```
make.py