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, 40 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/linux-powerpc-bamboo.patch	Wed Jan 06 16:57:19 2016 -0600
@@ -0,0 +1,15 @@
+The bamboo target unconditionally builds uboot, which adds additional
+build prerequisites, but qemu cam boot from vlinux just fine.
+
+diff -ruN linux/arch/powerpc/boot/Makefile linux.bak/arch/powerpc/boot/Makefile
+--- linux/arch/powerpc/boot/Makefile	2015-08-30 13:34:09.000000000 -0500
++++ linux.bak/arch/powerpc/boot/Makefile	2016-01-06 16:51:31.958735214 -0600
+@@ -239,7 +239,7 @@
+ 
+ # Board ports in arch/powerpc/platform/44x/Kconfig
+ image-$(CONFIG_EBONY)			+= treeImage.ebony cuImage.ebony
+-image-$(CONFIG_BAMBOO)			+= treeImage.bamboo cuImage.bamboo
++image-$(CONFIG_BAMBOO)			+= treeImage.bamboo #cuImage.bamboo
+ image-$(CONFIG_SAM440EP)		+= cuImage.sam440ep
+ image-$(CONFIG_SEQUOIA)			+= cuImage.sequoia
+ image-$(CONFIG_RAINIER)			+= cuImage.rainier
--- a/sources/targets/powerpc-440fp	Mon Jan 04 14:14:54 2016 -0600
+++ b/sources/targets/powerpc-440fp	Wed Jan 06 16:57:19 2016 -0600
@@ -1,10 +1,33 @@
 DESCRIPTION="Power PC 440, with hardware floating point."
 
-base_architecture powerpc
-GCC_FLAGS="--with-cpu=440fp --with-tune=440fp ${GCC_FLAGS}"
+GCC_FLAGS="--with-cpu=440fp --with-tune=440fp --enable-secureplt ${GCC_FLAGS}"
 BINUTILS_FLAGS="--with-cpu=440fp --with-tune=440fp"
+CROSS_TARGET=powerpc-unknown-linux
+KARCH=powerpc
+KERNEL_PATH=vmlinux
+CONSOLE=ttyS0
 
 # LINUX_CONFIG and emulator_command aren't correct, qemu should use -M bamboo
 # and the kernel config should be a variant of 44x/bamboo_defconfig.
 # Unfortunately that's hardwired to require an external project (uboot), and
 # the vmlinux won't boot without a device tree binary. TODO item.
+
+LINUX_CONFIG="
+CONFIG_44x=y
+CONFIG_CROSS_MEMORY_ATTACH=y
+# CONFIG_EMBEDDED is not set
+CONFIG_BAMBOO=y
+#CONFIG_STDBINUTILS=y
+#CONFIG_CMDLINE_BOOL=y
+#CONFIG_CMDLINE=""
+CONFIG_SERIO_SERPORT=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
+#CONFIG_IOMMU_SUPPORT=y
+"
+
+emulator_command()
+{
+  echo qemu-system-ppc -M bamboo $(qemu_defaults "$@")
+}