summaryrefslogtreecommitdiffstats
path: root/rules/post
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2012-06-11 15:58:12 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-06-12 09:29:59 +0200
commit4e87252770794aaaaacc3fefe55f30bc77208977 (patch)
tree07641dc14d67199d43ad40179f00e173df6d04f6 /rules/post
parent6740ecbc25654021803ba4d602c4a51ea5966b59 (diff)
downloadptxdist-4e87252770794aaaaacc3fefe55f30bc77208977.tar.gz
ptxdist-4e87252770794aaaaacc3fefe55f30bc77208977.tar.xz
image_boot_mlo_vfat: support generating a VFAT image containing the MLO preloader
On OMAP-like systems, we can boot from a SD-Card which contains an VFAT as the first partion. The preloader "MLO" is read from this partition. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/post')
-rw-r--r--rules/post/image_boot_mlo_vfat.make36
1 files changed, 36 insertions, 0 deletions
diff --git a/rules/post/image_boot_mlo_vfat.make b/rules/post/image_boot_mlo_vfat.make
new file mode 100644
index 000000000..28c4a9a15
--- /dev/null
+++ b/rules/post/image_boot_mlo_vfat.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de> and
+# Jan Luebbe <j.luebbe@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+$(IMAGEDIR)/boot-mlo.vfat.map:
+ @echo "$(IMAGEDIR)/MLO:MLO" > "$@"
+ifdef PTXCONF_U_BOOT
+ @echo "$(IMAGEDIR)/u-boot.img:u-boot.img" >> "$@"
+endif
+ifdef PTXCONF_BAREBOX
+ @echo "$(IMAGEDIR)/barebox-image:barebox.bin" >> "$@"
+endif
+ @echo "$(IMAGEDIR)/linuximage:$(PTXCONF_KERNEL_IMAGE)" >> "$@"
+
+# 10MiB
+boot-mlo_VFAT_SIZE := 10485760
+
+$(IMAGEDIR)/boot-mlo.vfat: $(IMAGEDIR)/MLO $(IMAGEDIR)/linuximage
+ifdef PTXCONF_U_BOOT
+$(IMAGEDIR)/boot-mlo.vfat: $(IMAGEDIR)/u-boot.img
+endif
+ifdef PTXCONF_BAREBOX
+$(IMAGEDIR)/boot-mlo.vfat: $(IMAGEDIR)/barebox-image
+endif
+
+ifdef PTXCONF_IMAGE_BOOT_MLO_VFAT
+images: $(IMAGEDIR)/boot-mlo.vfat
+endif
+