summaryrefslogtreecommitdiffstats
path: root/roms
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2014-01-20 00:25:40 +0100
committerAlexander Graf <agraf@suse.de>2014-06-16 13:24:35 +0200
commit4e73c781923fd5b7608db65156cfa72c4b31ba1d (patch)
tree5887444a0ab4a99b7a3285cb350f8cae1e536e87 /roms
parent903585dec63ee83bd8149006e31f92ea789b38e3 (diff)
downloadhqemu-4e73c781923fd5b7608db65156cfa72c4b31ba1d.zip
hqemu-4e73c781923fd5b7608db65156cfa72c4b31ba1d.tar.gz
PPC: Add u-boot firmware for e500
This adds a special build of u-boot tailored for the e500 platforms we emulate. It is based on the current version of upstream u-boot which contains all the code necessary to drive our QEMU provided machines. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'roms')
-rw-r--r--roms/Makefile9
m---------roms/u-boot0
2 files changed, 9 insertions, 0 deletions
diff --git a/roms/Makefile b/roms/Makefile
index 2721b02..610b534 100644
--- a/roms/Makefile
+++ b/roms/Makefile
@@ -31,6 +31,7 @@ find-cross-gcc = $(firstword $(wildcard $(patsubst %ld,%gcc,$(call find-cross-ld
find-cross-prefix = $(subst gcc,,$(notdir $(call find-cross-gcc,$(1))))
powerpc64_cross_prefix := $(call find-cross-prefix,powerpc64)
+powerpc_cross_prefix := $(call find-cross-prefix,powerpc)
x86_64_cross_prefix := $(call find-cross-prefix,x86_64)
#
@@ -55,6 +56,7 @@ default:
@echo " efirom -- update nic roms (bios+efi, this needs"
@echo " the EfiRom utility from edk2 / tianocore)"
@echo " slof -- update slof.bin"
+ @echo " u-boot.e500 -- update u-boot.e500"
bios: build-seabios-config-seabios-128k build-seabios-config-seabios-256k
cp seabios/builds/seabios-128k/bios.bin ../pc-bios/bios.bin
@@ -132,6 +134,12 @@ slof:
$(MAKE) -C SLOF CROSS=$(powerpc64_cross_prefix) qemu
cp SLOF/boot_rom.bin ../pc-bios/slof.bin
+u-boot.e500:
+ $(MAKE) -C u-boot O=build.e500 qemu-ppce500_config
+ $(MAKE) -C u-boot CROSS_COMPILE=$(powerpc_cross_prefix) \
+ O=build.e500
+ $(powerpc_cross_prefix)strip u-boot/build.e500/u-boot -o \
+ ../pc-bios/u-boot.e500
clean:
rm -rf seabios/.config seabios/out seabios/builds
@@ -141,3 +149,4 @@ clean:
rm -f sgabios/.depend
$(MAKE) -C ipxe/src veryclean
$(MAKE) -C SLOF clean
+ rm -rf u-boot/build.e500
diff --git a/roms/u-boot b/roms/u-boot
new file mode 160000
+Subproject 2072e7262965bb48d7fffb1e283101e6ed8b21a
OpenPOWER on IntegriCloud