aboriginal

changeset 1833:d8233213e770 1.4.4

Redo powerpc-440fp target.
author Rob Landley <rob@landley.net>
date Wed, 06 Jan 2016 16:57:19 -0600
parents 76106c2cccf2
children 52e147cbc471
files sources/patches/linux-powerpc-bamboo.patch sources/targets/powerpc-440fp
diffstat 2 files changed, 39 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sources/patches/linux-powerpc-bamboo.patch	Wed Jan 06 16:57:19 2016 -0600
     1.3 @@ -0,0 +1,15 @@
     1.4 +The bamboo target unconditionally builds uboot, which adds additional
     1.5 +build prerequisites, but qemu cam boot from vlinux just fine.
     1.6 +
     1.7 +diff -ruN linux/arch/powerpc/boot/Makefile linux.bak/arch/powerpc/boot/Makefile
     1.8 +--- linux/arch/powerpc/boot/Makefile	2015-08-30 13:34:09.000000000 -0500
     1.9 ++++ linux.bak/arch/powerpc/boot/Makefile	2016-01-06 16:51:31.958735214 -0600
    1.10 +@@ -239,7 +239,7 @@
    1.11 + 
    1.12 + # Board ports in arch/powerpc/platform/44x/Kconfig
    1.13 + image-$(CONFIG_EBONY)			+= treeImage.ebony cuImage.ebony
    1.14 +-image-$(CONFIG_BAMBOO)			+= treeImage.bamboo cuImage.bamboo
    1.15 ++image-$(CONFIG_BAMBOO)			+= treeImage.bamboo #cuImage.bamboo
    1.16 + image-$(CONFIG_SAM440EP)		+= cuImage.sam440ep
    1.17 + image-$(CONFIG_SEQUOIA)			+= cuImage.sequoia
    1.18 + image-$(CONFIG_RAINIER)			+= cuImage.rainier
     2.1 --- a/sources/targets/powerpc-440fp	Mon Jan 04 14:14:54 2016 -0600
     2.2 +++ b/sources/targets/powerpc-440fp	Wed Jan 06 16:57:19 2016 -0600
     2.3 @@ -1,10 +1,33 @@
     2.4  DESCRIPTION="Power PC 440, with hardware floating point."
     2.5  
     2.6 -base_architecture powerpc
     2.7 -GCC_FLAGS="--with-cpu=440fp --with-tune=440fp ${GCC_FLAGS}"
     2.8 +GCC_FLAGS="--with-cpu=440fp --with-tune=440fp --enable-secureplt ${GCC_FLAGS}"
     2.9  BINUTILS_FLAGS="--with-cpu=440fp --with-tune=440fp"
    2.10 +CROSS_TARGET=powerpc-unknown-linux
    2.11 +KARCH=powerpc
    2.12 +KERNEL_PATH=vmlinux
    2.13 +CONSOLE=ttyS0
    2.14  
    2.15  # LINUX_CONFIG and emulator_command aren't correct, qemu should use -M bamboo
    2.16  # and the kernel config should be a variant of 44x/bamboo_defconfig.
    2.17  # Unfortunately that's hardwired to require an external project (uboot), and
    2.18  # the vmlinux won't boot without a device tree binary. TODO item.
    2.19 +
    2.20 +LINUX_CONFIG="
    2.21 +CONFIG_44x=y
    2.22 +CONFIG_CROSS_MEMORY_ATTACH=y
    2.23 +# CONFIG_EMBEDDED is not set
    2.24 +CONFIG_BAMBOO=y
    2.25 +#CONFIG_STDBINUTILS=y
    2.26 +#CONFIG_CMDLINE_BOOL=y
    2.27 +#CONFIG_CMDLINE=""
    2.28 +CONFIG_SERIO_SERPORT=y
    2.29 +CONFIG_SERIAL_8250=y
    2.30 +CONFIG_SERIAL_8250_CONSOLE=y
    2.31 +CONFIG_SERIAL_OF_PLATFORM=y
    2.32 +#CONFIG_IOMMU_SUPPORT=y
    2.33 +"
    2.34 +
    2.35 +emulator_command()
    2.36 +{
    2.37 +  echo qemu-system-ppc -M bamboo $(qemu_defaults "$@")
    2.38 +}