From: Tom Rini Date: Fri, 12 Jun 2015 08:12:22 -0400 Subject: [U-Boot] [PATCH] blackfin: fix undefined reference to srand and rand In-Reply-To: <1434017803-22823-1-git-send-email-yamada.masahiro@socionext.com> References: <1434017803-22823-1-git-send-email-yamada.masahiro@socionext.com> Message-ID: <20150612121222.GX1728@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jun 11, 2015 at 07:16:43PM +0900, Masahiro Yamada wrote: > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: