x86: ifdtool: Check that U-Boot does not overlap other regions
authorSimon Glass <sjg@chromium.org>
Sat, 15 Aug 2015 20:37:51 +0000 (14:37 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 26 Aug 2015 14:54:10 +0000 (07:54 -0700)
commit3c7aab23a42264012d82937dd2a57e33ee288a92
tree4a19dc846761ccfb882e0f08c225f66e28a6692d
parent5fb0151697088e257e0190d414cc7b2e2793b485
x86: ifdtool: Check that U-Boot does not overlap other regions

Since U-Boot and its device tree can grow we should check that it does not
overlap the regions above it. Track the ROM offset that U-Boot reaches and
check that other regions (written after U-Boot) do not interfere.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
tools/ifdtool.c