From: Tom Rini Date: Wed, 24 Apr 2019 09:21:22 -0400 Subject: [U-Boot] Build error: caused by CONFIG_SPL_LOG_CONSOLE In-Reply-To: References: Message-ID: <20190424132122.GK31207@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 Sat, Apr 13, 2019 at 01:01:52AM +0200, U.Mutlu wrote: > If I activate "Enable logging support in SPL" (ie. CONFIG_SPL_LOG_CONSOLE), > ie. the following window in make menuconfig: > > Logging ---> > > [*] Enable logging support > [*] Enable logging support in SPL > [*] Enable logging support in TPL > (5) Maximum log level to record > (3) Maximum log level to record in SPL (NEW) > (3) Maximum log level to record in TPL > (6) Default logging level to display > [*] Allow log output to the console > [*] Allow log output to the console in SPL (NEW) > [*] Allow log output to the console in SPL > [ ] Provide a test for logging > [*] Log all functions which return an error > > then the build fails as follows (paths sanitized): > > arm-linux-gnueabihf-ld.bfd: common/built-in.o: in function `log_get_cat_name': > /.../u-boot/common/log.c:48: undefined reference to `uclass_get_name' > arm-linux-gnueabihf-ld.bfd: common/built-in.o: in function `_log': > /.../u-boot/common/log.c:212: undefined reference to `vsnprintf' > scripts/Makefile.spl:384: recipe for target 'spl/u-boot-spl' failed > make[1]: *** [spl/u-boot-spl] Error 1 > Makefile:1664: recipe for target 'spl/u-boot-spl' failed > make: *** [spl/u-boot-spl] Error 2 > > > Deactivating "Enable logging support in SPL" builds ok. Sounds like the Kconfig option is missing a depends on line. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: