summaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2012-06-05 11:33:14 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-07-07 14:07:32 +0200
commit9acf1ca50d8b031511d146f6ffd73201fedce28c (patch)
treea10e3bb54c3a410ea568ce0d69ff9ef42a601145 /lib/Makefile
parentd131ad68c6566749df10154d2a6fa93df5865495 (diff)
downloadu-boot-imx-9acf1ca50d8b031511d146f6ffd73201fedce28c.zip
u-boot-imx-9acf1ca50d8b031511d146f6ffd73201fedce28c.tar.gz
u-boot-imx-9acf1ca50d8b031511d146f6ffd73201fedce28c.tar.bz2
lib: add rand() function
It's a PRNG using the simple and fast xorshift method. Signed-off-by: Michael Walle <michael@walle.cc> Cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 1e8478f..0ca45fc 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -66,6 +66,7 @@ COBJS-y += string.o
COBJS-y += time.o
COBJS-$(CONFIG_BOOTP_PXE) += uuid.o
COBJS-y += vsprintf.o
+COBJS-$(CONFIG_RANDOM_MACADDR) += rand.o
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)