Casio - Crossdev
Suwako Moriya laboja lapu 5 gadi atpakaļ

Crossdev Installation Guide

Here is a guide to help you getting a crossdev toolchain for your calculator and to build Gint.


Summary

  1. Emerge crossdev
  2. Create the local crossdev overlay
  3. Building and installing the toolchain

1. Emerge crossdev

First of all, emerge crossdev if you haven't already.

#*as root*

emerge --ask crossdev

2. Create the local crossdev overlay

Before building the toolchain, you need to create a local overlay called crossdev if you haven't already.

The crossdev overlay will be auto-selected by the crossdev tool to build packages for all crossdev-targeted platforms — so creating only this one overlay is enough to ensure that all of the crossdev built packages remain completely separate from the native packages for your system.

#*as root*

mkdir -p /usr/local/portage-crossdev/{profiles,metadata}
echo 'crossdev' > /usr/local/portage-crossdev/profiles/repo_name
echo 'masters = gentoo' > /usr/local/portage-crossdev/metadata/layout.conf
chown -R portage:portage /usr/local/portage-crossdev

Then instruct portage and crossdev to use this overlay :

Create the file /etc/portage/repos.conf/crossdev.conf

[crossdev]
location = /usr/local/portage-crossdev
priority = 10
masters = gentoo
auto-sync = no

Note that crossdev needs some config files in /etc/portage to be in folders rather than in a single file (e.g. package.keywords)


3. Building and installing the toolchain

Choose the target

First, you have to choose which target you want to build the toolchain for.

  • Use sh3eb-elf for monochromes calculator. gint using sh3 is compatible with sh4 processors.
  • Use sh4eb-nofpu-elf if you want to code exclusively for Graph 90+E or if you want to bother with assembly code

Build the toolchain

Simply run :

#*as root*

crossdev -t <target>

Warning, newlib won't compile. It is normal and shouldn't affect the compilation of gint.

If you want to build it anyway, there is a fork.

You should now be able to build gint. Note that by default sh3eb-elf is the compiler for gint. To select another one, change gint's useflags.