Skip to content

Commit

Permalink
Cleanup and documentation updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dids committed Jan 29, 2018
1 parent 2cfe408 commit 171e068
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 92 deletions.
30 changes: 1 addition & 29 deletions .scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,6 @@ CREDITS_ORIGINAL="Chameleon team, crazybirdy, JrCs."
CREDITS_MODIFIED="Chameleon team, crazybirdy, JrCs, Dids."
sed -i '' -e "s/.*${CREDITS_ORIGINAL}.*/${CREDITS_MODIFIED}/" "${HOME}/src/edk2/Clover/CloverPackage/CREDITS"

## TODO: This step can be removed if/when Build_Clover
## or Clover itself gets official AptioFix support

# Build and install the AptioFix (U)EFI drivers by vit9696
# (thanks to fusion71au from InsanelyMac for the build steps)
cd "${HOME}/src/edk2"
rm -fr \
AptioFixPkg \
CupertinoModulePkg \
EfiMiscPkg \
EfiPkg \
2> /dev/null
git clone https://github.com/vit9696/AptioFixPkg.git
git clone https://github.com/CupertinoNet/CupertinoModulePkg
git clone https://github.com/CupertinoNet/EfiMiscPkg
git clone https://github.com/CupertinoNet/EfiPkg
export NASM_PREFIX="${HOME}/src/opt/local/bin/"
source edksetup.sh
make -C BaseTools
touch edk2.ready
## NOTE: Be sure that the toolchain matches with Clover (XCODE8 in this case)
build -a X64 -b RELEASE -t XCODE8 -p AptioFixPkg/AptioFixPkg.dsc

# Install the AptioFix (U)EFI drivers
cd "${HOME}/src/edk2/Clover/CloverPackage/CloverV2/drivers-Off"
cp -f ${HOME}/src/edk2/Build/AptioFixPkg/RELEASE_XCODE8/X64/*.efi drivers64UEFI/

# Create patched APFS EFI drivers
cd "${HOME}/src/edk2/Clover/CloverPackage/CloverV2/drivers-Off"
cp -f drivers64/apfs-64.efi drivers64/apfs_patched-64.efi
Expand All @@ -57,12 +30,11 @@ echo '"Fat-64_description" = "Adds support for exFAT (FAT64) partitions.";' >> L
echo '"NTFS_description" = "Adds support for NTFS partitions.";' >> Localizable.strings
echo '"apfs_description" = "Adds support for APFS partitions.";' >> Localizable.strings
echo '"apfs_patched_description" = "Adds support for APFS partitions.\nPatched version which removes verbose logging on startup.\n\nWARNING: Do NOT enable multiple apfs.efi drivers!";' >> Localizable.strings
echo '"AptioMemoryFix_description" = "Fork of the original OsxAptioFix2 driver with a cleaner (yet still terrible) codebase and improved stability and functionality.\n\nWARNING: Do NOT use in combination with older AptioFix drivers.\nThis is an experimental driver by vit9696 (https://github.com/vit9696/AptioFixPkg).";' >> Localizable.strings
#echo '"AptioMemoryFix_description" = "Fork of the original OsxAptioFix2 driver with a cleaner (yet still terrible) codebase and improved stability and functionality.\n\nWARNING: Do NOT use in combination with older AptioFix drivers.\nThis is an experimental driver by vit9696 (https://github.com/vit9696/AptioFixPkg).";' >> Localizable.strings
echo '"AptioInputFix_description" = "Reference driver to shim AMI APTIO proprietary mouse & keyboard protocols for File Vault 2 GUI input support.\n\nWARNING: Do NOT use in combination with older AptioFix drivers.\nThis is an experimental driver by vit9696 (https://github.com/vit9696/AptioFixPkg).";' >> Localizable.strings
echo '"OsxAptioFix3Drv-64_description" = "64bit driver to fix Memory problems on UEFI firmware such as AMI Aptio.";' >> Localizable.strings
echo '"OsxFatBinaryDrv-64_description" = "Enables starting of FAT modules like boot.efi.";' >> Localizable.strings


# Recreate the package
cd "${HOME}/src/edk2/Clover/CloverPackage"
make pkg
56 changes: 0 additions & 56 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions BuildCloverConfig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ DISABLE_CLEAR=YES
MY_SCRIPT=
FAST_UPDATE=NO
INTERACTIVE=NO
ForceEDK2Update=0
ForceEDK2Update=1
ARCH=X64
FORCEREBUILD=-fr
SHOWCCP_ADVERTISE=YES
SHOWCCP_ADVERTISE=NO
SVN_UPDATE_ACCEPT_ARG=tf
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2017 Pauli 'Dids' Jokela
Copyright (c) 2017-2018 Pauli 'Dids' Jokela

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# Automated Clover Builds

[![Build Status](https://travis-ci.org/Dids/clover-builder.svg?branch=master)](https://travis-ci.org/Dids/clover-builder)
[![Build Status](https://www.bitrise.io/app/d99a8cc679de9944/status.svg?token=4iYU6RsLSXBRMno3j3GnJg&branch=master)](https://www.bitrise.io/app/d99a8cc679de9944)

A simple project that automatically builds [Clover](https://clover-wiki.zetam.org) as a daily build.

Note that these builds includes the [AptioFixPkg](https://github.com/vit9696/AptioFixPkg) (`AptioMemoryFix` and `AptioInputFix`) by [vit9696](https://github.com/vit9696).

**DISCLAIMER:** Since this is a 3rd party build, anything could go wrong, so proceed with caution. That said, it should be fine.

# Releases
## Releases

Releases are available [here](https://github.com/Dids/clover-builder/releases).

# License
## License

See [LICENSE.md](LICENSE.md).

A big thank you to [Micky1979](https://github.com/Micky1979) for creating [Build_Clover](https://github.com/Micky1979/Build_Clover), as well as everyone else involved.
A big thank you to [Micky1979](https://github.com/Micky1979) for creating [Build_Clover](https://github.com/Micky1979/Build_Clover), as well as everyone else involved (Clover developers and contributors included!).

0 comments on commit 171e068

Please sign in to comment.