-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.sh
executable file
·60 lines (56 loc) · 2.03 KB
/
config.sh
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
set -e
work_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bootstrap="${work_dir}/bootstrap"
source "${bootstrap}"
jq -n \
--arg tools_hck "${TOOLSHCK_DIR}/toolsHCK.ps1" \
--arg hlk_setup_scripts "${HLK_SETUP_SCRIPTS_DIR}" \
--arg extra_software "${EXTRA_SOFTWARE_DIR}" \
--arg playlists_path "${HLK_PLAYLISTS_DIR}" \
--arg filters_path "${HCK_FILTERS_DIR}/UpdateFilters.sql" \
--arg ovmf_code "${OVMF_CODE}" \
--arg ovmf_code_sb "${OVMF_CODE_SB}" \
--arg ovmf_vars_sb "${OVMF_VARS_SB}" \
--arg qemu_bin "${QEMU_BIN}" \
--arg qemu_img_bin "${QEMU_IMG_BIN}" \
--arg ivshmem_server_bin "${IVSHMEM_SERVER_BIN}" \
--arg fs_daemon_bin "${FS_DAEMON_BIN}" \
--arg fs_daemon_share_path "${WORKSPACE_PATH}/fs_share" \
--arg images_path "${IMAGES_PATH}" \
--arg fs_test_image "${IMAGES_PATH}/fs_test_image.qcow2" \
--arg iso_path "${ISO_PATH}" \
--arg workspace_path "${WORKSPACE_PATH}" \
'{
"config.json": {
"iso_path": $iso_path,
"extra_software": $extra_software,
"workspace_path": $workspace_path,
"toolshck_path": $tools_hck,
},
"lib/engines/hckinstall/hckinstall.json": {
"hck_setup_scripts_path": $hlk_setup_scripts,
},
"lib/engines/hcktest/hcktest.json": {
"playlists_path": $playlists_path,
"filters_path": $filters_path
},
"lib/setupmanagers/qemuhck/fw.json": {
"uefi": {
"binary": {
"insecure": $ovmf_code,
"secure": $ovmf_code_sb
},
"nvram": $ovmf_vars_sb
}
},
"lib/setupmanagers/qemuhck/qemu_machine.json": {
"qemu_bin": $qemu_bin,
"qemu_img_bin": $qemu_img_bin,
"ivshmem_server_bin": $ivshmem_server_bin,
"fs_daemon_bin": $fs_daemon_bin,
"fs_daemon_share_path": $fs_daemon_share_path,
"images_path": $images_path,
"fs_test_image": $fs_test_image,
}
}'