diff options
author | Simon Glass <sjg@chromium.org> | 2016-11-25 20:15:55 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-12-20 08:09:55 +1300 |
commit | 75db0860b1cee8c3b2539878a227c37bfce00046 (patch) | |
tree | f83f5581222fc9d81100a5a0e0bf3758709ca967 /tools/binman/test/u_boot_no_ucode_ptr.c | |
parent | c49deb837cb1ba0a64869fcb4fabac11d3e94ae0 (diff) |
binman: Add support for building x86 ROMs with SPL
When building for 64-bit x86 we need an SPL binary in the ROM. Add support
for this. Also increase entry test code coverage to 100%.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools/binman/test/u_boot_no_ucode_ptr.c')
-rw-r--r-- | tools/binman/test/u_boot_no_ucode_ptr.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/binman/test/u_boot_no_ucode_ptr.c b/tools/binman/test/u_boot_no_ucode_ptr.c new file mode 100644 index 0000000000..a17bb4c6c2 --- /dev/null +++ b/tools/binman/test/u_boot_no_ucode_ptr.c @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2016 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + * + * Simple program to create a bad _dt_ucode_base_size symbol to create an + * error when it is used. This is used by binman tests. + * + * Build with: + * cc -march=i386 -m32 -o u_boot_no_ucode_ptr -T u_boot_ucode_ptr.lds \ + -nostdlib u_boot_no_ucode_ptr.c + */ + +static unsigned long not__dt_ucode_base_size[2] + __attribute__((section(".ucode"))) = {1, 2}; |