Add build, deploy and test sources
This commit is contained in:
1 parent
b962581812
commit
3d1a08f230
259 files changed
+15273
No files matched your search
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
W=/root/krd24
|
||||
cd "$W"
|
||||
rm -rf srm10dbg; cp -a srm10p srm10dbg
|
||||
|
||||
python3 - <<'PYEOF'
|
||||
import io
|
||||
p='/root/krd24/srm10dbg/scripts/find_product_dir.sh'
|
||||
s=io.open(p,encoding='utf-8').read()
|
||||
anchor='''if [[ ! -f "${KRD_MOUNTS_FILE_PATH}" ]]
|
||||
then
|
||||
trace_message "${TRACE_LVL_ERROR}" "Volumes aren't mounted!"
|
||||
trace_and_exit 1
|
||||
fi
|
||||
'''
|
||||
dbg='''
|
||||
{
|
||||
echo "=== PARAVIS DEBUG ==="
|
||||
echo "-- mounts file <${KRD_MOUNTS_FILE_PATH}>:"
|
||||
cat "${KRD_MOUNTS_FILE_PATH}" 2>&1
|
||||
echo "-- volumes dir <${KRD_VOLUMES_DIRECTORY}>:"
|
||||
ls -la "${KRD_VOLUMES_DIRECTORY}" 2>&1
|
||||
echo "-- /proc/mounts (medium/live/volumes):"
|
||||
grep -E 'medium|KRD' /proc/mounts 2>&1
|
||||
echo "=== END DEBUG ==="
|
||||
} > /dev/ttyS0 2>&1
|
||||
'''
|
||||
assert anchor in s
|
||||
s=s.replace(anchor, anchor+dbg, 1)
|
||||
io.open(p,'w',encoding='utf-8').write(s)
|
||||
print('debug patch ok')
|
||||
PYEOF
|
||||
|
||||
rm -f 10-krd-dbg.srm
|
||||
mksquashfs srm10dbg 10-krd-dbg.srm -comp xz -b 262144 -Xbcj x86 -noappend >/dev/null 2>&1
|
||||
cp -f 10-krd-dbg.srm /path/to/pf/KRD/files/live/KRD/10-krd.srm
|
||||
ls -l /path/to/pf/KRD/files/live/KRD/10-krd.srm
|
||||
Reference in new issue
Block a user