-
Notifications
You must be signed in to change notification settings - Fork 2
/
elf-loader.core
44 lines (35 loc) · 937 Bytes
/
elf-loader.core
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
CAPI=2:
name : ::elf-loader:1.0.3
description : Generic ELF loader
filesets :
elf_loader :
files : [elf-loader.c, elf-loader.h : {is_include_file : true}]
file_type : cSource
vpi :
files : [vpi_wrapper.c]
file_type : cSource
check_libelf:
files: [check_libelf.sh : {file_type: user, copyto: check_libelf.sh}]
vpi :
elf_loader_vpi :
filesets : [elf_loader, vpi]
libs : [elf]
targets :
default :
hooks :
pre_build : [check_libelf]
filesets : ["tool_verilator? (elf_loader)", check_libelf]
parameters : ["!tool_verilator? (elf_load)"] # for verilator the argument is --elf-load, not a plusarg
tools :
verilator :
libs : [-lelf]
vpi : [elf_loader_vpi]
parameters :
elf_load :
datatype : file
description : ELF file to preload to memory
paramtype : plusarg
scope : public
scripts :
check_libelf :
cmd : [/bin/sh, check_libelf.sh]