https://github.com/dids/clobber
A command line application for building Clover.
https://github.com/dids/clobber
Last synced: 10 months ago
JSON representation
A command line application for building Clover.
- Host: GitHub
- URL: https://github.com/dids/clobber
- Owner: Dids
- License: mit
- Created: 2018-06-27T06:25:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T06:59:51.000Z (over 3 years ago)
- Last Synced: 2025-04-13T11:49:41.679Z (about 1 year ago)
- Language: Go
- Size: 11.1 MB
- Stars: 37
- Watchers: 2
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gitpod.io/#https://github.com/Dids/clobber)
[](https://travis-ci.org/Dids/clobber)
Clobber is command-line application for building [Clover](https://sourceforge.net/projects/cloverefiboot/).
### Requirements
- [macOS](https://www.apple.com/lae/macos/) (only tested on macOS High Sierra)
- [Xcode](https://developer.apple.com/xcode/) (available on the App Store)
- [Homebrew](https://brew.sh/)
Note that when you run `clobber` for the first time, it may prompt you to install [JDK](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html), saying `javac` is missing, but you can safely ignore this prompt.
The reason for this prompt comes from building `gettext`, so it's an unfortunate side effect that we can't do anything about.
### Installation
> brew tap Dids/brewery
> brew install clobber
You can also install the latest development version:
> brew install clobber --HEAD
If you want to use gcc instead of Xcode as the toolchain, install clobber with the following flag:
> brew install clobber --with-gcc
### Usage
Build the latest version of Clover:
> clobber
Build a specific Clover version/revision:
> clobber --revision 1234
Build Clover with a different toolchain:
> clobber --toolchain GCC53
View all the available options:
> clobber --help
### Development
Install/build dependencies:
> make deps
Run the application:
> go run main.go
Run tests:
> make test
Creating new `buildpkg.sh` patches:
1. Make a copy of `buildpkg.sh` and name it `buildpkg_patched.sh` (it can be found in `~/.clobber/src/edk2/Clover/CloverPackage/package`)
2. Make the required changes to `buildpkg_patched.sh`
3. Create a new patch with the following command:
> `diff -Naru ~/.clobber/src/edk2/Clover/CloverPackage/package/buildpkg.sh ~/.clobber/src/edk2/Clover/CloverPackage/package/buildpkg_patched.sh > patches/buildpkg.patch`
Creating new `ebuild.sh` patches:
1. Make a copy of `ebuild.sh` and name it `ebuild_patched.sh` (it can be found in `~/.clobber/src/edk2/Clover`)
2. Make the required changes to `ebuild_patched.sh`
3. Create a new patch with the following command:
> `diff -Naru ~/.clobber/src/edk2/Clover/ebuild.sh ~/.clobber/src/edk2/Clover/ebuild_patched.sh > patches/ebuild.patch`
### License
See [LICENSE](LICENSE).