[U-Boot] [U-boot] CONFIG_OF_EMBED question
Gerhard Sittig
gsi at denx.de
Fri Aug 23 19:16:39 CEST 2013
On Fri, Aug 23, 2013 at 19:35 +0800, TigerLiu at viatech.com.cn wrote:
>
> Hi, experts:
>
> If i defined CONFIG_OF_EMBED, then:
>
> Where could i find _binary_dt_dtb_start's definition?
>
> In arch/arm/lib/board.c:
>
> gd->fdt_blob = _binary_dt_dtb_start;
>
>
>
> but i could not find _binary_dt_dtb_start's definition.
Looks like something the linker will resolve while the symbol is
introduced by something that isn't generated from compiling
source code.
See the objcopy(1) manpage and search for '_start' there. This
appears to be a feature of incorporating BLOBs and data files
into your executables without taking the detour of generating
header files, and perfectly fits into what the "embed" name of
the config option suggests.
So depending on why you are asking (you don't tell what is the
actual problem you are trying to solve, just which detail you
currently are digging into), you may want to search the makefiles
and other build instructions on where a file named "dt.dtb" or
similar gets referenced.
See the output of `git grep -C 5 'dt.dtb'` -- Makefile and
dtc/Makefile probably are what you are looking for.
virtually yours
Gerhard Sittig
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
More information about the U-Boot
mailing list