Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPL: New versioning scheme, dialogs and updated to git #1

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions .hgignore → .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
syntax: glob

*.o
*.s
*.elf
Expand All @@ -8,6 +6,10 @@ syntax: glob
*.irx
*.exe
*.map
*.patch
*.diff
*.zip
.hg
libfreetype.a

pc/iso2usbld/bin/iso2usbld
157 changes: 157 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
sudo: required
language: c
script:
#
# Travis CI Script by Caio Oliveira aka Caio99BR <caiooliveirafarias0@gmail.com>
# For Open-PS2-Loader

#
# Thanks to:
# - izdubar@psx-scene and jimmikaelkael@psx-scene
# <http://psx-scene.com/forums/f150/%5Blinux%5D-opl-compile-guides-63749/>
# - doctorxyz@ps2home
# <http://ps2home.freeforums.net/thread/272/linux-creation-compiling-guide-ps2sdk>
# - and a lot of people around internet :)

#
# Save current dir, go to previous dir and save it too
- export opl_build_dir=$(pwd)
- cd ../
- export travis_build_dir=$(pwd)

#
# OPL Building Dependencies
- sudo apt-get install -yqq gcc-4.4 patch wget make git mercurial libc6-dev zlib1g zlib1g-dev libucl1 libucl-dev

#
# Set up the environment.
- export PS2DEV=${travis_build_dir}/ps2dev
- export PS2SDK=${PS2DEV}/ps2sdk
- export PATH=${PATH}:${PS2DEV}/bin:${PS2DEV}/ee/bin:${PS2DEV}/iop/bin:${PS2DEV}/dvp/bin:${PS2SDK}/bin
- export PS2ETH=${PS2DEV}/ps2eth
- export GSKIT=${PS2DEV}/gsKit
- export LANG=C
- export LC_ALL=C

#
# ps2dev/PS2Toolchain
- cd ${travis_build_dir}/
- rm -rf ${travis_build_dir}/ps2toolchain/
- git clone --quiet https://github.com/ps2dev/ps2toolchain.git ${travis_build_dir}/ps2toolchain/
- cd ${travis_build_dir}/ps2toolchain/
- ./toolchain.sh

#
# ps2dev/PS2SDKPorts
- cd ${travis_build_dir}/
- rm -rf ${travis_build_dir}/ps2sdk-ports/
- git clone --quiet https://github.com/ps2dev/ps2sdk-ports.git ${travis_build_dir}/ps2sdk-ports/

#
# ps2dev/PS2SDKPorts/zlib
- cd ${travis_build_dir}/ps2sdk-ports/zlib/
- make
- make install

#
# ps2dev/PS2SDKPorts/libpng
- cd ${travis_build_dir}/ps2sdk-ports/libpng/
- make
- make install

#
# ps2dev/PS2SDKPorts/libjpeg
- cd ${travis_build_dir}/ps2sdk-ports/libjpeg/
- make
- make install

#
# ps2dev/PS2SDKPorts/freetype
- cd ${travis_build_dir}/ps2sdk-ports/freetype-2.4.12/
- source SetupPS2.sh

#
# ps2dev/PS2ETH
- cd ${travis_build_dir}/
- rm -rf ${travis_build_dir}/ps2eth/
- git clone --quiet https://github.com/ps2dev/ps2eth ${travis_build_dir}/ps2eth/
- cd ${travis_build_dir}/ps2eth/
- make
- sudo mkdir -p /usr/lib/ps2dev/ps2eth
- sudo tar c $(find . -name \*irx) | sudo tar x -C /usr/lib/ps2dev/ps2eth

#
# ps2dev/gsKit
- cd ${travis_build_dir}/
- rm -rf ${travis_build_dir}/gsKit/
- git clone --quiet https://github.com/ps2dev/gsKit.git ${travis_build_dir}/gsKit/
- cd ${travis_build_dir}/gsKit/
- make
- make install

#
# ps2dev/PS2Packer
- cd ${travis_build_dir}/
- rm -rf ${travis_build_dir}/ps2-packer/
- git clone --quiet https://github.com/ps2dev/ps2-packer.git ${travis_build_dir}/ps2-packer/
- cd ${travis_build_dir}/ps2-packer/
- make
- make install

#
# Let's build Open PS2 Loader!
- cd ${opl_build_dir}/
- . lng_pack.sh
- . make_changelog.sh

- export opl_version=$(cat Makefile | grep "VERSION =" | cut -c 11- | head -1)
- export opl_subversion=$(cat Makefile | grep "SUBVERSION =" | cut -c 14- | head -1)
- export opl_patchlevel=$(cat Makefile | grep "PATCHLEVEL =" | cut -c 14- | head -1)
- export opl_revision=$(cat Makefile | grep "REVISION =" | cut -c 12- | head -1)
- export opl_extraversion=$(cat Makefile | grep "EXTRAVERSION =" | cut -c 16- | head -1)
- export opl_git=$(git rev-parse --short=7 HEAD | head -1)
- export opl_version=${opl_version}.${opl_subversion}.${opl_patchlevel}.${opl_revision}-${opl_extraversion}
- export opl_set="OPNPS2LD-${opl_version}-${opl_git}"

