summaryrefslogtreecommitdiffstats
path: root/common/Makefile
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2012-07-18 10:46:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-18 16:21:43 +0200
commit106956783018635cef9a35bcb109073513d1ead4 (patch)
tree5da8351337dfb29de6a0567c00d8767ba2dd6299 /common/Makefile
parentb78e5fe9f3ce155065831d3aa8a480656a8f53c5 (diff)
downloadbarebox-106956783018635cef9a35bcb109073513d1ead4.tar.gz
barebox-106956783018635cef9a35bcb109073513d1ead4.tar.xz
Enable a way to provide the reason for "being here"
Many architectures support a way to detect why the bootloader is running. This patch adds a global variable to be able to use the cause in some kind of shell code to do special things on demand. For example to do an emergency boot, when the last boot fails and the watchdog reactivate the hanging system. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index a1926d346d..9b150a8e93 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -30,6 +30,7 @@ obj-y += startup.o
obj-y += misc.o
obj-y += memsize.o
obj-$(CONFIG_GLOBALVAR) += globalvar.o
+obj-$(CONFIG_RESET_SOURCE) += reset_source.o
obj-$(CONFIG_FILETYPE) += filetype.o
obj-y += resource.o
obj-$(CONFIG_MENU) += menu.o