diff options
| author | Simon Glass <[email protected]> | 2019-08-24 07:22:53 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2019-10-15 08:40:02 -0600 |
| commit | 53e22bf38c202d5ef3bc092d55095c672994a15b (patch) | |
| tree | e147ce74f9452e82c14c1006f134f314f3f2d65f /tools/binman/test | |
| parent | 180f556b090c2e3c84c904d3e6bc884acb423e1f (diff) | |
binman: Use the Makefile to build ELF test files
At present the ELF test files are checked into the U-Boot tree. This is
covenient since the files never change and can be used on non-x86
platforms. However it is not good practice to check in binaries and in
this case it does not seem essential.
Update the binman test-file Makefile to support having source in a
different directory. Adjust binman to run it to build bss_data, as a
start. We can add other files as needed.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/test')
| -rw-r--r-- | tools/binman/test/Makefile | 3 | ||||
| -rwxr-xr-x | tools/binman/test/bss_data | bin | 5020 -> 0 bytes |
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/binman/test/Makefile b/tools/binman/test/Makefile index e58fc807757..ce1c2f900c8 100644 --- a/tools/binman/test/Makefile +++ b/tools/binman/test/Makefile @@ -7,6 +7,7 @@ # SPDX-License-Identifier: GPL-2.0+ # +VPATH := $(SRC) CFLAGS := -march=i386 -m32 -nostdlib -I ../../../include LDS_UCODE := -T u_boot_ucode_ptr.lds @@ -25,7 +26,7 @@ u_boot_no_ucode_ptr: u_boot_no_ucode_ptr.c u_boot_ucode_ptr: CFLAGS += $(LDS_UCODE) u_boot_ucode_ptr: u_boot_ucode_ptr.c -bss_data: CFLAGS += bss_data.lds +bss_data: CFLAGS += $(SRC)bss_data.lds bss_data: bss_data.c u_boot_binman_syms.bin: u_boot_binman_syms diff --git a/tools/binman/test/bss_data b/tools/binman/test/bss_data Binary files differdeleted file mode 100755 index afa28282aa1..00000000000 --- a/tools/binman/test/bss_data +++ /dev/null |
