Skip to content

Commit

Permalink
Add patches, readme.txt and INSTALL.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
plrguez committed Aug 24, 2020
1 parent da36fb7 commit e1583b1
Show file tree
Hide file tree
Showing 17 changed files with 20,780 additions and 0 deletions.
102 changes: 102 additions & 0 deletions INSTALL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
Build Fuse and libspectrum for OpenDingux and RetroFW
=====================================================

The steps provided here has been tested on a bash terminal session on an Ubuntu
18.04.04 LTS with default GCC toolchain and development tools (automake,
autoconf, make, git, squashfs-tools, flex, bison, perl, libtool, etc...).

squashfs-tools package is needed for creating opk files.

Toolchains tested:
- For OpenDingux the GCW0 and RG350 toolchains
- For RetroFW this was tested with RetroFW 2.

In the steps source code for Fuse and libspectrum was extracted in:
- $HOME/src/libspectrum-1.4.4
- $HOME/src/fuse-1.5.7

In the steps the toolchain is installed in:
- /opt/toolchain

To build Fuse we need first build and install libspectrum:
- In the steps is used $HOME/src/libspectrum-install
- libspectrum will be builded without libaudio and libgcrypt,
- For RetroFW is configured to use internal replacement for GLib.

You must adapt this for your OS, toolchains and paths.

Steps:
======
1.- Put your OpenDingux/RetroFW toolchain in PATH. For example:

$ export PATH=/opt/toolchain/usr/bin:$PATH

2.- Configure, build and install libspectrum:

$ cd $HOME/src/libspectrum-1.4.4

Configure for OpenDingux:

$ ./configure CC=mipsel-gcw0-linux-uclibc-gcc \
CXX=mipsel-gcw0-linux-uclibc-g++ --host=mipsel-gcw0-linux-uclibc \
--without-libaudiofile --without-libgcrypt \
--prefix="$HOME/src/libspectrum-install" CFLAGS='-mips32r2 -O3'

Configure for RetroFW:

$ ./configure CC=mipsel-RetroFW-linux-uclibc-gcc \
CXX=mipsel-RetroFW-linux-uclibc-g++ --host=mipsel-RetroFW-linux-uclibc \
--without-libaudiofile --without-libgcrypt --with-fake-glib \
--prefix="$HOME/src/libspectrum-install" CFLAGS='-mips32 -O3'

$ make && make install

In $HOME/src/libspectrum-install must be installed libspectrum

3.- Configure Fuse:

$ cd $HOME/src/fuse-1.5.7

Configure for OpenDingux:

$ ./configure PKG_CONFIG_PATH="$HOME/src/libspectrum-install/lib/pkgconfig" \
LIBSPECTRUM_CFLAGS="-I$HOME/src/libspectrum-install/include" \
LIBSPECTRUM_LIBS="-L$HOME/src/libspectrum-install/lib -l:libspectrum.a -lbz2" \
CC=mipsel-gcw0-linux-uclibc-gcc CXX=mipsel-gcw0-linux-uclibc-g++ \
--host=mipsel-gcw0-linux-uclibc --with-gcw0 \
--with-sdl-prefix=/opt/toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr \
CFLAGS='-mips32r2 -O3'

Configure for RetroFW:

$ ./configure PKG_CONFIG_PATH="$HOME/src/libspectrum-install/lib/pkgconfig" \
LIBSPECTRUM_CFLAGS="-I$HOME/src/libspectrum-install/include" \
LIBSPECTRUM_LIBS="-L$HOME/src/libspectrum-install/lib -l:libspectrum.a -lbz2" \
CC=mipsel-RetroFW-linux-uclibc-gcc CXX=mipsel-RetroFW-linux-uclibc-g++ \
--host=mipsel-RetroFW-linux-uclibc --with-retrofw \
--with-sdl-prefix=/opt/toolchain/mipsel-RetroFW-linux-uclibc/sysroot/usr \
CFLAGS='-mips32 -O3'

4.- Build Fuse

For Opendingux:

$ cd $HOME/src/fuse-1.5.7/Platform/GCW0
$ make

fuse-gcw0.opk should be created in $HOME/src/fuse-1.5.7/Platform/GCW0/build

For RetroFW 2:

$ cd $HOME/src/fuse-1.5.7/Platform/RETROFW2.0
$ make

fuse-retrofw.opk should be created in
$HOME/src/fuse-1.5.7/Platform/RETROFW2.0/build

For RetroFW 1:

$ cd $HOME/src/fuse-1.5.7/Platform/RETROFW1.0
$ make

fuse.ipk $HOME/src/fuse-1.5.7/Platform/RETROFW1.0/build
Loading

0 comments on commit e1583b1

Please sign in to comment.