Commit Graph

452 Commits

Author SHA1 Message Date
Hamish Coleman
390f5bb659 Cannot error on unset variables and at the same time process maybe-empty commandline args 2017-06-30 11:04:48 +08:00
Hamish Coleman
46cb7c09a8 Add img extraction to the FL2_copyIMG script 2017-06-30 09:48:04 +08:00
Hamish Coleman
5a46265e58 Convert FL2_copyIMG to hand around buffer refs, not copy buffers - allowing sane use for larger buffers 2017-06-30 09:35:53 +08:00
Hamish Coleman
e6a5dbec6f Remove an overzelous checksum check - which also fixes a bug, since it was checking the wrong file anyway 2017-06-30 09:19:35 +08:00
Hamish Coleman
4926788cd1 Merge branch 'ypid-fix-x260-and-x270' 2017-06-30 09:11:25 +08:00
Hamish Coleman
34ab798830 Add the start of a script that will allow removing the *.FL2.slice files 2017-06-30 09:03:49 +08:00
Hamish Coleman
64112afd75 Ensure that the iso extract targets dont ever pause for interactive input 2017-06-30 09:00:15 +08:00
Hamish Coleman
54a33d8584 Add a reference for a x240 bios update iso 2017-06-30 08:59:18 +08:00
Hamish Coleman
02e0f1b052 Add a TODO note 2017-06-29 14:13:05 +08:00
Robin Schneider
e5f5b685f6
Remove x260.R02HT29W.img target which is not yet usable and confusing 2017-06-29 07:59:13 +02:00
Hamish Coleman
e5537cfdb0 Make the .txt.orig downloader more generic.
As two examples - When looking at the release notes for the x200 laptop,
they have the same "uc" name as the cdrom image.  The release notes for
the x270 laptop also has the same name as the cdrom image, but they use
neither the "uc" nor the "us" suffixes.

So, it seemed simplest to be the least smart and just download whatever
matches the cdrom image name.

This has the drawback that we sometimes end up with text files that tell
you how to use the windows .exe installer - but I am hoping that the
people reading these release notes will be able to realise that not all
instructions should be followed...
2017-06-29 13:01:44 +08:00
Hamish Coleman
43506237f0 Allow the makefile to explicitly specify to copyFL2 which FL2 file should be worked on 2017-06-29 12:51:03 +08:00
Hamish Coleman
f5941006c4 Run shellcheck over other scripts too 2017-06-29 12:15:26 +08:00
Hamish Coleman
3c2cec117f Merge pull request #34 from ypid/fix-shellcheck-warnings
Fix shell script warnings reported by shellcheck for scripts/checksum
2017-06-29 12:11:23 +08:00
Hamish Coleman
7817b19595 Merge pull request #30 from ypid/fix-x220-part-2
Fix x220 ec firmware image file in radare project file
2017-06-29 11:54:58 +08:00
Hamish Coleman
ff38536430 Merge branch 'ypid-add_mount_and_extract_target' 2017-06-29 11:52:08 +08:00
Hamish Coleman
f28d0a1984 Update the docs with details on how extracting the ISO contents works.
This also documents the new .extract make targets and moves the direct
loopback mount option entirely into the documentation.  It has been
moved because I want to discourage people from using it - I consider
it to be a higher risk with no good return for this risk.
2017-06-29 11:47:21 +08:00
Robin Schneider
7304988790
Fix shell script warnings reported by shellcheck for scripts/checksum
Updates: #32
2017-06-27 00:10:50 +02:00
Hamish Coleman
45a47b1b52 Make the fix mbr script description a little more dscriptive 2017-06-26 13:42:32 +08:00
Hamish Coleman
73d2a249a0 Remove the fix-hdd-image patch files and replace them with a generic MBR fixer script 2017-06-25 20:10:56 +08:00
Robin Schneider
32a071e67f
Remove -m from mcopy calls used for extracting 2017-06-24 21:54:38 +02:00
Robin Schneider
d3186b5a4a
Add a Makefile target to mount or extract the fat16 fs embedded in ISOs 2017-06-24 21:53:12 +02:00
Robin Schneider
e08046b2b6
Fix x220 ec firmware image file in radare project file
No fully decrypted version of this file is available yet.

