Skip to content

Instantly share code, notes, and snippets.

@rkitover
Created June 6, 2014 17:32
Show Gist options
  • Save rkitover/72e17b8e4657bfe3d887 to your computer and use it in GitHub Desktop.
Save rkitover/72e17b8e4657bfe3d887 to your computer and use it in GitHub Desktop.
patch linux 3.14 sources for Acer C720
# Use Benson Leung's post-Pixel Chromebook patches:
# https://patchwork.kernel.org/bundle/bleung/chromeos-laptop-deferring-and-haswell/
for patch in 3078491 3078481 3074401 3074431 3074411; do
wget -O - https://patchwork.kernel.org/patch/$patch/raw/ | sed 's/drivers\/platform\/x86\/chromeos_laptop.c/drivers\/platform\/chrome\/chromeos_laptop.c/g'| patch -p1
done
# fetch the chromeos_laptop and atmel maxtouch source code
# Copy made from chromium.googlesource.com chromeos-3.8 branch
# https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/refs/heads/chromeos-3.8
wget https://googledrive.com/host/0BxMvXgjEztvAbEdYM1o0ck5rOVE --output-document=patch_atmel_mxt_ts.c
wget https://googledrive.com/host/0BxMvXgjEztvAdVBjQUljYWtiR2c --output-document=patch_chromeos_laptop.c
# copy source files into kernel tree replacing existing Ubuntu source
sed -e 's/INIT_COMPLETION(/reinit_completion(\&/g' ./patch_atmel_mxt_ts.c > drivers/input/touchscreen/atmel_mxt_ts.c
cp ./patch_chromeos_laptop.c drivers/platform/chrome/chromeos_laptop.c
echo 'Kernel sources patched for Chromebook.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment