summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-02-01 16:16:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-02-01 16:16:12 +0100
commit7ca411ecd2dc1c6bc47caad4b1e25a118bd7441b (patch)
tree716f34c98b8e9a1535a9dc42605644d0793f5161 /Makefile
parentdc6550ed3be2c47476ccaefdee2277b9360a8ed6 (diff)
parent976b4be6021569e9808cf83ab7600231d1315307 (diff)
downloadbarebox-7ca411ecd2dc1c6bc47caad4b1e25a118bd7441b.tar.gz
barebox-7ca411ecd2dc1c6bc47caad4b1e25a118bd7441b.tar.xz
Merge branch 'next'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5d4f634b62..5826368e1e 100644
--- a/Makefile
+++ b/Makefile
@@ -643,7 +643,30 @@ endef
barebox.bin: barebox
$(Q)$(OBJCOPY) -O binary barebox barebox.bin
+ifdef CONFIG_X86
+ifdef CONFIG_X86_HDBOOT
+ @echo "-------------------------------------------------" > barebox.S
+ @echo " * MBR content" >> barebox.S
+ $(Q)$(OBJDUMP) -j .bootsector -mi8086 -d barebox >> barebox.S
+ @echo "-------------------------------------------------" >> barebox.S
+ @echo " * Boot loader content" >> barebox.S
+ $(Q)$(OBJDUMP) -j .bootstrapping -mi8086 -d barebox >> barebox.S
+endif
+ @echo "-------------------------------------------------" >> barebox.S
+ @echo " * Regular Text content" >> barebox.S
+ $(Q)$(OBJDUMP) -j .text -d barebox >> barebox.S
+ @echo "-------------------------------------------------" >> barebox.S
+ @echo " * Regular Data content" >> barebox.S
+ $(Q)$(OBJDUMP) -j .data -d barebox >> barebox.S
+ @echo "-------------------------------------------------" >> barebox.S
+ @echo " * Commands content" >> barebox.S
+ $(Q)$(OBJDUMP) -j .barebox_cmd -d barebox >> barebox.S
+ @echo "-------------------------------------------------" >> barebox.S
+ @echo " * Init Calls content" >> barebox.S
+ $(Q)$(OBJDUMP) -j .barebox_initcalls -d barebox >> barebox.S
+else
$(Q)$(OBJDUMP) -d barebox > barebox.S
+endif
# barebox image
barebox: $(barebox-lds) $(barebox-head) $(barebox-common) $(kallsyms.o) FORCE