view sources/targets/powerpc @ 1744:4c3164f0d2c2 draft

As long as current kernels have an overlay filesystem, might as well enable it.
author Rob Landley <rob@landley.net>
date Sun, 22 Feb 2015 17:22:00 -0600
parents b89324905ca2
children 4927c8b8de1b
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

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 "$@")
}