summaryrefslogtreecommitdiffstats
path: root/reflash-bootloader/Android.mk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-09-13 21:34:41 -0700
committerBrian Swetland <swetland@google.com>2011-10-12 16:02:35 -0700
commitbff25f157e2e6a9fde1691e2173245c7e2b0c3c3 (patch)
tree357d234feddf89dcd53eca7576c50a35b3ec60a9 /reflash-bootloader/Android.mk
parent26b708c9650c6dcf065ddd64182e0814fabc31ce (diff)
downloaddevice_samsung_tuna-bff25f157e2e6a9fde1691e2173245c7e2b0c3c3.zip
device_samsung_tuna-bff25f157e2e6a9fde1691e2173245c7e2b0c3c3.tar.gz
device_samsung_tuna-bff25f157e2e6a9fde1691e2173245c7e2b0c3c3.tar.bz2
tuna: add tool that can reflash bootloader from userspace
Reads bootloader.img from the current directory, parses out the correct xloader for the device, and writes xloader and sbl to the mmc device. Can be run as init to unbrick a device. Change-Id: I5b91e2afd860e7934f7686fbeb638352b217f7c9
Diffstat (limited to 'reflash-bootloader/Android.mk')
-rw-r--r--reflash-bootloader/Android.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/reflash-bootloader/Android.mk b/reflash-bootloader/Android.mk
new file mode 100644
index 0000000..c7a9e54
--- /dev/null
+++ b/reflash-bootloader/Android.mk
@@ -0,0 +1,10 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := reflash-bootloader.c
+LOCAL_MODULE = tuna-reflash-bootloader
+LOCAL_MODULE_TAGS := optional
+LOCAL_FORCE_STATIC_EXECUTABLE := true
+LOCAL_STATIC_LIBRARIES := libc
+include $(BUILD_EXECUTABLE)