# HG changeset patch # User Rob Landley # Date 1309136977 18000 # Node ID 0b1022dc9a3605f0606f33210a5746d07bf2fec4 # Parent ee9ee44835e9072ce4dd315820cb38e8754c7b66 Remove one more "settings" dependency from functions.sh, and convert lots of architecture configurations from directory to file. diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/functions.sh --- a/sources/functions.sh Sun Jun 26 19:25:19 2011 -0500 +++ b/sources/functions.sh Sun Jun 26 20:09:37 2011 -0500 @@ -41,9 +41,6 @@ exit 1 fi - - source "$CONFIG_DIR/$ARCH/settings" - # Which platform are we building for? export WORK="${BUILD}/temp-$ARCH_NAME" diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv4eb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/armv4eb Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,43 @@ +DESCRIPTION=" +ARM v4, big endian, soft float, OABI. + +Although arm processors can work with either endianness, most ARM boards are +wired little endian, so building big endian arm is fairly uncommon. The +ixp4xx, ixp2000, and ixp23xx Linux targets support big endian operation. +" + +KARCH=arm +KERNEL_PATH=arch/${KARCH}/boot/zImage +GCC_FLAGS="--with-float=soft" +BINUTILS_FLAGS= +QEMU_TEST=$KARCH + +ROOT=sda +CONSOLE=ttyAMA0 + +UCLIBC_CONFIG="TARGET_arm=y" + +LINUX_CONFIG=" +CONFIG_CPU_ARM926T=y +CONFIG_MMU=y +CONFIG_ARCH_VERSATILE_PB=y +CONFIG_MACH_VERSATILE_AB=y +CONFIG_CPU_ARM926T=y +CONFIG_ARM_THUMB=y +CONFIG_SERIAL_NONSTANDARD=y +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_RTC_DRV_PL031=y +" + +emulator_command() +{ + echo qemu-system-arm -M versatilepb $(qemu_defaults "$@") \ + -net nic,model=rtl8139 -net user +} + +# Gentoo from Scratch +GFS_CHOST="armeb-softfloat-linux-uclibc" +GFS_ARCH="arm" + + diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv4eb/settings --- a/sources/targets/armv4eb/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -DESCRIPTION=" -ARM v4, big endian, soft float, OABI. - -Although arm processors can work with either endianness, most ARM boards are -wired little endian, so building big endian arm is fairly uncommon. The -ixp4xx, ixp2000, and ixp23xx Linux targets support big endian operation. -" - -KARCH=arm -KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS="--with-float=soft" -BINUTILS_FLAGS= -QEMU_TEST=$KARCH - -ROOT=sda -CONSOLE=ttyAMA0 - -UCLIBC_CONFIG="TARGET_arm=y" - -LINUX_CONFIG=" -CONFIG_CPU_ARM926T=y -CONFIG_MMU=y -CONFIG_ARCH_VERSATILE_PB=y -CONFIG_MACH_VERSATILE_AB=y -CONFIG_CPU_ARM926T=y -CONFIG_ARM_THUMB=y -CONFIG_SERIAL_NONSTANDARD=y -CONFIG_SERIAL_AMBA_PL011=y -CONFIG_SERIAL_AMBA_PL011_CONSOLE=y -CONFIG_RTC_DRV_PL031=y -" - -emulator_command() -{ - echo qemu-system-arm -M versatilepb $(qemu_defaults "$@") \ - -net nic,model=rtl8139 -net user -} - -# Gentoo from Scratch -GFS_CHOST="armeb-softfloat-linux-uclibc" -GFS_ARCH="arm" - - diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv4l --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/armv4l Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,61 @@ +DESCRIPTION=" +ARM v4, little endian, soft float, OABI. + +This is a generic low-end arm image that should run on any arm hardware +still in use today (except ARMv7M, which is arm in name only). + +The downside is it uses the Old Application Binary Interface, described here: +http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Why-ARMs-EABI-matters/ + +This instruction set cannot support EABI, which requies the Thumb extensions. +It's sort of the 80286 of the ARM world. +" + +KARCH=arm +KERNEL_PATH=arch/${KARCH}/boot/zImage +GCC_FLAGS="--with-float=soft" +BINUTILS_FLAGS= +QEMU_TEST=$KARCH + +ROOT=sda +CONSOLE=ttyAMA0 + +# Gentoo from Scratch +GFS_CHOST="armv4l-gentoo-linux-uclibc" +GFS_ARCH="arm" + +UCLIBC_CONFIG=" +TARGET_arm=y +ARCH_WANTS_LITTLE_ENDIAN=y +" + +LINUX_CONFIG=" + +# Processor config + +# QEMU patch: http://www.mail-archive.com/qemu-devel@nongnu.org/msg19370.html +# and QEMU option '-cpu arm920t' enable CONFIG_CPU_ARM920T=y which is the +# processor that actually _needs_ this code. But until then, qemu can only +# emulate an armv5 CPU... + +CONFIG_CPU_ARM926T=y +CONFIG_MMU=y + +# Versatile board + +CONFIG_ARCH_VERSATILE_PB=y +CONFIG_PCI_LEGACY=y +CONFIG_SERIAL_NONSTANDARD=y +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_RTC_DRV_PL031=y +CONFIG_SCSI_SYM53C8XX_2=y +CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0 +CONFIG_SCSI_SYM53C8XX_MMIO=y +" + +emulator_command() +{ + echo qemu-system-arm -M versatilepb $(qemu_defaults "$@") \ + -net nic,model=rtl8139 -net user +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv4l/settings --- a/sources/targets/armv4l/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -DESCRIPTION=" -ARM v4, little endian, soft float, OABI. - -This is a generic low-end arm image that should run on any arm hardware -still in use today (except ARMv7M, which is arm in name only). - -The downside is it uses the Old Application Binary Interface, described here: -http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Why-ARMs-EABI-matters/ - -This instruction set cannot support EABI, which requies the Thumb extensions. -It's sort of the 80286 of the ARM world. -" - -KARCH=arm -KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS="--with-float=soft" -BINUTILS_FLAGS= -QEMU_TEST=$KARCH - -ROOT=sda -CONSOLE=ttyAMA0 - -# Gentoo from Scratch -GFS_CHOST="armv4l-gentoo-linux-uclibc" -GFS_ARCH="arm" - -UCLIBC_CONFIG=" -TARGET_arm=y -ARCH_WANTS_LITTLE_ENDIAN=y -" - -LINUX_CONFIG=" - -# Processor config - -# QEMU patch: http://www.mail-archive.com/qemu-devel@nongnu.org/msg19370.html -# and QEMU option '-cpu arm920t' enable CONFIG_CPU_ARM920T=y which is the -# processor that actually _needs_ this code. But until then, qemu can only -# emulate an armv5 CPU... - -CONFIG_CPU_ARM926T=y -CONFIG_MMU=y - -# Versatile board - -CONFIG_ARCH_VERSATILE_PB=y -CONFIG_PCI_LEGACY=y -CONFIG_SERIAL_NONSTANDARD=y -CONFIG_SERIAL_AMBA_PL011=y -CONFIG_SERIAL_AMBA_PL011_CONSOLE=y -CONFIG_RTC_DRV_PL031=y -CONFIG_SCSI_SYM53C8XX_2=y -CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0 -CONFIG_SCSI_SYM53C8XX_MMIO=y -" - -emulator_command() -{ - echo qemu-system-arm -M versatilepb $(qemu_defaults "$@") \ - -net nic,model=rtl8139 -net user -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv4tl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/armv4tl Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,70 @@ +DESCRIPTION=" +ARM v4, with thumb support, little endian, EABI, soft float. + +This is the lowest-end arm instruction set that can support EABI, the current +binary ABI documented by ARM. It's used used in 920t processors (such as the +OpenMoko Freerunner). + +This is \"the i386 of ARM\", an extremely generic low-end arm image that +should run on any arm hardware still in use today (except ARMv7M, which +is arm in name only). +" + +KARCH=arm +KERNEL_PATH=arch/${KARCH}/boot/zImage +GCC_FLAGS="--with-march=armv4t --with-float=soft" +BINUTILS_FLAGS= +QEMU_TEST=$KARCH + +CROSS_TARGET=armv4tl-unknown-linux-gnueabi + +ROOT=sda +CONSOLE=ttyAMA0 + +# This is every bit as ugly as it looks, because it's for gcc. +export target_cpu_cname=arm9tdmi + +# Gentoo from Scratch +GFS_CHOST="$CROSS_TARGET" +GFS_ARCH="$KARCH" + +UCLIBC_CONFIG=" +TARGET_arm=y +CONFIG_ARM_EABI=y +ARCH_WANTS_LITTLE_ENDIAN=y +DOPIC=y +" + +LINUX_CONFIG=" + +# Processor config + +# QEMU patch: http://www.mail-archive.com/qemu-devel@nongnu.org/msg19370.html +# and QEMU option '-cpu arm920t' enable CONFIG_CPU_ARM920T=y which is the +# processor that actually _needs_ this code. But until then, qemu can only +# emulate an armv5 CPU... + +CONFIG_CPU_ARM926T=y +CONFIG_MMU=y +CONFIG_VFP=y +CONFIG_ARM_THUMB=y +CONFIG_AEABI=y + +# Versatile board + +CONFIG_ARCH_VERSATILE_PB=y +CONFIG_PCI_LEGACY=y +CONFIG_SERIAL_NONSTANDARD=y +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_RTC_DRV_PL031=y +CONFIG_SCSI_SYM53C8XX_2=y +CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0 +CONFIG_SCSI_SYM53C8XX_MMIO=y +" + +emulator_command() +{ + echo qemu-system-arm -M versatilepb $(qemu_defaults "$@") \ + -net nic,model=rtl8139 -net user +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv4tl/settings --- a/sources/targets/armv4tl/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -DESCRIPTION=" -ARM v4, with thumb support, little endian, EABI, soft float. - -This is the lowest-end arm instruction set that can support EABI, the current -binary ABI documented by ARM. It's used used in 920t processors (such as the -OpenMoko Freerunner). - -This is \"the i386 of ARM\", an extremely generic low-end arm image that -should run on any arm hardware still in use today (except ARMv7M, which -is arm in name only). -" - -KARCH=arm -KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS="--with-march=armv4t --with-float=soft" -BINUTILS_FLAGS= -QEMU_TEST=$KARCH - -CROSS_TARGET=armv4tl-unknown-linux-gnueabi - -ROOT=sda -CONSOLE=ttyAMA0 - -# This is every bit as ugly as it looks, because it's for gcc. -export target_cpu_cname=arm9tdmi - -# Gentoo from Scratch -GFS_CHOST="$CROSS_TARGET" -GFS_ARCH="$KARCH" - -UCLIBC_CONFIG=" -TARGET_arm=y -CONFIG_ARM_EABI=y -ARCH_WANTS_LITTLE_ENDIAN=y -DOPIC=y -" - -LINUX_CONFIG=" - -# Processor config - -# QEMU patch: http://www.mail-archive.com/qemu-devel@nongnu.org/msg19370.html -# and QEMU option '-cpu arm920t' enable CONFIG_CPU_ARM920T=y which is the -# processor that actually _needs_ this code. But until then, qemu can only -# emulate an armv5 CPU... - -CONFIG_CPU_ARM926T=y -CONFIG_MMU=y -CONFIG_VFP=y -CONFIG_ARM_THUMB=y -CONFIG_AEABI=y - -# Versatile board - -CONFIG_ARCH_VERSATILE_PB=y -CONFIG_PCI_LEGACY=y -CONFIG_SERIAL_NONSTANDARD=y -CONFIG_SERIAL_AMBA_PL011=y -CONFIG_SERIAL_AMBA_PL011_CONSOLE=y -CONFIG_RTC_DRV_PL031=y -CONFIG_SCSI_SYM53C8XX_2=y -CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0 -CONFIG_SCSI_SYM53C8XX_MMIO=y -" - -emulator_command() -{ - echo qemu-system-arm -M versatilepb $(qemu_defaults "$@") \ - -net nic,model=rtl8139 -net user -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv5l --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/armv5l Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,58 @@ +DESCRIPTION=" +ARM v5, little endian, EABI with vector floating point (vfp). + +ARMv5 is the Pentium of the ARM world. Most modern arm hardware should be +able to run this, and hardware that supports the v5 instruction set should run +this about 25% faster than code compiled for v4. +" + +KARCH=arm +KERNEL_PATH=arch/${KARCH}/boot/zImage +GCC_FLAGS="--with-march=armv5 --with-mfloat-abi=soft --with-mfp=vfp" +BINUTILS_FLAGS= +QEMU_TEST=$KARCH + +CROSS_TARGET=armv5l-unknown-linux-gnueabi + +ROOT=sda +CONSOLE=ttyAMA0 + +# Gentoo from Scratch +GFS_CHOST="armv5l-unknown-linux-gnueabi" +GFS_ARCH="arm" + +UCLIBC_CONFIG=" +TARGET_arm=y +CONFIG_ARM_EABI=y +ARCH_WANTS_LITTLE_ENDIAN=y +DOPIC=y +" + +LINUX_CONFIG=" + +# Processor config + +CONFIG_CPU_ARM926T=y +CONFIG_MMU=y +CONFIG_VFP=y +CONFIG_ARM_THUMB=y +CONFIG_AEABI=y + +# Versatile board + +CONFIG_ARCH_VERSATILE_PB=y +CONFIG_PCI_LEGACY=y +CONFIG_SERIAL_NONSTANDARD=y +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_RTC_DRV_PL031=y +CONFIG_SCSI_SYM53C8XX_2=y +CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0 +CONFIG_SCSI_SYM53C8XX_MMIO=y +" + +emulator_command() +{ + echo qemu-system-arm -M versatilepb $(qemu_defaults "$@") \ + -net nic,model=rtl8139 -net user +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv5l/settings --- a/sources/targets/armv5l/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -DESCRIPTION=" -ARM v5, little endian, EABI with vector floating point (vfp). - -ARMv5 is the Pentium of the ARM world. Most modern arm hardware should be -able to run this, and hardware that supports the v5 instruction set should run -this about 25% faster than code compiled for v4. -" - -KARCH=arm -KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS="--with-march=armv5 --with-mfloat-abi=soft --with-mfp=vfp" -BINUTILS_FLAGS= -QEMU_TEST=$KARCH - -CROSS_TARGET=armv5l-unknown-linux-gnueabi - -ROOT=sda -CONSOLE=ttyAMA0 - -# Gentoo from Scratch -GFS_CHOST="armv5l-unknown-linux-gnueabi" -GFS_ARCH="arm" - -UCLIBC_CONFIG=" -TARGET_arm=y -CONFIG_ARM_EABI=y -ARCH_WANTS_LITTLE_ENDIAN=y -DOPIC=y -" - -LINUX_CONFIG=" - -# Processor config - -CONFIG_CPU_ARM926T=y -CONFIG_MMU=y -CONFIG_VFP=y -CONFIG_ARM_THUMB=y -CONFIG_AEABI=y - -# Versatile board - -CONFIG_ARCH_VERSATILE_PB=y -CONFIG_PCI_LEGACY=y -CONFIG_SERIAL_NONSTANDARD=y -CONFIG_SERIAL_AMBA_PL011=y -CONFIG_SERIAL_AMBA_PL011_CONSOLE=y -CONFIG_RTC_DRV_PL031=y -CONFIG_SCSI_SYM53C8XX_2=y -CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0 -CONFIG_SCSI_SYM53C8XX_MMIO=y -" - -emulator_command() -{ - echo qemu-system-arm -M versatilepb $(qemu_defaults "$@") \ - -net nic,model=rtl8139 -net user -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv6l --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/armv6l Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,59 @@ +DESCRIPTION=" +ARM v6, little endian, EABI with vector floating point (vfp). + +The Pentium II of the ARM world: this architecture was introduced in 2001 +and actually shipped silicon around 2003. This hardware can still run v4 +and v5 instruction sets, but recompiling for armv6 should provide a +slight performance boost (and thus better battery life). +" + +KARCH=arm +KERNEL_PATH=arch/${KARCH}/boot/zImage +GCC_FLAGS="--with-march=armv6 --with-mfloat-abi=soft --with-mfp=vfp" +BINUTILS_FLAGS= +QEMU_TEST=$KARCH + +CROSS_TARGET="armv6l-unknown-linux-gnueabi" + +ROOT=sda +CONSOLE=ttyAMA0 + +# Gentoo from Scratch +GFS_CHOST="armv6l-unknown-linux-gnueabi" +GFS_ARCH="arm" + +UCLIBC_CONFIG=" +TARGET_arm=y +CONFIG_ARM_EABI=y +ARCH_WANTS_LITTLE_ENDIAN=y +DOPIC=y +" + +LINUX_CONFIG=" + +# Processor config + +CONFIG_CPU_V6=y +CONFIG_MMU=y +CONFIG_ARM_THUMB=y +CONFIG_AEABI=y +CONFIG_VFP=y + +# Versatile board + +CONFIG_ARCH_VERSATILE_PB=y +CONFIG_PCI_LEGACY=y +CONFIG_SERIAL_NONSTANDARD=y +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_RTC_DRV_PL031=y +CONFIG_SCSI_SYM53C8XX_2=y +CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0 +CONFIG_SCSI_SYM53C8XX_MMIO=y +" + +emulator_command() +{ + echo qemu-system-arm -M versatilepb -cpu arm1136-r2 $(qemu_defaults "$@") \ + -net nic,model=rtl8139 -net user +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/armv6l/settings --- a/sources/targets/armv6l/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +0,0 @@ -DESCRIPTION=" -ARM v6, little endian, EABI with vector floating point (vfp). - -The Pentium II of the ARM world: this architecture was introduced in 2001 -and actually shipped silicon around 2003. This hardware can still run v4 -and v5 instruction sets, but recompiling for armv6 should provide a -slight performance boost (and thus better battery life). -" - -KARCH=arm -KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS="--with-march=armv6 --with-mfloat-abi=soft --with-mfp=vfp" -BINUTILS_FLAGS= -QEMU_TEST=$KARCH - -CROSS_TARGET="armv6l-unknown-linux-gnueabi" - -ROOT=sda -CONSOLE=ttyAMA0 - -# Gentoo from Scratch -GFS_CHOST="armv6l-unknown-linux-gnueabi" -GFS_ARCH="arm" - -UCLIBC_CONFIG=" -TARGET_arm=y -CONFIG_ARM_EABI=y -ARCH_WANTS_LITTLE_ENDIAN=y -DOPIC=y -" - -LINUX_CONFIG=" - -# Processor config - -CONFIG_CPU_V6=y -CONFIG_MMU=y -CONFIG_ARM_THUMB=y -CONFIG_AEABI=y -CONFIG_VFP=y - -# Versatile board - -CONFIG_ARCH_VERSATILE_PB=y -CONFIG_PCI_LEGACY=y -CONFIG_SERIAL_NONSTANDARD=y -CONFIG_SERIAL_AMBA_PL011=y -CONFIG_SERIAL_AMBA_PL011_CONSOLE=y -CONFIG_RTC_DRV_PL031=y -CONFIG_SCSI_SYM53C8XX_2=y -CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=0 -CONFIG_SCSI_SYM53C8XX_MMIO=y -" - -emulator_command() -{ - echo qemu-system-arm -M versatilepb -cpu arm1136-r2 $(qemu_defaults "$@") \ - -net nic,model=rtl8139 -net user -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/i686 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/i686 Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,37 @@ +DESCRIPTION="Standard 32-bit x86 target, Pentium 3 or later." + +KARCH=i386 +KERNEL_PATH=arch/${KARCH}/boot/bzImage +BINUTILS_FLAGS= +GCC_FLAGS= +QEMU_TEST=$KARCH + +CONSOLE=ttyS0 +ROOT=hda + +# Gentoo from Scratch +GFS_CHOST="i686-gentoo-linux-uclibc" +GFS_ARCH="x86" + +UCLIBC_CONFIG=" +ARCH_HAS_MMU=y +TARGET_i386=y +CONFIG_PENTIUMIII=y +UCLIBC_HAS_FPU=y +" + +LINUX_CONFIG=" +CONFIG_MPENTIUMII=y +CONFIG_ACPI=y +CONFIG_BLK_DEV_PIIX=y +CONFIG_NETDEV_1000=y +CONFIG_E1000=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +" + +emulator_command() +{ + echo qemu -cpu pentium3 $(qemu_defaults "$@") \ + -net nic,model=e1000 -net user +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/i686/settings --- a/sources/targets/i686/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -DESCRIPTION="Standard 32-bit x86 target, Pentium 3 or later." - -KARCH=i386 -KERNEL_PATH=arch/${KARCH}/boot/bzImage -BINUTILS_FLAGS= -GCC_FLAGS= -QEMU_TEST=$KARCH - -CONSOLE=ttyS0 -ROOT=hda - -# Gentoo from Scratch -GFS_CHOST="i686-gentoo-linux-uclibc" -GFS_ARCH="x86" - -UCLIBC_CONFIG=" -ARCH_HAS_MMU=y -TARGET_i386=y -CONFIG_PENTIUMIII=y -UCLIBC_HAS_FPU=y -" - -LINUX_CONFIG=" -CONFIG_MPENTIUMII=y -CONFIG_ACPI=y -CONFIG_BLK_DEV_PIIX=y -CONFIG_NETDEV_1000=y -CONFIG_E1000=y -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -" - -emulator_command() -{ - echo qemu -cpu pentium3 $(qemu_defaults "$@") \ - -net nic,model=e1000 -net user -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/mips --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/mips Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,34 @@ +DESCRIPTION="Mips r4k big endian." + +KARCH=mips +KERNEL_PATH=vmlinux +BINUTILS_FLAGS= +GCC_FLAGS= +QEMU_TEST=mips + +ROOT=hda +CONSOLE=ttyS0 + +# Gentoo from Scratch +GFS_CHOST="mips-gentoo-linux-uclibc" +GFS_ARCH="mips" + +UCLIBC_CONFIG=" +TARGET_mips=y +UCLIBC_HAS_FPU=y +" + +LINUX_CONFIG=" +CONFIG_MIPS_MALTA=y +CONFIG_CPU_MIPS32_R2=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +#CONFIG_PM=y +CONFIG_PCNET32=y +CONFIG_BLK_DEV_PIIX=y +" + +emulator_command() +{ + echo qemu-system-mips -M malta $(qemu_defaults "$@") +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/mips/settings --- a/sources/targets/mips/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -DESCRIPTION="Mips r4k big endian." - -KARCH=mips -KERNEL_PATH=vmlinux -BINUTILS_FLAGS= -GCC_FLAGS= -QEMU_TEST=mips - -ROOT=hda -CONSOLE=ttyS0 - -# Gentoo from Scratch -GFS_CHOST="mips-gentoo-linux-uclibc" -GFS_ARCH="mips" - -UCLIBC_CONFIG=" -TARGET_mips=y -UCLIBC_HAS_FPU=y -" - -LINUX_CONFIG=" -CONFIG_MIPS_MALTA=y -CONFIG_CPU_MIPS32_R2=y -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -#CONFIG_PM=y -CONFIG_PCNET32=y -CONFIG_BLK_DEV_PIIX=y -" - -emulator_command() -{ - echo qemu-system-mips -M malta $(qemu_defaults "$@") -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/mips64 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/mips64 Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,36 @@ +DESCRIPTION="64 bit big endian mips" + +KARCH=mips +KERNEL_PATH=vmlinux +BINUTILS_FLAGS="--enable-64-bit-bfd" +GCC_FLAGS= +QEMU_TEST=mips64 + +ROOT=hda +CONSOLE=ttyS0 + +# Gentoo from Scratch +GFS_CHOST="mips64-gentoo-linux-uclibc" +GFS_ARCH="mips64" + +UCLIBC_CONFIG=" +TARGET_mips=y +CONFIG_MIPS_N64_ABI=y +CONFIG_MIPS_ISA_MIPS64=y +UCLIBC_HAS_FPU=y +" + +LINUX_CONFIG=" +CONFIG_CPU_MIPS64_R1=y +CONFIG_64BIT=y +CONFIG_MIPS_MALTA=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_PCNET32=y +CONFIG_BLK_DEV_PIIX=y +" + +emulator_command() +{ + echo qemu-system-mips64 -M malta $(qemu_defaults "$@") +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/mips64/settings --- a/sources/targets/mips64/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -DESCRIPTION="64 bit big endian mips" - -KARCH=mips -KERNEL_PATH=vmlinux -BINUTILS_FLAGS="--enable-64-bit-bfd" -GCC_FLAGS= -QEMU_TEST=mips64 - -ROOT=hda -CONSOLE=ttyS0 - -# Gentoo from Scratch -GFS_CHOST="mips64-gentoo-linux-uclibc" -GFS_ARCH="mips64" - -UCLIBC_CONFIG=" -TARGET_mips=y -CONFIG_MIPS_N64_ABI=y -CONFIG_MIPS_ISA_MIPS64=y -UCLIBC_HAS_FPU=y -" - -LINUX_CONFIG=" -CONFIG_CPU_MIPS64_R1=y -CONFIG_64BIT=y -CONFIG_MIPS_MALTA=y -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -CONFIG_PCNET32=y -CONFIG_BLK_DEV_PIIX=y -" - -emulator_command() -{ - echo qemu-system-mips64 -M malta $(qemu_defaults "$@") -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/mipsel --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/mipsel Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,35 @@ +DESCRIPTION="Mips r4k little endian" + +KARCH=mips +KERNEL_PATH=vmlinux +BINUTILS_FLAGS= +GCC_FLAGS= +QEMU_TEST=mipsel + +ROOT=hda +CONSOLE=ttyS0 + +# Gentoo from Scratch +GFS_CHOST="mipsel-gentoo-linux-uclibc" +GFS_ARCH="mips" + +UCLIBC_CONFIG=" +TARGET_mips=y +ARCH_WANTS_LITTLE_ENDIAN=y +UCLIBC_HAS_FPU=y +" + +LINUX_CONFIG=" +CONFIG_MIPS_MALTA=y +CONFIG_CPU_LITTLE_ENDIAN=y +CONFIG_CPU_MIPS32_R2=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_PCNET32=y +CONFIG_BLK_DEV_PIIX=y +" + +emulator_command() +{ + echo qemu-system-mipsel -M malta $(qemu_defaults "$@") +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/mipsel/settings --- a/sources/targets/mipsel/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -DESCRIPTION="Mips r4k little endian" - -KARCH=mips -KERNEL_PATH=vmlinux -BINUTILS_FLAGS= -GCC_FLAGS= -QEMU_TEST=mipsel - -ROOT=hda -CONSOLE=ttyS0 - -# Gentoo from Scratch -GFS_CHOST="mipsel-gentoo-linux-uclibc" -GFS_ARCH="mips" - -UCLIBC_CONFIG=" -TARGET_mips=y -ARCH_WANTS_LITTLE_ENDIAN=y -UCLIBC_HAS_FPU=y -" - -LINUX_CONFIG=" -CONFIG_MIPS_MALTA=y -CONFIG_CPU_LITTLE_ENDIAN=y -CONFIG_CPU_MIPS32_R2=y -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -CONFIG_PCNET32=y -CONFIG_BLK_DEV_PIIX=y -" - -emulator_command() -{ - echo qemu-system-mipsel -M malta $(qemu_defaults "$@") -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/sh4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/sh4 Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,86 @@ +DESCRIPTION=" +Hitachi developed the 4th iteration of the SuperH processor for the Dreamcast game console in 1998. +The design remains popular in Japan (especially the automotive industry), and is these days owned +by Renesas, a joint venture between Hitachi, NEC, and Mitsubishi. + +There's a wiki about it at http://linux-sh.org. +" + +KARCH=sh +KERNEL_PATH=arch/${KARCH}/boot/zImage +GCC_FLAGS= #"--with-cpu=m4-nofpu" +BINUTILS_FLAGS= +QEMU_TEST=$KARCH +CROSS_TARGET=sh-superh-linux + +ROOT=sda +CONSOLE="ttySC1 noiotrap" + +# Gentoo from Scratch +GFS_CHOST="sh4-gentoo-linux-uclibc" +GFS_ARCH="sh" + +UCLIBC_CONFIG=" +TARGET_sh=y +ARCH_WANTS_LITTLE_ENDIAN=y +UCLIBC_HAS_FPU=y +" + +# This needs some massive cleanup, but part of the problem is arch/sh4/Kconfig forces on EXPERT +# which requies re-selecting a bunch of standard features. Apparently sh is not meant to be +# used by normal people, it's "special". + +LINUX_CONFIG=" +CONFIG_HOTPLUG=y +CONFIG_PRINTK=y +CONFIG_BUG=y +CONFIG_ELF_CORE=y +CONFIG_BASE_FULL=y +CONFIG_SHMEM=y +CONFIG_AIO=y +CONFIG_PCI_QUIRKS=y +CONFIG_BLOCK=y +CONFIG_CPU_SUBTYPE_SH7751R=y +CONFIG_MMU=y +CONFIG_MEMORY_START=0x0c000000 +CONFIG_VSYSCALL=y +CONFIG_FLATMEM_MANUAL=y +CONFIG_SH_FPU=y +CONFIG_SH_RTS7751R2D=y +CONFIG_RTS7751R2D_PLUS=y +CONFIG_SH_TIMER_TMU=y +CONFIG_HW_PERF_EVENTS=y +CONFIG_STANDALONE=y +CONFIG_MISC_DEVICES=y +CONFIG_SCSI_PROC_FS=y +CONFIG_ATA=y +CONFIG_SATA_PMP=y +CONFIG_ATA_SFF=y +CONFIG_ATA_BMDMA=y +CONFIG_PATA_PLATFORM=y +CONFIG_UNIX98_PTYS=y +CONFIG_LEGACY_PTYS=y +CONFIG_DEVKMEM=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_PCI=y +CONFIG_SERIAL_SH_SCI=y +CONFIG_SERIAL_SH_SCI_CONSOLE=y +CONFIG_SPI=y +CONFIG_SPI_SH_SCI=y +CONFIG_MFD_SUPPORT=y +CONFIG_MFD_SM501=y +CONFIG_RTC_DRV_R9701=y +CONFIG_FILE_LOCKING=y +CONFIG_PROC_FS=y +CONFIG_PROC_SYSCTL=y +CONFIG_PROC_PAGE_MONITOR=y +CONFIG_SYSFS=y +CONFIG_CRC_T10DIF=y +" + +emulator_command() +{ + echo qemu-system-sh4 -M r2d $(qemu_defaults "$@") -monitor null -serial null -serial stdio +} + +# qemu-system-sh4 -m 512 -nographic -monitor null -serial null -serial stdio -append 'earlyprintk=sh-sci.1 root=/dev/sda rw init=/bin/ash' diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/sh4/settings --- a/sources/targets/sh4/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -DESCRIPTION=" -Hitachi developed the 4th iteration of the SuperH processor for the Dreamcast game console in 1998. -The design remains popular in Japan (especially the automotive industry), and is these days owned -by Renesas, a joint venture between Hitachi, NEC, and Mitsubishi. - -There's a wiki about it at http://linux-sh.org. -" - -KARCH=sh -KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS= #"--with-cpu=m4-nofpu" -BINUTILS_FLAGS= -QEMU_TEST=$KARCH -CROSS_TARGET=sh-superh-linux - -ROOT=sda -CONSOLE="ttySC1 noiotrap" - -# Gentoo from Scratch -GFS_CHOST="sh4-gentoo-linux-uclibc" -GFS_ARCH="sh" - -UCLIBC_CONFIG=" -TARGET_sh=y -ARCH_WANTS_LITTLE_ENDIAN=y -UCLIBC_HAS_FPU=y -" - -# This needs some massive cleanup, but part of the problem is arch/sh4/Kconfig forces on EXPERT -# which requies re-selecting a bunch of standard features. Apparently sh is not meant to be -# used by normal people, it's "special". - -LINUX_CONFIG=" -CONFIG_HOTPLUG=y -CONFIG_PRINTK=y -CONFIG_BUG=y -CONFIG_ELF_CORE=y -CONFIG_BASE_FULL=y -CONFIG_SHMEM=y -CONFIG_AIO=y -CONFIG_PCI_QUIRKS=y -CONFIG_BLOCK=y -CONFIG_CPU_SUBTYPE_SH7751R=y -CONFIG_MMU=y -CONFIG_MEMORY_START=0x0c000000 -CONFIG_VSYSCALL=y -CONFIG_FLATMEM_MANUAL=y -CONFIG_SH_FPU=y -CONFIG_SH_RTS7751R2D=y -CONFIG_RTS7751R2D_PLUS=y -CONFIG_SH_TIMER_TMU=y -CONFIG_HW_PERF_EVENTS=y -CONFIG_STANDALONE=y -CONFIG_MISC_DEVICES=y -CONFIG_SCSI_PROC_FS=y -CONFIG_ATA=y -CONFIG_SATA_PMP=y -CONFIG_ATA_SFF=y -CONFIG_ATA_BMDMA=y -CONFIG_PATA_PLATFORM=y -CONFIG_UNIX98_PTYS=y -CONFIG_LEGACY_PTYS=y -CONFIG_DEVKMEM=y -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_PCI=y -CONFIG_SERIAL_SH_SCI=y -CONFIG_SERIAL_SH_SCI_CONSOLE=y -CONFIG_SPI=y -CONFIG_SPI_SH_SCI=y -CONFIG_MFD_SUPPORT=y -CONFIG_MFD_SM501=y -CONFIG_RTC_DRV_R9701=y -CONFIG_FILE_LOCKING=y -CONFIG_PROC_FS=y -CONFIG_PROC_SYSCTL=y -CONFIG_PROC_PAGE_MONITOR=y -CONFIG_SYSFS=y -CONFIG_CRC_T10DIF=y -" - -emulator_command() -{ - echo qemu-system-sh4 -M r2d $(qemu_defaults "$@") -monitor null -serial null -serial stdio -} - -# qemu-system-sh4 -m 512 -nographic -monitor null -serial null -serial stdio -append 'earlyprintk=sh-sci.1 root=/dev/sda rw init=/bin/ash' diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/sparc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/sparc Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,45 @@ +DESCRIPTION=" +32-bit sparc + +Sparc was a risc processor design Sun Microsystems came up with to replace +m68k in their Unix workstations. With the advent of OpenSolaris and +x86-64, Fujitsu mainframes may now use more of it than they do. + +This has been broken for a couple years, and nobody's bothered to fix it. +" + +# Originally contributed by Bertl. + +KARCH=sparc +KERNEL_PATH=arch/${KARCH}/boot/image +BINUTILS_FLAGS= +GCC_FLAGS= +QEMU_TEST=$KARCH + +BUILD_STATIC=all + +ROOT=sda +CONSOLE=ttyS0 + +UCLIBC_CONFIG=" +TARGET_sparc=y +UCLIBC_HAS_FPU=y +FORCE_SHAREABLE_TEXT_SEGMENTS=y +" + +LINUX_CONFIG=" +CONFIG_SCSI_SUNESP=y +CONFIG_SUNLANCE=y +CONFIG_SERIAL_SUNZILOG=y +CONFIG_SERIAL_SUNZILOG_CONSOLE=y +CONFIG_SUN_MOSTEK_RTC=y +" + +#CONFIG_UNWIND_INFO +#CONFIG_FORCED_INLINING +#CONFIG_RTC_HCTOSYS + +emulator_command() +{ + echo qemu-system-sparc $(qemu_defaults "$@") +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/sparc/settings --- a/sources/targets/sparc/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -DESCRIPTION=" -32-bit sparc - -Sparc was a risc processor design Sun Microsystems came up with to replace -m68k in their Unix workstations. With the advent of OpenSolaris and -x86-64, Fujitsu mainframes may now use more of it than they do. - -This has been broken for a couple years, and nobody's bothered to fix it. -" - -# Originally contributed by Bertl. - -KARCH=sparc -KERNEL_PATH=arch/${KARCH}/boot/image -BINUTILS_FLAGS= -GCC_FLAGS= -QEMU_TEST=$KARCH - -BUILD_STATIC=all - -ROOT=sda -CONSOLE=ttyS0 - -UCLIBC_CONFIG=" -TARGET_sparc=y -UCLIBC_HAS_FPU=y -FORCE_SHAREABLE_TEXT_SEGMENTS=y -" - -LINUX_CONFIG=" -CONFIG_SCSI_SUNESP=y -CONFIG_SUNLANCE=y -CONFIG_SERIAL_SUNZILOG=y -CONFIG_SERIAL_SUNZILOG_CONSOLE=y -CONFIG_SUN_MOSTEK_RTC=y -" - -#CONFIG_UNWIND_INFO -#CONFIG_FORCED_INLINING -#CONFIG_RTC_HCTOSYS - -emulator_command() -{ - echo qemu-system-sparc $(qemu_defaults "$@") -} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/x86_64 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/x86_64 Sun Jun 26 20:09:37 2011 -0500 @@ -0,0 +1,37 @@ +DESCRIPTION=" +64-bit x86. + +Modern standard PC architecture. Runs i686 code as well. +" + +KARCH=x86_64 +KERNEL_PATH=arch/${KARCH}/boot/bzImage +GCC_FLAGS= +BINUTILS_FLAGS="--enable-64-bit-bfd" +QEMU_TEST= + +ROOT=hda +CONSOLE=ttyS0 + +# Gentoo from Scratch +GFS_CHOST="x86_64-gentoo-linux-uclibc" +GFS_ARCH="amd64" + +UCLIBC_CONFIG=" +TARGET_x86_64=y +UCLIBC_HAS_FPU=y +" + +LINUX_CONFIG=" +CONFIG_ACPI=y +CONFIG_BLK_DEV_PIIX=y +CONFIG_NETDEV_1000=y +CONFIG_E1000=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +" + +emulator_command() +{ + echo qemu-system-x86_64 $(qemu_defaults "$@") +} diff -r ee9ee44835e9 -r 0b1022dc9a36 sources/targets/x86_64/settings --- a/sources/targets/x86_64/settings Sun Jun 26 19:25:19 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -DESCRIPTION=" -64-bit x86. - -Modern standard PC architecture. Runs i686 code as well. -" - -KARCH=x86_64 -KERNEL_PATH=arch/${KARCH}/boot/bzImage -GCC_FLAGS= -BINUTILS_FLAGS="--enable-64-bit-bfd" -QEMU_TEST= - -ROOT=hda -CONSOLE=ttyS0 - -# Gentoo from Scratch -GFS_CHOST="x86_64-gentoo-linux-uclibc" -GFS_ARCH="amd64" - -UCLIBC_CONFIG=" -TARGET_x86_64=y -UCLIBC_HAS_FPU=y -" - -LINUX_CONFIG=" -CONFIG_ACPI=y -CONFIG_BLK_DEV_PIIX=y -CONFIG_NETDEV_1000=y -CONFIG_E1000=y -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -" - -emulator_command() -{ - echo qemu-system-x86_64 $(qemu_defaults "$@") -}