Compare commits
7 Commits
efio
...
add-vision
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7381ec48b8 | ||
|
|
fa3b6c235d | ||
|
|
f3982a9c12 | ||
|
|
8292f801e9 | ||
|
|
8c5793fdd6 | ||
|
|
dbc41e68b7 | ||
|
|
bcfc8e8d38 |
@@ -691,3 +691,8 @@ nyan-big:
|
||||
variables:
|
||||
ROLE: nyan-big
|
||||
<<: *lab_dfn
|
||||
|
||||
vision5:
|
||||
variables:
|
||||
ROLE: vision5
|
||||
<<: *lab_dfn
|
||||
|
||||
4
Makefile
4
Makefile
@@ -1145,7 +1145,7 @@ all: .binman_stamp
|
||||
ifeq ($(CONFIG_DEPRECATED),y)
|
||||
$(warning "You have deprecated configuration options enabled in your .config! Please check your configuration.")
|
||||
endif
|
||||
ifeq ($(CONFIG_OF_EMBED),y)
|
||||
ifeq ($(CONFIG_OF_EMBED)$(CONFIG_EFI_APP),y)
|
||||
@echo >&2 "===================== WARNING ======================"
|
||||
@echo >&2 "CONFIG_OF_EMBED is enabled. This option should only"
|
||||
@echo >&2 "be used for debugging purposes. Please use"
|
||||
@@ -1678,7 +1678,7 @@ endif # CONFIG_X86
|
||||
|
||||
OBJCOPYFLAGS_u-boot-app.efi := $(OBJCOPYFLAGS_EFI)
|
||||
u-boot-app.efi: u-boot dts/dt.dtb FORCE
|
||||
$(if $(CONFIG_OF_SEPARATE),$(call if_changed,embeddtb))
|
||||
$(call if_changed,embeddtb)
|
||||
$(call if_changed,zobjcopy)
|
||||
|
||||
u-boot.bin.o: u-boot.bin FORCE
|
||||
|
||||
@@ -87,10 +87,5 @@ SECTIONS
|
||||
*(.eh_frame)
|
||||
*(.note.GNU-stack)
|
||||
}
|
||||
|
||||
.embedded_dtb : {
|
||||
*(.embedded_dtb)
|
||||
}
|
||||
|
||||
.comment 0 : { *(.comment) }
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ CONFIG_CMD_FS_GENERIC=y
|
||||
CONFIG_MAC_PARTITION=y
|
||||
CONFIG_ISO_PARTITION=y
|
||||
CONFIG_EFI_PARTITION=y
|
||||
CONFIG_OF_EMBED=y
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||
CONFIG_USE_BOOTFILE=y
|
||||
|
||||
@@ -35,6 +35,7 @@ CONFIG_CMD_FS_GENERIC=y
|
||||
CONFIG_MAC_PARTITION=y
|
||||
CONFIG_ISO_PARTITION=y
|
||||
CONFIG_EFI_PARTITION=y
|
||||
CONFIG_OF_EMBED=y
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||
CONFIG_USE_BOOTFILE=y
|
||||
|
||||
@@ -70,7 +70,7 @@ extern char __image_copy_start[], __image_copy_end[];
|
||||
extern char __bss_end[];
|
||||
extern char __rel_dyn_start[], __rel_dyn_end[];
|
||||
extern char _image_binary_end[];
|
||||
extern char __dtb[];
|
||||
extern char _dtb[];
|
||||
|
||||
/*
|
||||
* This is the U-Boot entry point - prior to relocation it should be same
|
||||
|
||||
@@ -1236,7 +1236,7 @@ static void *fdt_find_separate(void)
|
||||
fdt_blob = (ulong *)_image_binary_end;
|
||||
else
|
||||
fdt_blob = (ulong *)__bss_end;
|
||||
#elif defined CONFIG_EFI_APP && defined CONFIG_OF_SEPARATE
|
||||
#elif defined CONFIG_EFI_APP
|
||||
/* FDT is in a separate section */
|
||||
fdt_blob = (ulong *)__dtb;
|
||||
#else
|
||||
|
||||
@@ -144,6 +144,9 @@ def get_details(config):
|
||||
# Get a few provided parameters
|
||||
build_dir = config.getoption('build_dir')
|
||||
build_dir_extra = config.getoption('build_dir_extra')
|
||||
|
||||
# The source tree must be the current directory
|
||||
source_dir = os.path.dirname(os.path.dirname(TEST_PY_DIR))
|
||||
if role:
|
||||
# When using a role, build_dir and build_dir_extra are normally not set,
|
||||
# since they are picked up from Labgrid-sjg via the u-boot-test-getrole
|
||||
@@ -155,10 +158,15 @@ def get_details(config):
|
||||
env['U_BOOT_BUILD_DIR'] = build_dir
|
||||
if build_dir_extra:
|
||||
env['U_BOOT_BUILD_DIR_EXTRA'] = build_dir_extra
|
||||
proc = subprocess.run(cmd, capture_output=True, encoding='utf-8',
|
||||
|
||||
# Make sure the script sees that it is being run from pytest
|
||||
env['U_BOOT_SOURCE_DIR'] = source_dir
|
||||
|
||||
proc = subprocess.run(cmd, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT, encoding='utf-8',
|
||||
env=env)
|
||||
if proc.returncode:
|
||||
raise ValueError(proc.stderr)
|
||||
raise ValueError(f"Error {proc.returncode} running {cmd}: '{proc.stderr} '{proc.stdout}'")
|
||||
# For debugging
|
||||
# print('conftest: lab:', proc.stdout)
|
||||
vals = {}
|
||||
@@ -172,15 +180,13 @@ def get_details(config):
|
||||
# Read the build directories here, in case none were provided in the
|
||||
# command-line arguments
|
||||
(board_type, board_type_extra, default_build_dir,
|
||||
default_build_dir_extra, source_dir) = (vals['board'],
|
||||
vals['board_extra'], vals['build_dir'], vals['build_dir_extra'],
|
||||
vals['source_dir'])
|
||||
default_build_dir_extra) = (vals['board'],
|
||||
vals['board_extra'], vals['build_dir'], vals['build_dir_extra'])
|
||||
else:
|
||||
board_type = config.getoption('board_type')
|
||||
board_type_extra = config.getoption('board_type_extra')
|
||||
board_identity = config.getoption('board_identity')
|
||||
|
||||
source_dir = os.path.dirname(os.path.dirname(TEST_PY_DIR))
|
||||
default_build_dir = source_dir + '/build-' + board_type
|
||||
default_build_dir_extra = source_dir + '/build-' + board_type_extra
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ from u_boot_pylib import tools
|
||||
from u_boot_pylib import tout
|
||||
|
||||
### constant variables ###
|
||||
OUTPUT_FILE = 'boards.cfg'
|
||||
CONFIG_DIR = 'configs'
|
||||
SLEEP_TIME = 0.03
|
||||
COMMENT_BLOCK = f'''#
|
||||
|
||||
@@ -19,6 +19,7 @@ import threading
|
||||
from buildman import cfgutil
|
||||
from patman import gitutil
|
||||
from u_boot_pylib import command
|
||||
from u_boot_pylib import tools
|
||||
|
||||
RETURN_CODE_RETRY = -1
|
||||
BASE_ELF_FILENAMES = ['u-boot', 'spl/u-boot-spl', 'tpl/u-boot-tpl']
|
||||
@@ -555,10 +556,10 @@ class BuilderThread(threading.Thread):
|
||||
if result.return_code < 0:
|
||||
return
|
||||
|
||||
done_file = self.builder.get_done_file(result.commit_upto,
|
||||
result.brd.target)
|
||||
if result.toolchain:
|
||||
# Write the build result and toolchain information.
|
||||
done_file = self.builder.get_done_file(result.commit_upto,
|
||||
result.brd.target)
|
||||
with open(done_file, 'w', encoding='utf-8') as outf:
|
||||
if maybe_aborted:
|
||||
# Special code to indicate we need to retry
|
||||
@@ -638,6 +639,9 @@ class BuilderThread(threading.Thread):
|
||||
result.brd.target)
|
||||
with open(sizes, 'w', encoding='utf-8') as outf:
|
||||
print('\n'.join(lines), file=outf)
|
||||
else:
|
||||
# Indicate that the build failure due to lack of toolchain
|
||||
tools.write_file(done_file, '2\n', binary=False)
|
||||
|
||||
if not work_in_output:
|
||||
# Write out the configuration files, with a special case for SPL
|
||||
|
||||
Reference in New Issue
Block a user