Root/
| 1 | First build |
| 2 | ----------- |
| 3 | |
| 4 | bzr checkout -r 3494 lp:kicad kicad.bzr |
| 5 | cd kicad.bzr |
| 6 | ln -s wherever/eda-tools/kicad-patches patches |
| 7 | quilt push -a |
| 8 | cmake -DKICAD_TESTING_VERSION=ON . |
| 9 | make -j 5 |
| 10 | make install |
| 11 | |
| 12 | |
| 13 | Rebuild with new/changed patches |
| 14 | -------------------------------- |
| 15 | |
| 16 | # update the patches |
| 17 | git pull |
| 18 | |
| 19 | # rebuild KiCad |
| 20 | cd wherever/kicad.bzr |
| 21 | quilt pop -af |
| 22 | quilt push -a |
| 23 | cmake -DKICAD_TESTING_VERSION=ON . |
| 24 | make -j 5 |
| 25 | make install |
| 26 | |
| 27 | |
| 28 | Rebuild with a new version of KiCad |
| 29 | ----------------------------------- |
| 30 | |
| 31 | cd wherever/kicad.bzr |
| 32 | quilt pop -a |
| 33 | bzr update |
| 34 | bzr update -r 3494 # if different from latest |
| 35 | quilt push -a |
| 36 | cmake -DKICAD_TESTING_VERSION=ON . |
| 37 | make -j 5 |
| 38 | make install |
| 39 | |
| 40 | |
| 41 | Alternative process to uplevel patches to latest KiCad |
| 42 | ------------------------------------------------------ |
| 43 | |
| 44 | git clone git@projects.qi-hardware.com:eda-tools.git |
| 45 | |
| 46 | bzr branch lp:kicad |
| 47 | cp -a kicad kicad.<latest_kicad_rev> |
| 48 | cd kicad |
| 49 | |
| 50 | # apply patches manually |
| 51 | patch --dry-run -p1 < ../eda-tools/kicad-patches/cmdline_{new,common,eeschema,pcbnew}.patch |
| 52 | # check with --dry-run, apply carefully, go through .rej files |
| 53 | # delete all .rej and .orig files |
| 54 | |
| 55 | # build latest KiCad with upleveled patches |
| 56 | cmake -DKICAD_TESTING_VERSION=ON . |
| 57 | make -j 5 |
| 58 | |
| 59 | # test cmdline functionality |
| 60 | cd ../eda-tools/kicad-cmdline-testing |
| 61 | ./kicmd_test clean |
| 62 | ./kicmd_test test |
| 63 | # check that the output files look right, no crashes, no dialogs and |
| 64 | # that a subsequent ./kicmd_test clean will find and delete all |
| 65 | # expected files |
| 66 | |
| 67 | ./eda-tools/kicad-patches/kicad_diff.sh <latest_kicad_rev> |
| 68 | # check patches, move to eda-tools/kicad-patches, update doc, check |
| 69 | # that it applies clean, commit |
| 70 |
Branches:
master
