Compare commits

...

4 Commits

Author SHA1 Message Date
Hamish Coleman 7993bf2f2c Make the config update targets far more robust 2 years ago
Hamish Coleman 347e017cf9 Investigate CI build options 2 years ago
Hamish Coleman 21681cf063 Fix github CI checkout 2 years ago
Hamish Coleman d73e2f83dc Minor documentation and test settings improvements 2 years ago

@ -16,6 +16,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fix Checkout
run: |
git fetch --force --tags
- name: Prepare environment
run: |
@ -24,12 +29,12 @@ jobs:
- name: Test with both patches enabled
run: |
make patch_enable_battery
make patch_enable_keyboard patch_enable_battery
make test
- name: Test with batteryonly targets
run: |
make patch_disable_keyboard
make patch_disable_keyboard patch_enable_battery
make test.batteryonly
- name: Test with default build

@ -133,7 +133,6 @@ install.radare.projects:
mkdir -p ~/.config/radare2/projects/x260.R02HT29W.d/
cp -fs $(PWD)/radare/x260.R02HT29W ~/.config/radare2/projects
.config:
cp defconfig .config
include .config
@ -151,21 +150,34 @@ PATCHES-$(CONFIG_BATTERY) += \
# - optionally, add a patch_enable/patch_disable stanza
# - however, that will get messy quickly, so perhaps a real config target
# Update the configuration
# $1 is the Config option to edit
# $2 is the new value
define config_set
sed -E 's/$(1)\s*=.*//' --in-place .config
echo "$(1) = $(2)" >> .config
endef
#
# These enable and disable targets change which patches are configured to be
# applied.
#
.PHONY: patch_enable_battery
patch_enable_battery:
sed -E 's/CONFIG_BATTERY.+/CONFIG_BATTERY = y/' --in-place .config
$(call config_set,CONFIG_BATTERY,y)
.PHONY: patch_disable_battery
patch_disable_battery:
sed -E 's/CONFIG_BATTERY.+/CONFIG_BATTERY = n/' --in-place .config
$(call config_set,CONFIG_BATTERY,n)
.PHONY: patch_enable_keyboard
patch_enable_keyboard:
sed -E 's/CONFIG_KEYBOARD.+/CONFIG_KEYBOARD = y/' --in-place .config
$(call config_set,CONFIG_KEYBOARD,y)
.PHONY: patch_disable_keyboard
patch_disable_keyboard:
sed -E 's/CONFIG_KEYBOARD.+/CONFIG_KEYBOARD = n/' --in-place .config
$(call config_set,CONFIG_KEYBOARD,n)
# TODO - the scripts/describe output depends on Descriptions.txt -

@ -72,7 +72,8 @@ warning message.
```
sudo apt-get update
sudo apt-get install wget build-essential git mtools libssl-dev
sudo apt-get install make
sudo make build-deps
```
On Fedora, you could install it with dnf:
@ -86,13 +87,14 @@ warning message.
2. Clone a copy of this repo on to your computer:
```
cd ~/
git clone https://github.com/hamishcoleman/thinkpad-ec
```
3. Change to the directory created by the clone:
```
cd thinkpad-ec
cd ~/thinkpad-ec
```
4. Show the list of laptops and USB image file names:

Loading…
Cancel
Save