diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-12-15 17:55:11 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-12-15 17:55:11 +0100 |
| commit | b5c513ffb03df350f29272277716bd3d5bf05a00 (patch) | |
| tree | aeb3cb2ddddf5d42b3f936087a3c0bcfee6e31e2 /kconfiglib.py | |
| parent | 90cb539935c09975e234efcdab063108127fd89e (diff) | |
Make it clear that makefile.patch needs -p1
Not passing -p1 causes the root Makefile to be patched instead of
scripts/kconfig/Makefile, as discovered in
https://github.com/ulfalizer/Kconfiglib/issues/32.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 4d763a3..4b2ec2c 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -88,10 +88,13 @@ Using Kconfiglib on the Linux kernel with the Makefile targets ============================================================== For the Linux kernel, a handy interface is provided by the -scripts/kconfig/Makefile patch. It can be applied by running the following -command in the kernel root: +scripts/kconfig/Makefile patch. Apply it with either 'git am' or the 'patch' +utility: $ wget -qO- https://raw.githubusercontent.com/ulfalizer/Kconfiglib/master/makefile.patch | git am + $ wget -qO- https://raw.githubusercontent.com/ulfalizer/Kconfiglib/master/makefile.patch | patch -p1 + +Warning: Not passing -p1 to patch will cause the wrong file to be patched. Please tell me if the patch does not apply. It should be trivial to apply manually, as it's just a block of text that needs to be inserted near the other @@ -101,10 +104,10 @@ If you do not wish to install Kconfiglib via pip, the Makefile patch is set up so that you can also just clone Kconfiglib into the kernel root: $ git clone git://github.com/ulfalizer/Kconfiglib.git - $ git am Kconfiglib/makefile.patch + $ git am Kconfiglib/makefile.patch (or 'patch -p1 < Kconfiglib/makefile.patch') -(Warning: The directory name Kconfiglib/ is significant in this case, because -it's added to PYTHONPATH by the new targets in makefile.patch.) +Warning: The directory name Kconfiglib/ is significant in this case, because +it's added to PYTHONPATH by the new targets in makefile.patch. Look further down for a motivation for the Makefile patch and for instructions on how you can use Kconfiglib without it. |
