Root/kicad-patches/README

1Prerequisites
2-------------
3
4On Ubuntu and similar:
5
6apt-get build-dep kicad
7
8
9First build
10-----------
11
12bzr checkout -r 3494 lp:kicad kicad.bzr
13cd kicad.bzr
14ln -s wherever/eda-tools/kicad-patches patches
15quilt push -a
16cmake -DKICAD_TESTING_VERSION=ON .
17make -j 5
18make install
19
20
21Rebuild with new/changed patches
22--------------------------------
23
24# update the patches
25git pull
26
27# rebuild KiCad
28cd wherever/kicad.bzr
29quilt pop -af
30quilt push -a
31cmake -DKICAD_TESTING_VERSION=ON .
32make -j 5
33make install
34
35
36Rebuild with a new version of KiCad
37-----------------------------------
38
39cd wherever/kicad.bzr
40quilt pop -a
41bzr update
42bzr update -r 3494 # if different from latest
43quilt push -a
44cmake -DKICAD_TESTING_VERSION=ON .
45make -j 5
46make install
47
48
49Alternative process to uplevel patches to latest KiCad
50------------------------------------------------------
51
52git clone git@projects.qi-hardware.com:eda-tools.git
53
54bzr branch lp:kicad
55cp -a kicad kicad.<latest_kicad_rev>
56cd kicad
57
58# apply patches manually
59patch --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
64cmake -DKICAD_TESTING_VERSION=ON .
65make -j 5
66
67# test cmdline functionality
68cd ../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

Archive Download this file

Branches:
master



interactive