# HG changeset patch # User Rob Landley # Date 1452121039 21600 # Node ID d8233213e7702937a887120ac613a08427d851a3 # Parent 76106c2cccf2f2282c295b2f361a3547d739bcdc Redo powerpc-440fp target. diff -r 76106c2cccf2 -r d8233213e770 sources/patches/linux-powerpc-bamboo.patch --- /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 diff -r 76106c2cccf2 -r d8233213e770 sources/targets/powerpc-440fp --- 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 "$@") +}