view sources/targets/powerpc @ 1719:78050a31d1ee draft

Sigh. Checked in the wrong version of the patch (typo fix).
author Rob Landley <rob@landley.net>
date Tue, 06 Jan 2015 13:15:33 -0600
parents e74afb9aac72
children b89324905ca2
line wrap: on
line source

DESCRIPTION="
Power PC, 32 bit

Generic Power PC system, a basic unoptimized instruction set which
just about any powerpc should be able to run.

The main exceptions are the 440 and 880 lines, which were stripped down
versions of the powerpc (created by IBM and Motorola, respectively) targetted
at battery powered devices such as cell phones.  They do not support the
entire powerpc instruction set.  (Alas, the two chose _different_ subsets, so
they don't run each other's code either.  These days the 880 is known as
PowerQuic.)
"

KARCH=powerpc
KERNEL_PATH=vmlinux
GCC_FLAGS=--enable-secureplt # --with-long-double-64 (default on 4.2.1)
BINUTILS_FLAGS=
QEMU_TEST=ppc

ROOT=hda
CONSOLE=ttyS0

UCLIBC_CONFIG="
TARGET_powerpc=y
UCLIBC_HAS_FPU=y
"

LINUX_CONFIG="
CONFIG_ALTIVEC=y
CONFIG_PPC_PMAC=y
CONFIG_PPC_OF_BOOT_TRAMPOLINE=y
CONFIG_PPC601_SYNC_FIX=y
CONFIG_PROC_DEVICETREE=y
CONFIG_BLK_DEV_IDE_PMAC=y
CONFIG_MACINTOSH_DRIVERS=y
CONFIG_ADB=y
CONFIG_ADB_CUDA=y
CONFIG_NE2K_PCI=y
CONFIG_SERIO=y
CONFIG_SERIAL_PMACZILOG=y
CONFIG_SERIAL_PMACZILOG_TTYS=y
CONFIG_SERIAL_PMACZILOG_CONSOLE=y
CONFIG_BOOTX_TEXT=y
"

emulator_command()
{
  echo qemu-system-ppc -M g3beige $(qemu_defaults "$@")
}