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