You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.2 KiB
Markdown
30 lines
1.2 KiB
Markdown
7 years ago
|
Configuring which patches are used
|
||
|
----------------------------------
|
||
|
|
||
|
This repository has two sets of patches - one set for the keyboard
|
||
|
changes and one for turning off the battery validation. The battery
|
||
|
patches are disabled by default, but are easy to enable.
|
||
|
|
||
|
Any combination of the two sets of patches can be enabled or disabled
|
||
|
(even including a version with no patches at all - to revert all changes)
|
||
|
|
||
|
There are several makefile targets that exist to help you configure which
|
||
|
patches are enabled. Choose one or more of the following commands to
|
||
|
configure as you want:
|
||
|
|
||
7 years ago
|
make patch_enable_battery clean # Uses the battery validate patch
|
||
|
make patch_disable_battery clean # Turns off the battery validate patch
|
||
|
make patch_enable_keyboard clean # Uses the keyboard patches
|
||
|
make patch_disable_keyboard clean # Turns off the keyboard patches
|
||
7 years ago
|
|
||
|
Behind the scenes
|
||
|
-----------------
|
||
|
|
||
|
Each hardware and EC firmware version combination needs its own set of
|
||
5 years ago
|
patches, which are stored in directories called "*.img.d". The Makefile
|
||
|
defines these patches into named groups ("KEYBOARD" and "BATTERY") which
|
||
|
can be enabled or disabled via a config file.
|
||
7 years ago
|
|
||
5 years ago
|
The enable and disable commands are simply updating the config file with
|
||
|
the appropriate settings.
|