summaryrefslogtreecommitdiffstats
path: root/common/Makefile
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2013-06-04 01:13:51 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-05 22:54:35 +0200
commit3275c7ea43f366bcfac5a9f8ffc0d001592d9529 (patch)
treeb7a9eb666ca38843efc65954842ca592258ee1ec /common/Makefile
parent47f9da43801d7a345569a35d23cd49eb355a891a (diff)
downloadbarebox-3275c7ea43f366bcfac5a9f8ffc0d001592d9529.tar.gz
barebox-3275c7ea43f366bcfac5a9f8ffc0d001592d9529.tar.xz
common: add memtest.c with mem_test routine
Add mem_test routine. Useful to detect timing problems if someone porting a new device to barebox. This test includes a data bus test, address bus test and integrity check of memory. This mem_test routine has as parameter start and end address of testing space. The last parameter can skip the integrity check. Signed-off-by: Alexander Aring <alex.aring@gmail.com> 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 2f0bd34569..d18b6c6d04 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -18,6 +18,7 @@ obj-$(CONFIG_MALLOC_DLMALLOC) += dlmalloc.o
obj-$(CONFIG_MALLOC_TLSF) += tlsf_malloc.o
obj-$(CONFIG_MALLOC_TLSF) += tlsf.o
obj-$(CONFIG_MALLOC_DUMMY) += dummy_malloc.o
+obj-$(CONFIG_CMD_MEMTEST) += memtest.o
obj-y += clock.o
obj-$(CONFIG_BANNER) += version.o
obj-$(CONFIG_MEMINFO) += meminfo.o