Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
davilla@4pi.com
committed
Jun 15, 2008
1 parent
ba90faa
commit 8cf7df8
Showing
17 changed files
with
226 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Version 2.0 (May 18, 2008) | ||
# | ||
# This script builds a patched parted to support apple recovery GUID | ||
# disk partitions. Using the flag "atvrcv" will make selected partions | ||
# into one with an Apple "Recovery" GUID of | ||
# "5265636F-7665-11AA-AA11-00306543ECAC" | ||
# | ||
# The atv-bootloader must be installed into an Apple "Recovery" | ||
# partition in order for boot.efi to find and load it. In addition, | ||
# there are several "support" files required". This script only | ||
# creates a patched parted so that Apple "Recovery" partitons | ||
# can be created. | ||
# | ||
# See the following link for gpt and GUID info | ||
# http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs | ||
# | ||
# | ||
|
||
PACKAGE = parted-1.8.8 | ||
DOWNLOAD = parted-1.8.8.tar.bz2 | ||
|
||
.PHONY: parted | ||
|
||
parted: build/parted build/partprobe | ||
sudo apt-get install uuid-dev | ||
sudo apt-get install libreadline5-dev | ||
@if [ ! -e $(DOWNLOAD) ]; then \ | ||
wget ftp.gnu.org/gnu/parted/$(DOWNLOAD); \ | ||
fi | ||
@if [ ! -d $(PACKAGE) ]; then \ | ||
tar -xjf $(DOWNLOAD); \ | ||
cd $(PACKAGE); \ | ||
patch -p1 < ../appletv_parted-1.8.8.patch; \ | ||
./configure CFLAGS="-fgnu89-inline" --enable-static=yes; \ | ||
cd .. ; \ | ||
fi | ||
cd $(PACKAGE) && $(MAKE) | ||
cp $(PACKAGE)/parted/.libs/parted build/ | ||
cp $(PACKAGE)/partprobe/.libs/partprobe build/ | ||
cp parted-1.8.8/libparted/.libs/libparted-1.8.so.8 build/ | ||
|
||
clean: | ||
rm -rf build/* | ||
rm -rf $(PACKAGE) | ||
rm $(DOWNLOAD) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.