summaryrefslogtreecommitdiff
path: root/tools/uflash/Makefile
diff options
context:
space:
mode:
authorAlagu Sankar <alagusankar@embwise.com>2012-06-27 14:57:31 +0530
committerRajashekhara, Sudhakar <sudhakar.raj@ti.com>2012-06-27 14:57:31 +0530
commit269d186ab8eb3ad22d4fa89b159d02c060b95be7 (patch)
tree2340320a1abaa05822d0cafb7a1878c6d26b36e2 /tools/uflash/Makefile
parentc99eac11764a9ecda292982469f519e2083d31a5 (diff)
Davinci: Utility for MMC boot
This is a Linux command line tool specific to TI's Davinci platforms, for flashing UBL (User Boot Loader), u-boot and u-boot Environment in the MMC/SD card. This MMC/SD card can be used for booting Davinci platforms that supports MMC/SD boot option. This patch was submitted by Alagu Sankar (http://www.mail-archive.com/u-boot@lists.denx.de/msg32309.html), but couldn't make into mainline. Resubmitting the patch, with modifications to build with u-boot, Fixed compilation issues and fixed uflash.c to write u-boot properly. Signed-off-by: Alagu Sankar <alagusankar@embwise.com> Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com> Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Diffstat (limited to 'tools/uflash/Makefile')
-rw-r--r--tools/uflash/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/uflash/Makefile b/tools/uflash/Makefile
new file mode 100644
index 0000000000..8ade3c4a17
--- /dev/null
+++ b/tools/uflash/Makefile
@@ -0,0 +1,13 @@
+include $(TOPDIR)/config.mk
+
+all: $(obj)uflash
+
+HOSTCFLAGS_NOPED += -I $(SRCTREE)/include -DUSE_HOSTCC
+
+$(obj)uflash: $(SRCTREE)/tools/uflash/uflash.c $(SRCTREE)/lib/crc32.c $(SRCTREE)/lib/errno.c
+ $(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $^
+
+clean:
+ rm -f $(obj)uflash
+
+.PHONY: all clean