Make native TP oracle build reproducible
This commit is contained in:
13
scripts/build_linuxcnc_native_oracle.sh
Executable file
13
scripts/build_linuxcnc_native_oracle.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
SOURCE_ROOT="${ROOT}/linuxcnc"
|
||||
PATCH_FILE="${ROOT}/patches/linuxcnc/0001-export-native-task-heartbeat.patch"
|
||||
|
||||
if ! rg -q 'task_heartbeat' "${SOURCE_ROOT}/src/emc/usr_intf/axis/extensions/emcmodule.cc"; then
|
||||
patch --forward --batch -p1 -d "${SOURCE_ROOT}" < "${PATCH_FILE}"
|
||||
fi
|
||||
|
||||
make -C "${SOURCE_ROOT}/src" ../lib/python/linuxcnc.so ../bin/milltask
|
||||
printf '%s\n' 'LinuxCNC native oracle build ready: source linuxcnc.so + milltask'
|
||||
Reference in New Issue
Block a user