view sources/targets/powerpc @ 1564:9d693038789d

Musl needs a specific type of PLT out of gcc for powerpc.
author Rob Landley <rob@landley.net>
date Sat, 17 Nov 2012 21:38:50 -0600
parents b499abdbcdfa
children e74afb9aac72
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_CMD64X=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 "$@")
}