Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Add efi_loader helloworld link to travis env
Browse files Browse the repository at this point in the history
We have a new test framework for efi_loader in test/py now. That framework
can fetch a hello world application via tftp, but it needs to have it
referenced in the environment.

Fortunately U-Boot builds said hello world efi binary as part of its build
process, so let's expose that to the test case.

Signed-off-by: Alexander Graf <agraf@suse.de>
  • Loading branch information
agraf committed Nov 17, 2016
1 parent 433cb86 commit d477232
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions py/travis-ci/u_boot_boardenv_qemu_x86_na.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@
"size": os.path.getsize(u_boot_bin),
"crc32": hex(binascii.crc32(open(u_boot_bin, 'rb').read()))[2:],
}

helloworld_bin = os.environ['UBOOT_TRAVIS_BUILD_DIR'] + "/lib/efi_loader/helloworld.efi"

env__efi_loader_helloworld_file = {
"fn": "lib/efi_loader/helloworld.efi",
"size": os.path.getsize(helloworld_bin),
"crc32": hex(binascii.crc32(open(helloworld_bin, 'rb').read()))[2:],
}
8 changes: 8 additions & 0 deletions py/travis-ci/u_boot_boardenv_vexpress_ca15_tc2_qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@
"size": os.path.getsize(u_boot_bin),
"crc32": hex(binascii.crc32(open(u_boot_bin, 'rb').read()))[2:],
}

helloworld_bin = os.environ['UBOOT_TRAVIS_BUILD_DIR'] + "/lib/efi_loader/helloworld.efi"

env__efi_loader_helloworld_file = {
"fn": "lib/efi_loader/helloworld.efi",
"size": os.path.getsize(helloworld_bin),
"crc32": hex(binascii.crc32(open(helloworld_bin, 'rb').read()))[2:],
}
8 changes: 8 additions & 0 deletions py/travis-ci/u_boot_boardenv_vexpress_ca9x4_qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@
"size": os.path.getsize(u_boot_bin),
"crc32": hex(binascii.crc32(open(u_boot_bin, 'rb').read()))[2:],
}

helloworld_bin = os.environ['UBOOT_TRAVIS_BUILD_DIR'] + "/lib/efi_loader/helloworld.efi"

env__efi_loader_helloworld_file = {
"fn": "lib/efi_loader/helloworld.efi",
"size": os.path.getsize(helloworld_bin),
"crc32": hex(binascii.crc32(open(helloworld_bin, 'rb').read()))[2:],
}

0 comments on commit d477232

Please sign in to comment.