mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-11 22:25:14 -05:00
Startup script expects paths to relevant directories as arguments instead of computing them itself.
This commit is contained in:
parent
1d3fcdfc1f
commit
21992b6c34
3 changed files with 17 additions and 9 deletions
|
|
@ -2,13 +2,15 @@
|
|||
ps -o comm= -p $$
|
||||
|
||||
# This script expects the following command line arguments:
|
||||
# $1 : Absolute path to the VeriFast directory
|
||||
# $1 : Absolute path to the root dir of this repository
|
||||
# $2 : Absolute path to the root of the directory containing the VeriFast proofs
|
||||
# $3 : Absolute path to the VeriFast directory
|
||||
|
||||
VF_DIR="$1"
|
||||
REPO_BASE_DIR="$1"
|
||||
VF_PROOF_BASE_DIR="$2"
|
||||
VF_DIR="$3"
|
||||
|
||||
PP_SCRIPT_WD=`pwd`
|
||||
REPO_BASE_DIR=`cd ../../../../..; pwd`
|
||||
VF_PROOF_BASE_DIR=`cd ..; pwd`
|
||||
VF_PROOF_MOD_SRC_DIR="$VF_PROOF_BASE_DIR/src"
|
||||
VF_PROOF_MOD_HEADER_DIR="$VF_PROOF_BASE_DIR/include"
|
||||
|
||||
|
|
@ -47,6 +49,7 @@ mkdir $LOG_PP_OUT_DIR
|
|||
|
||||
echo start preprocessor
|
||||
clang -E -C -DFREE_RTOS_KERNEL_SMP=1 -DLIB_FREERTOS_KERNEL=1 -DLIB_PICO_BIT_OPS=1 -DLIB_PICO_BIT_OPS_PICO=1 -DLIB_PICO_DIVIDER=1 -DLIB_PICO_DIVIDER_HARDWARE=1 -DLIB_PICO_DOUBLE=1 -DLIB_PICO_DOUBLE_PICO=1 -DLIB_PICO_FLOAT=1 -DLIB_PICO_FLOAT_PICO=1 -DLIB_PICO_INT64_OPS=1 -DLIB_PICO_INT64_OPS_PICO=1 -DLIB_PICO_MALLOC=1 -DLIB_PICO_MEM_OPS=1 -DLIB_PICO_MEM_OPS_PICO=1 -DLIB_PICO_MULTICORE=1 -DLIB_PICO_PLATFORM=1 -DLIB_PICO_PRINTF=1 -DLIB_PICO_PRINTF_PICO=1 -DLIB_PICO_RUNTIME=1 -DLIB_PICO_STANDARD_LINK=1 -DLIB_PICO_STDIO=1 -DLIB_PICO_STDIO_UART=1 -DLIB_PICO_STDLIB=1 -DLIB_PICO_SYNC=1 -DLIB_PICO_SYNC_CORE=1 -DLIB_PICO_SYNC_CRITICAL_SECTION=1 -DLIB_PICO_SYNC_MUTEX=1 -DLIB_PICO_SYNC_SEM=1 -DLIB_PICO_TIME=1 -DLIB_PICO_UTIL=1 -DPICO_BOARD=\"pico\" -DPICO_BUILD=1 -DPICO_CMAKE_BUILD_TYPE=\"Release\" -DPICO_COPY_TO_RAM=0 -DPICO_CXX_ENABLE_EXCEPTIONS=0 -DPICO_NO_FLASH=0 -DPICO_NO_HARDWARE=0 -DPICO_ON_DEVICE=1 -DPICO_STACK_SIZE=0x1000 -DPICO_TARGET_NAME=\"on_core_one\" -DPICO_USE_BLOCKED_RAM=0 -DmainRUN_FREE_RTOS_ON_CORE=1 \
|
||||
\
|
||||
-DVERIFAST \
|
||||
-DVERIFAST_SKIP_BITVECTOR_PROOF__STACK_ALIGNMENT \
|
||||
-I"$VF_DIR/bin" \
|
||||
|
|
@ -54,12 +57,15 @@ clang -E -C -DFREE_RTOS_KERNEL_SMP=1 -DLIB_FREERTOS_KERNEL=1 -DLIB_PICO_BIT_OPS
|
|||
-I"$VF_PROOF_MOD_SRC_DIR" \
|
||||
-I"$PROOF_SETUP_DIR" \
|
||||
-I"$PROOF_FILES_DIR" \
|
||||
\
|
||||
-I"$SMP_DEMO_DIR/FreeRTOS/Demo/CORTEX_M0+_RP2040/OnEitherCore" \
|
||||
-I"$SMP_DEMO_DIR/FreeRTOS/Demo/CORTEX_M0+_RP2040/build/generated/pico_base" \
|
||||
\
|
||||
-I"$REPO_BASE_DIR/portable/ThirdParty/GCC/RP2040/include" \
|
||||
-I"$REPO_BASE_DIR/portable/ThirdParty/GCC/RP2040" \
|
||||
-I"$REPO_BASE_DIR/include" \
|
||||
\
|
||||
-I"$PICO_SDK_DIR/src/common/pico_base/include" \
|
||||
-I"$SMP_DEMO_DIR/FreeRTOS/Demo/CORTEX_M0+_RP2040/build/generated/pico_base" \
|
||||
-I"$PICO_SDK_DIR/src/boards/include" \
|
||||
-I"$PICO_SDK_DIR/src/rp2_common/pico_platform/include" \
|
||||
-I"$PICO_SDK_DIR/src/rp2040/hardware_regs/include" \
|
||||
|
|
|
|||
|
|
@ -5,7 +5,9 @@
|
|||
# $1 : Absolute path to the VeriFast directory
|
||||
|
||||
|
||||
VF_DIR="$1"
|
||||
REPO_BASE_DIR="$1"
|
||||
VF_PROOF_BASE_DIR="$2"
|
||||
VF_DIR="$3"
|
||||
echo Path to vfide binary : "\'$VFIDE\'"
|
||||
|
||||
START_WD=`pwd`
|
||||
|
|
@ -14,9 +16,9 @@ PP_SCRIPT="./preprocess_tasks_c.sh"
|
|||
PP_TASK_C="$START_WD/preprocessed_files/tasks__pp.c"
|
||||
|
||||
FONT_SIZE=17
|
||||
if [ "$2" != "" ]
|
||||
if [ "$4" != "" ]
|
||||
then
|
||||
FONT_SIZE="$2"
|
||||
FONT_SIZE="$4"
|
||||
fi
|
||||
|
||||
# Flags to SKIP expensive proofs:
|
||||
|
|
@ -27,7 +29,7 @@ fi
|
|||
cd "$PP_SCRIPT_DIR"
|
||||
pwd
|
||||
ls
|
||||
"$PP_SCRIPT" "$VF_DIR"
|
||||
"$PP_SCRIPT" "$REPO_BASE_DIR" "$VF_PROOF_BASE_DIR" "$VF_DIR"
|
||||
cd "$START_WD"
|
||||
|
||||
echo "\n\nPreprocessing script finished\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue