]> git.sur5r.net Git - u-boot/commitdiff
blackfin: fix undefined reference to srand and rand
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 11 Jun 2015 10:16:43 +0000 (19:16 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jun 2015 12:28:35 +0000 (08:28 -0400)
Commit 9ba9e85f3f1c (net: Fix NET_RANDOM_ETHADDR dependencies)
accidentally dropped CONFIG_LIB_RAND defines for 14 Blackfin boards.

Prior to that commit, those boards defined CONFIG_LIB_RAND, but not
CONFIG_NET_RANDOM_ETHADDR.  So, commit 9ba9e85f3f1c should not have
touched them, but in fact it ripped CONFIG_LIB_RAND off from all the
header files, which caused undefined reference to srand and rand.
CONFIG_LIB_RAND=y must be revived for such boards.

BTW, this commit indeed makes it better, but even with this fix,
three boards (bf533-stamp, bf538f-ezkit, cm-bf548) still can not
build due to region 'ram' overflowed error.  This was cause by
commit 6eed3786c68c (net: Move the CMD_NET config to defconfigs)
because CMD_NET selects NET, and NET selects REGEX.  Eventually,
some boards were newly enabled with CONFIG_REGEX, increasing the
memory footprint.  A patch is expected to fix the build error.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
15 files changed:
configs/bf527-ezkit-v2_defconfig
configs/bf533-ezkit_defconfig
configs/bf533-stamp_defconfig
configs/bf538f-ezkit_defconfig
configs/bf548-ezkit_defconfig
configs/bf561-acvilon_defconfig
configs/bf561-ezkit_defconfig
configs/bf609-ezkit_defconfig
configs/br4_defconfig
configs/cm-bf533_defconfig
configs/cm-bf548_defconfig
configs/cm-bf561_defconfig
configs/ibf-dsp561_defconfig
configs/pr1_defconfig
lib/Kconfig

index f963502b8cfea17521fc70b88ecaba7313a88e76..dd48d6a8aeaddb7f00812638303beeee0e8dd38d 100644 (file)
@@ -3,3 +3,4 @@ CONFIG_TARGET_BF527_EZKIT=y
 CONFIG_SYS_EXTRA_OPTIONS="BF527_EZKIT_REV_2_1"
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 66c11451af50f1201cb8efbb71de80e881eacc37..04210d8618e423ca385e09dd48b31ff75be30ef3 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF533_EZKIT=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index ca1202d8494dcd846aa92d52fda7ecb45251248f..191e2d639965b0df0eee6360be2262d76b8aa0fd 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF533_STAMP=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 84449ec42db30294a8e0b3a94232c28e85bcafac..f8ae21b2056734a411a03277548136cde1693cb3 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF538F_EZKIT=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 46c8fe2cf1927183674c3d96f2088755f0734bdd..6bd9e9bad4f7d31112dd4ecf28540f5c0c6d8570 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF548_EZKIT=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index b558066d8f2c89de2d6e40a61238be5efa0a8170..7a6589231128351ddfe3962596619eb0bfba9dbc 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF561_ACVILON=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 0ef1a1cdb016cb79ed032818e339917a62ce9b86..e8a1ea48f31557cb6fc4825ecb0c76f92b746f21 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF561_EZKIT=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 72e0606f7cfa0e76c4326d92a656efbaff99dc31..d8c26297512fca99584cdd9d771e244cb7920954 100644 (file)
@@ -3,3 +3,4 @@ CONFIG_NETDEVICES=y
 CONFIG_TARGET_BF609_EZKIT=y
 CONFIG_CMD_NET=y
 CONFIG_ETH_DESIGNWARE=y
+CONFIG_LIB_RAND=y
index e6970a40de4145cd90ab7202dbf9c8d1f3ea586c..7247b9c47309b7749ead4f327d3963da64d887b6 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_BR4=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 42d568e4735c91a274f13ae362de21f640dc1014..89a5c0f0a42d9ca612fcff44346dc2c64eed0df8 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF533=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 906a9bd7436da335d8c3ae3392301937b980c677..b9b60447850b1faa5c2bdf337145cb31bcc9f574 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF548=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 023cc65ecc07e2caf45f913bf94b291d9103a07d..a304e572e87838e41c630524e3f2bf7427fd4ff4 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF561=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index eb80798a94f46cafdb7e9954ec00164970fe91af..15f24bbc430315c40a1359180ddbe2c1296517d4 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_IBF_DSP561=y
 CONFIG_CMD_NET=y
+CONFIG_LIB_RAND=y
index f85cc7746b642f97eaeadaf084dde28ee5a68e85..a8eb7f3f3ef4838170a6afcc83f1b8d5fe882daf 100644 (file)
@@ -2,3 +2,4 @@ CONFIG_BLACKFIN=y
 CONFIG_TARGET_PR1=y
 CONFIG_CMD_NET=y
 CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
+CONFIG_LIB_RAND=y
index 3c8de869b1f63fa42390abd4463e65505a5a18f4..7ec8c98da2b32ab078f18e0802e82a9d76be45dd 100644 (file)
@@ -45,7 +45,9 @@ config REGEX
          "setexpr".
 
 config LIB_RAND
-       bool
+       bool "Pseudo-random library support "
+       help
+         This library provides pseudo-random number generator functions.
 
 source lib/rsa/Kconfig