Skip to content

Commit

Permalink
Add @aunali1 BT (ACPI) fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeeq committed Feb 20, 2020
1 parent 7acba9c commit a88797d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions patch_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -eu -o pipefail
# APPLE_IB_DRIVER_COMMIT_HASH=90cea3e8e32db60147df8d39836bd1d2a5161871
APPLE_SMC_DRIVER_GIT_URL=https://github.com/aunali1/linux-mbp-arch
APPLE_SMC_DRIVER_BRANCH_NAME=master
APPLE_SMC_DRIVER_COMMIT_HASH=092a4b6ca2f0894cefcb416b6b7c9a744a74c5f4
APPLE_SMC_DRIVER_COMMIT_HASH=3dace5f75390c8845deb57537bf1805c8f265d58

REPO_PWD=$(pwd)

Expand All @@ -29,7 +29,7 @@ cd /root/temp || exit
# cp -rfv "${file}" "${REPO_PWD}"/../patches/"${file##*/}"
# done < <(find mbp2018-etc/applesmc/patches/ -type f | sort)

### AppleSMC aunali fixes
### AppleSMC and BT aunali fixes
git clone --single-branch --branch ${APPLE_SMC_DRIVER_BRANCH_NAME} ${APPLE_SMC_DRIVER_GIT_URL}
cd linux-mbp-arch || exit
git checkout ${APPLE_SMC_DRIVER_COMMIT_HASH}
Expand All @@ -38,6 +38,7 @@ while IFS= read -r file; do
echo "adding ${file}"
cp -rfv "${file}" "${REPO_PWD}"/../patches/"${file##*/}"
done < <(find linux-mbp-arch -type f -name "*applesmc*" | sort)
cp -rfv ./linux-mbp-arch/2001-Revert-serdev-Add-ACPI-devices-by-ResourceSource-fie.patch "${REPO_PWD}"/../patches/

### Add custom drivers to kernel
# echo -e "From: fedora kernel <fedora@kernel.org>\nSubject: patch custom drivers\n" > "${REPO_PWD}"/../patches/custom-drivers.patch
Expand Down
2 changes: 1 addition & 1 deletion update_kernel_mbp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cd ${KERNEL_PATCH_PATH} || exit

### Update update_kernel_mbp script
echo >&2 "===]> Info: Updating update_kernel_mbp script... ";
curl -L https://raw.githubusercontent.com/mikeeq/mbp-fedora-kernel/v5.4-f31/update_kernel_mbp.sh -o /usr/local/bin/update_kernel_mbp
curl -L https://raw.githubusercontent.com/mikeeq/mbp-fedora-kernel/v5.5-f31/update_kernel_mbp.sh -o /usr/local/bin/update_kernel_mbp
chmod +x /usr/local/bin/update_kernel_mbp

### Download latest kernel
Expand Down

0 comments on commit a88797d

Please sign in to comment.