get microwatt-verilator sim running at different boot base
[ls2.git] / hello_world / Makefile
index 180f7b923106fe3e6b0df5e2918881e05fad472d..e1d6c983e8e066efec8d36ce99ef0ae9e4294681 100644 (file)
@@ -5,8 +5,8 @@ ifneq ("$(ARCH)", "ppc64le")
 endif
 endif
 
-BOOT_INIT_BASE ?= 0xf0000000 # at QSPI address
-# BOOT_INIT_BASE ?= 0xff000000   # at ROM hi address (with coldboot firmware)
+#BOOT_INIT_BASE ?= 0xf0000000 # at QSPI address
+ BOOT_INIT_BASE ?= 0xff000000   # at ROM hi address (with coldboot firmware)
 # BOOT_INIT_BASE ?= 0x0        # start at zero (usual)
 
 CC = $(CROSS_COMPILE)gcc
@@ -32,6 +32,7 @@ console.o: ../lib/console.c
 
 hello_world.elf: hello_world.o head.o console.o powerpc.lds
        $(LD) $(LDFLAGS) -o $@ hello_world.o head.o console.o 
+       powerpc64le-linux-gnu-objdump -D hello_world.elf > hello_world.as
 
 hello_world.bin: hello_world.elf
        $(OBJCOPY) -O binary $^ $@
@@ -40,7 +41,7 @@ hello_world.hex: hello_world.bin
        ../scripts/bin2hex.py $^ > $@
 
 clean:
-       @rm -f *.o hello_world.elf hello_world.bin hello_world.hex
+       @rm -f *.o hello_world.elf hello_world.bin hello_world.hex powerpc.lds
 distclean: clean
        rm -f *~