- make release

- mkdir -p ${opl_build_dir}/out/
- mkdir -p ${opl_build_dir}/out_zip/
- cp ${opl_build_dir}/DETAILED_CHANGELOG ${opl_build_dir}/out/DETAILED_CHANGELOG
- cp ${opl_build_dir}/OPNPS2LD_LANGS-r${opl_revision}.zip ${opl_build_dir}/out_zip/OPNPS2LD_LANGS-r${opl_revision}.zip
- cp ${opl_build_dir}/OPNPS2LD.ELF ${opl_build_dir}/out/${opl_set}.elf
- cp ${opl_build_dir}/CREDITS ${opl_build_dir}/out/CREDITS
- cp ${opl_build_dir}/LICENSE ${opl_build_dir}/out/LICENSE

- cd ${opl_build_dir}/out/
- zip -r ${opl_set}.zip *

- cp ${opl_build_dir}/out/${opl_set}.zip ${opl_build_dir}/out_zip/${opl_set}.zip

#
# [TEMPLATE] Deploy OPL to Github Releases
# 1. Clone this repository
# 2. Copy '.travis.yml' to '.travis-original.yml' (you will need it after)
# 3. Install Travis Client <https://github.com/travis-ci/travis.rb#installation>
# 4. Run command: $(travis setup releases)
# 5a. After follow all previous steps,
# pickup ONLY the "secure" line
# and change it on '.travis-original.yml'
# 5b. Remove '#' in and after deploy section
# 6. Move '.travis-original.yml' to '.travis.yml'
# 7. Commit it
#
# NOTE: You need to configure TravisCI before anything <https://travis-ci.org/>

#
# Deploy OPL to Github Releases
#deploy:
# provider: releases
# skip_cleanup: true
# api_key:
# secure: [PUT YOUR NEW SECURE API KEY HERE]
# file:
# - "${opl_build_dir}/out_zip/${opl_set}.zip"
# - "${opl_build_dir}/out_zip/OPNPS2LD_LANGS-r${opl_revision}.zip"
# on:
# tags: true
41 changes: 23 additions & 18 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Copyright 2009, Ifcaro & jimmikaelkael
Licenced under Academic Free License version 3.0
Review OpenPS2Loader README & LICENSE files for further details.

-----------------------------------------------------------------------------

Main code is based on HD Project 1.081
Expand All @@ -12,32 +12,37 @@ Copyright (C) 2006-2008 Polo <polo35580@hotmail.fr>
Adaptation to USB Advance format and User interface
Copyright (C) 2009 Ifcaro <taslokooo@gmail.com>

Main Project developers:
Ifcaro, volca, jimmikaelkael, polo35, izdubar, hominem.te.esse, SP193

Other developers:
BatRastard, crazyc, dlanor, doctorxyz, reprep

UI design:
Berion, Jay-Jay

Quality Assurance:
RandQalan, yoshi314, EP, LocalH, lee4, El_Patas, ShaolinAssassin, danielB

CDVDMAN, CDVDFSV, CDDEV, DISCID & SMBMAN modules by jimmikaelkael
Copyright (C) 2009 jimmikaelkael <jimmikaelkael@wanadoo.fr>

NETLOG module, and other contributions
Copyright (C) 2009 misfire <misfire@xploderfreax.de>

SMSUTILS, SMSMAP & SMSTCPIP modules by Eugene Plotnikov
-----------------------------------------------------------------------------

Main Project developers
by Ifcaro, volca, jimmikaelkael, polo35, izdubar, hominem.te.esse, SP193

Other developers
by BatRastard, crazyc, dlanor, doctorxyz, reprep

UI design
by Berion, Jay-Jay

DEV9, ATAD modules and derived code used in cdvdman by Marcus R. Brown
Quality Assurance
by RandQalan, yoshi314, EP, LocalH, lee4, El_Patas, ShaolinAssassin, danielB

USB, Network and PS2HDD modules were taken from PS2SDK
SMSUTILS, SMSMAP & SMSTCPIP modules
by Eugene Plotnikov

OPL-CL project/network update support by icyson55
DEV9, ATAD modules and derived code used in cdvdman
by Marcus R. Brown

USB, Network and PS2HDD modules
by ps2dev's taken from PS2SDK

OPL-CL project/network update support
by icyson55

SMB code in Open PS2 Loader includes DES algorithm developed
by Eric Young (eay@mincom.oz.au)