summaryrefslogtreecommitdiff
path: root/board/lwmon
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-10-12 10:27:02 +0000
committerTom Rini <trini@ti.com>2012-10-22 08:29:29 -0700
commit42ebaae3a33b8393a37e7176234e71b5eada58d4 (patch)
tree278eec124e776c3cccf781400bc306375dcecb1b /board/lwmon
parent97b24d3d51a92cb8c0c1e1a74abf22fe1a1807a3 (diff)
downloadu-boot-imx-42ebaae3a33b8393a37e7176234e71b5eada58d4.zip
u-boot-imx-42ebaae3a33b8393a37e7176234e71b5eada58d4.tar.gz
u-boot-imx-42ebaae3a33b8393a37e7176234e71b5eada58d4.tar.bz2
common: Implement support for linker-generated arrays
This patch adds support for linker-generated array. These arrays are a generalization of the U-Boot command declaration approach. Basically, the idea is to generate an array, where elements of the array are statically initialized at compile time and each element is declared separatelly at different place. Such array is assembled together into continuous piece of memory by linker and a pointer to it's first entry can then be retrieved via accessor. The actual implementation relies on placing any variable that is to represent an element of LG-array into particular subsection of the .u_boot_list linker section . The subsection is determined by user options. Once compiled, it is possible to dump all symbols placed in .u_boot_list section and the subsections in which they should be and generate appropriate bounds for each requested subsection of the .u_boot_list section. Each such subsection thus contains __start and __end entries at the begining and end respecitively. This allows for simple run-time traversing of the array, since the symbols are properly defined. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/lwmon')
0 files changed, 0 insertions, 0 deletions