Closes: #26
2017-06-24 21:50:20 +02:00
Hamish Coleman
8eb3d4f571 Rearrange the clean target so we dont recursively delete things 2017-06-23 09:23:11 +08:00
Hamish Coleman
0c7ebb04e4 Add some ISO image details for newer systems. Or: A quick check on just how much different hardware can have the name 'X1' 2017-06-22 20:34:08 +08:00
Hamish Coleman
5dbd7f4362 Remove unneeded quotes 2017-06-22 20:15:27 +08:00
Hamish Coleman
94538c3e16 Merge branch 'ypid-add-txt-dl-target' 2017-06-22 20:14:43 +08:00
Hamish Coleman
89e3f0a660 Also support downloading release notes for newer systems, where this is no us/uc crazy naming 2017-06-22 20:12:20 +08:00
Hamish Coleman
ee51f748b8 Verify if txt notes match a known iso 2017-06-22 19:47:00 +08:00
Hamish Coleman
b11165457f Add a check that the correct qemu hard drive patch exists 2017-06-20 15:59:22 +08:00
Hamish Coleman
4cbc329c4a Add rm-on-fail to the hexpatch script, allowing more confidence that repeated make invocations will not accidentally succeed 2017-06-20 15:58:55 +08:00
Hamish Coleman
93f327106e Merge pull request #29 from ypid/fix-docs
Fix spelling
2017-06-20 15:28:55 +08:00
Hamish Coleman
91b41539dc Merge pull request #28 from ypid/clean-.d
Ensure DEPSDIR (.d) is removed on `make clean` as well
2017-06-20 15:27:13 +08:00
Hamish Coleman
5b9b1f6d8b Merge branch 'ypid-nicer_patch_mv' 2017-06-20 14:49:02 +08:00
Hamish Coleman
df8930dfdc Remove superfluous else case 2017-06-20 14:48:16 +08:00
Hamish Coleman
f96dee191f Fix the header describing the xx30.encrypt script 2017-06-20 14:41:02 +08:00
Hamish Coleman
c7e03d0ae9 With the FL2 slice files gone, update some of the hacking notes 2017-06-20 14:40:43 +08:00
Hamish Coleman
e3d2a200bd Note that we are too strict with some of the checksums, add the mec tools checks which might replace the checksum 2017-06-20 14:36:59 +08:00
Hamish Coleman
40b146e73b Note down source of truth 2017-06-20 14:34:23 +08:00
Robin Schneider
a7c0a2e67f
Fix spelling
git ls-files -z "$(git rev-parse --show-toplevel)" | xargs --null -I '{}' find '{}' -type f -print0 | xargs --null sed --in-place --regexp-extended 's/dependancy/dependency/g;'
2017-06-18 00:01:19 +02:00
Robin Schneider
a641f33032
Ensure DEPSDIR (.d) is removed on make clean as well
Important because of "The slice.deps targets basically do not handle
add/del/change of the *.slice files."
2017-06-17 21:05:44 +02:00
Robin Schneider
b3a453d3b7
Fix x260 and x270 ec firmware extract 2017-06-17 20:48:20 +02:00
Robin Schneider
397cbf906a
Add simple filename validation before attempting to download 2017-06-16 14:17:19 +02:00
Robin Schneider
179dc64a98
Don’t disable/enable patches which are already in their desired state
Avoids `mv` fail and in turn `make` fail.

```
for i in *.img.d; do mv $i/006_battery_validate.patch $i/006_battery_validate.patch.OFF; done
mv: cannot stat 't430.G1HT35WW.img.d/006_battery_validate.patch': No such file or directory
mv: cannot stat 't430s.G7HT39WW.img.d/006_battery_validate.patch': No such file or directory
mv: cannot stat 't530.G4HT39WW.img.d/006_battery_validate.patch': No such file or directory
mv: cannot stat 'w530.G4HT39WW.img.d/006_battery_validate.patch': No such file or directory
mv: cannot stat 'x230.G2HT35WW.img.d/006_battery_validate.patch': No such file or directory
mv: cannot stat 'x230t.GCHT25WW.img.d/006_battery_validate.patch': No such file or directory
Makefile:126: recipe for target 'patch_disable_battery' failed
make: *** [patch_disable_battery] Error 1
```
2017-06-16 13:48:53 +02:00
Hamish Coleman
2487dcb625 Update makefile table sort order to make a little more sense 2017-06-16 19:40:59 +08:00
Hamish Coleman
e92da3082b Minor documentation updates 2017-06-16 19:40:37 +08:00
Hamish Coleman
b269af0cde Merge pull request #25 from ypid/fix-gitignore
Ignore the `.d` dir as it only contains generated files
2017-06-16 19:09:54 +08:00
Hamish Coleman
d345773270 Merge pull request #24 from ypid/disable_battery_patch_by_default
Disable battery_validate.patch for all supported models to match docs
2017-06-16 19:08:14 +08:00
Hamish Coleman
0ac064a329 Merge pull request #22 from ypid/add_QEMU_OPTIONS
Allow to configure QEMU_OPTIONS to disable -enable-kvm
2017-06-16 19:03:09 +08:00
Hamish Coleman
6c8ac8a76d Merge pull request #18 from evq/x230-swap-capslock-esc
Add patch to swap caps lock and escape
2017-06-16 18:51:48 +08:00