mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
blackfin: fix undefined reference to srand and rand
Commit9ba9e85f3f
(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, commit9ba9e85f3f
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 commit6eed3786c6
(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>
This commit is contained in:
parent
0592115d47
commit
3850dbe833
15 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,3 +3,4 @@ CONFIG_NETDEVICES=y
|
|||
CONFIG_TARGET_BF609_EZKIT=y
|
||||
CONFIG_CMD_NET=y
|
||||
CONFIG_ETH_DESIGNWARE=y
|
||||
CONFIG_LIB_RAND=y
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
CONFIG_BLACKFIN=y
|
||||
CONFIG_TARGET_IBF_DSP561=y
|
||||
CONFIG_CMD_NET=y
|
||||
CONFIG_LIB_RAND=y
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue