From 85c2900235976db5c04f47acd2d3f35398eea611 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Mon, 4 May 2026 15:52:21 -0400 Subject: [PATCH 1/8] Update bundle workflows --- .github/workflows/codeql-analysis.yml | 4 +- .github/workflows/codeql-reusable.yml | 8 +- .github/workflows/test-cfs-qemu.yml | 141 +++++++++++++++++++++----- .github/workflows/update-bundle.yml | 3 + .gitignore | 2 +- actions/build-app/action.yml | 62 +++++++++++ actions/healthcheck-logs/action.yml | 4 +- actions/setup-app/action.yml | 56 ++++++++-- apps/ds | 2 +- custom-rules.mk | 6 -- 10 files changed, 236 insertions(+), 52 deletions(-) create mode 100644 actions/build-app/action.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0e1e1b0fa..9bddf4c18 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,8 +14,8 @@ on: jobs: codeql: - uses: nasa/cFS/.github/workflows/codeql-reusable.yml@main + uses: ./.github/workflows/codeql-reusable.yml with: component-path: cFS - make: make -j8 + make: make native_std.install -j8 test: true diff --git a/.github/workflows/codeql-reusable.yml b/.github/workflows/codeql-reusable.yml index 641e1c6af..fa7d6b4e9 100644 --- a/.github/workflows/codeql-reusable.yml +++ b/.github/workflows/codeql-reusable.yml @@ -24,20 +24,20 @@ on: prep: description: 'Make Prep' - default: make prep + default: 'make native_std.prep' required: false type: string setup: description: 'Build Prep Commands' type: string - default: cp ./cfe/cmake/Makefile.sample Makefile && cp -r ./cfe/cmake/sample_defs sample_defs + default: '' required: false test: description: 'Value for ENABLE_UNIT_TESTS flag' type: string - default: false + default: 'false' required: false # Force bash to apply pipefail option so pipeline failures aren't masked @@ -48,7 +48,7 @@ defaults: env: SIMULATION: native ENABLE_UNIT_TESTS: ${{inputs.test}} - OMIT_DEPRECATED: true + OMIT_DEPRECATED: false BUILDTYPE: release REPO: ${{github.event.repository.name}} diff --git a/.github/workflows/test-cfs-qemu.yml b/.github/workflows/test-cfs-qemu.yml index 4c0a0226e..17bd7c0d9 100644 --- a/.github/workflows/test-cfs-qemu.yml +++ b/.github/workflows/test-cfs-qemu.yml @@ -6,6 +6,7 @@ on: branches: - dev - main + - jph-update-bundle pull_request: types: - opened @@ -91,8 +92,8 @@ jobs: strategy: matrix: include: - # - config: qemu_yocto_linux - # build-image: 'ghcr.io/core-flight-system/cfsbuildenv-yocto:latest' + - config: qemu_yocto_linux + build-image: 'ghcr.io/core-flight-system/cfsbuildenv-yocto:latest' - config: native_std build-image: 'ghcr.io/core-flight-system/cfsbuildenv-linux:latest' - config: native_eds @@ -128,24 +129,24 @@ jobs: include: - config: native_std healthcheck-regex: 'CFE_ES_Main entering OPERATIONAL state$' - exec-image: ghcr.io/core-flight-system/cfsbuildenv-linux:latest - cpu1-test-procedure: trad_le - cpu2-test-procedure: trad_le + exec-image: ghcr.io/core-flight-system/cfsexec-linux:latest + test-procedure: 'trad_le' + log-fetch-method: 'direct' - config: native_eds healthcheck-regex: 'CFE_ES_Main entering OPERATIONAL state$' - exec-image: ghcr.io/core-flight-system/cfsbuildenv-linux:latest - cpu1-test-procedure: eds - cpu2-test-procedure: eds - # - config: qemu_yocto_linux - # healthcheck-regex: '^Poky (Yocto Project Reference Distro)' - # exec-image: ghcr.io/core-flight-system/cfsexec-qemu:latest - # cpu1-test-procedure: trad_le - # cpu2-test-procedure: trad_be + exec-image: ghcr.io/core-flight-system/cfsexec-linux:latest + test-procedure: 'eds' + log-fetch-method: 'direct' + - config: qemu_yocto_linux + healthcheck-regex: '^Poky (Yocto Project Reference Distro)' + exec-image: aetd-dockerlab.gsfc.nasa.gov/gsfc-cfs/github-actions-ci-cd/cfsexec-qemu + test-procedure: 'trad_be' + log-fetch-method: 'ssh' - config: pc686_rtems5 healthcheck-regex: 'CFE_ES_Main entering OPERATIONAL state' exec-image: ghcr.io/core-flight-system/cfsexec-qemu:latest - cpu1-test-procedure: trad_le - cpu2-test-procedure: trad_le + test-procedure: 'trad_le' + log-fetch-method: 'direct' steps: - name: Download artifact from build @@ -188,23 +189,111 @@ jobs: container-id: ${{ steps.start-cpu1.outputs.container-id }} healthcheck-regex: ${{ matrix.healthcheck-regex }} - - name: Execute cpu1 test (traditional little endian) - if: matrix.cpu1-test-procedure == 'trad_le' + - name: Setup log retrieval via SSH + if: matrix.log-fetch-method == 'ssh' + shell: bash run: | - ./host/cmd_send --host=${{ steps.check-cpu1.outputs.ip-addr }} --endian=LE --pktid=0x1806 --cmdcode=0 + mkdir -p ~/.ssh + chmod 0700 ~/.ssh + touch ~/.ssh/known_hosts + chmod 0600 ~/.ssh/known_hosts + ssh-keyscan -p 2222 ${{ steps.check-cpu1.outputs.ip-addr }} >> ~/.ssh/known_hosts + cat ~/.ssh/known_hosts + cat > ./fetch_logs.sh << EOF + #!/bin/bash + ssh -p 2222 root@${{ steps.check-cpu1.outputs.ip-addr }} grep 'user\.notice CFS:' /var/log/messages | sed -e 's/^.*user\.notice CFS: //' + EOF + chmod +x ./fetch_logs.sh + cat ./fetch_logs.sh - - name: Execute cpu1 test (traditional big endian) - if: matrix.cpu1-test-procedure == 'trad_be' + - name: Setup direct log retrieval + if: matrix.log-fetch-method == 'direct' + shell: bash run: | - ./host/cmd_send --host=${{ steps.check-cpu1.outputs.ip-addr }} --endian=BE --pktid=0x1806 --cmdcode=0 + cat > ./fetch_logs.sh << EOF + #!/bin/bash + docker logs "${{ steps.start-cpu1.outputs.container-id }}" + EOF + chmod +x ./fetch_logs.sh + cat ./fetch_logs.sh - - name: Execute test procedure (EDS) - if: matrix.cpu1-test-procedure == 'eds' + - name: Setup Environment + if: matrix.log-fetch-method != '' run: | - ./host/cmd_send --host=${{ steps.check-cpu1.outputs.ip-addr }} -D CFE_ES/Application/CMD.NoopCmd + TEST_PROCEDURE=${{ matrix.test-procedure }} + CMDSEND_ES_MID=${{ matrix.es-mid }} + case "${TEST_PROCEDURE%%_*}" in + "eds") + CMDSEND_ES_MID_DEFAULT="CFE_ES/Application/CMD" + CMDSEND_NOOP_CMDCODE="NoopCmd" + CMDSEND_ENDIAN="EDS" + ;; + "trad") + CMDSEND_ES_MID_DEFAULT=0x1806 + CMDSEND_NOOP_CMDCODE="0" + CMDSEND_ENDIAN=$(echo "${TEST_PROCEDURE##*_}" | tr '[a-z]' '[A-Z]') + ;; + esac + echo "CMDSEND_ES_MID=${CMDSEND_ES_MID:-$CMDSEND_ES_MID_DEFAULT}" >> $GITHUB_ENV + echo "CMDSEND_NOOP_CMDCODE=${CMDSEND_NOOP_CMDCODE:-0}" >> $GITHUB_ENV + echo "CMDSEND_ENDIAN=${CMDSEND_ENDIAN:-LE}" >> $GITHUB_ENV + echo "CMDSEND_IP_ADDR=${{ steps.check-cpu1.outputs.ip-addr }}" >> $GITHUB_ENV - - name: Stop CPU1 Container + - name: Execute cpu1 test + if: env.CMDSEND_IP_ADDR != '' + run: | + ./host/cmd_send --host=${CMDSEND_IP_ADDR} --endian=${CMDSEND_ENDIAN} --pktid=${CMDSEND_ES_MID} --cmdcode=${CMDSEND_NOOP_CMDCODE} + + - name: Wait for log messages + if: env.CMDSEND_IP_ADDR != '' + shell: bash + run: | + count=0 + truncate -s 0 check-logs.txt + while [ $count -lt 30 ] && ! grep -q 'CFE_ES 3: No-op command:' check-logs.txt + do + sleep 2 + count=$(($count+1)) + ./fetch_logs.sh > check-logs.txt + done + echo "Check completed after ${count} iterations" + + - name: Collect logs if: always() + uses: actions/upload-artifact@v4 + with: + name: 'CFS Log output (${{ matrix.config }})' + path: check-logs.txt + + # Note that since other non-CFS items can also log things, this also filters + # for the CFS-style timestamp contained in all event and syslog messages from CFE + # This should limit the check to errors that are be relevant + # The build still has some known issues in a couple apps: + # - the HS system monitor may not initialize depending on platform support + # - SBN does not service the SBNSubPipe well enough, and my get limit/overflow errors + # both of these are filtered out here until they can be fixed in the app + - name: Check for message in logs + if: env.CMDSEND_IP_ADDR != '' + shell: bash + run: | + grep -P '\b\d{4}-\d{3}-\d{2}:\d{2}:\d{2}\.\d+ ' check-logs.txt | \ + grep -v 'system monitor initialization' | \ + grep -v 'SBNSubPipe' > cfs-messages.txt + grep -i 'warn\|err\|fail' cfs-messages.txt > warnings.txt || /bin/true + if [ -s warnings.txt ] + then + echo "Start up warnings or failures present:" + cat warnings.txt + /bin/false + elif ! grep -q 'CFE_ES 3: No-op command:' cfs-messages.txt + then + echo "No-op command event missing" + cat cfs-messages.txt + /bin/false + fi + + - name: Stop CPU1 Container + if: always() && steps.start-cpu1.outputs.container-id != '' uses: nasa/cFS/actions/stop-cfs-container@dev with: - container-id: ${{ steps.start-cpu1.outputs.container-id }} \ No newline at end of file + container-id: ${{ steps.start-cpu1.outputs.container-id }} diff --git a/.github/workflows/update-bundle.yml b/.github/workflows/update-bundle.yml index 3c13b4c54..46ffbd05d 100644 --- a/.github/workflows/update-bundle.yml +++ b/.github/workflows/update-bundle.yml @@ -17,6 +17,9 @@ on: # Run daily at 1:15 am schedule: - cron: "15 1 * * *" + push: + branches: + - jph-update-bundle permissions: issues: write diff --git a/.gitignore b/.gitignore index 8b9865bda..278fba667 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -build*/ +/build*/ diff --git a/actions/build-app/action.yml b/actions/build-app/action.yml new file mode 100644 index 000000000..7bfebc685 --- /dev/null +++ b/actions/build-app/action.yml @@ -0,0 +1,62 @@ +name: Build app Workflow +description: 'Build cFS with application' + +inputs: + app-name: + description: Application name + type: string + required: false + default: ${{ github.event.repository.name }} + tag: + description: staging directory tag + type: string + required: false + default: '' + startup-script: + description: startup script to install/override before creating tarball + type: string + required: false + default: '' + +runs: + using: 'composite' + steps: + - name: Setup environment + shell: bash + run: echo "DESTDIR=$GITHUB_WORKSPACE/staging${{ inputs.tag }}" >> $GITHUB_ENV + + - name: Make install + shell: bash + run: make -C build${{ inputs.tag }} mission-install + + - name: Create startup link + shell: bash + run: ln -s core-cpu1 ${DESTDIR}/exe/cpu1/container-start + + - name: Override startup script + if: inputs.startup-script != '' + shell: bash + run: | + cp ${GITHUB_WORKSPACE}/${{ inputs.startup-script }} ${DESTDIR}/exe/cpu1/cf/cfe_es_startup.scr + + - name: Create CPU1 tarball + shell: bash + run: tar Jcv -f ${DESTDIR}/cpu1-bin.tar.xz -C ${DESTDIR}/exe/cpu1 core-cpu1 container-start cf + + - name: Create Other Tarballs + shell: bash + run: | + cd ${DESTDIR}/exe + ls -lR . + find -maxdepth 1 -mindepth 1 -type d | grep -v cpu | while read dir + do + inst=$(basename ${dir}) + echo "Creating ${inst}-bin.tar.xz" + tar Jcv -f ${DESTDIR}/${inst}-bin.tar.xz -C ${inst} . + done + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ inputs.app-name }}-bin${{ inputs.tag }} + path: ${{ env.DESTDIR }}/*-bin.tar.xz diff --git a/actions/healthcheck-logs/action.yml b/actions/healthcheck-logs/action.yml index 154ba2519..ab2d1f6f9 100644 --- a/actions/healthcheck-logs/action.yml +++ b/actions/healthcheck-logs/action.yml @@ -46,7 +46,7 @@ runs: echo "Container IP: $IP_ADDR" - name: Get SSH key - if: inputs.ssh-keyscan == 'true' + if: fromJSON(inputs.ssh-keyscan) shell: bash run: | mkdir -p ~/.ssh @@ -56,4 +56,4 @@ runs: IP_ADDR=$(docker inspect "${{ inputs.container-id }}" \ --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}') ssh-keyscan -p 2222 "$IP_ADDR" | tee -a ~/.ssh/known_hosts - cat ~/.ssh/known_hosts \ No newline at end of file + cat ~/.ssh/known_hosts diff --git a/actions/setup-app/action.yml b/actions/setup-app/action.yml index 609bffe8f..14ec4d0fc 100644 --- a/actions/setup-app/action.yml +++ b/actions/setup-app/action.yml @@ -16,7 +16,17 @@ inputs: description: Options to pass to the cmake command type: string required: false - default: '-DENABLE_UNIT_TESTS=TRUE -DSIMULATION=native -DMISSIONCONFIG=sample -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/exe' + default: '-DENABLE_UNIT_TESTS=TRUE -DSIMULATION=native -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/exe' + enable-eds: + description: Whether to enable EDS in the test build + type: boolean + required: false + default: false + config-name: + description: Directory name to use for the initial configuration + type: string + required: false + default: 'sample' runs: using: 'composite' @@ -30,8 +40,19 @@ runs: APP_DEP="${{ inputs.dependency }}" echo "APP_DEP_UPPER=$(echo ${APP_DEP##*/} | sed 's/[a-z]/\U&/g')" >> $GITHUB_ENV echo "APP_DEP_LOWER=$(echo ${APP_DEP##*/} | sed 's/[A-Z]/\L&/g')" >> $GITHUB_ENV + echo "CONFIG_NAME=${{ inputs.config-name }}" >> $GITHUB_ENV + echo "STD_BUILDDIR=build" >> $GITHUB_ENV + + # if EDS is enabled then prepare for two separate build dirs + - name: Set up environment variables for EDS + if: fromJSON(inputs.enable-eds) + shell: bash + run: | + echo "STD_BUILDDIR=build-std" >> $GITHUB_ENV + echo "EDS_BUILDDIR=build-eds" >> $GITHUB_ENV + echo "CFE_EDS_ENABLED=true" >> $GITHUB_ENV - - name: Checkout cFE + - name: Checkout CFE uses: actions/checkout@v4 with: repository: nasa/cFE @@ -62,26 +83,41 @@ runs: - name: Set up basic targets.cmake config shell: bash run: | - cat > ./sample_defs/targets.cmake << EOF + cat > ./${CONFIG_NAME}_defs/targets.cmake << EOF SET(MISSION_NAME GithubActions) SET(SPACECRAFT_ID 0x42) SET(MISSION_CPUNAMES cpu1) SET(cpu1_PROCESSORID 1) - SET(MISSION_GLOBAL_APPLIST) + SET(MISSION_GLOBAL_APPLIST ci_lab to_lab) EOF - name: Add Dependencies to targets if: inputs.app-name != 'cFS' && inputs.app-name != 'cFE' shell: bash - run: echo "LIST(APPEND MISSION_GLOBAL_APPLIST $APP_DEP_LOWER $APP_LOWER)" >> ./sample_defs/targets.cmake + run: | + echo "LIST(APPEND MISSION_GLOBAL_APPLIST $APP_DEP_LOWER $APP_LOWER)" >> ./${CONFIG_NAME}_defs/targets.cmake + echo "LIST(REMOVE_DUPLICATES MISSION_GLOBAL_APPLIST)" >> ./${CONFIG_NAME}_defs/targets.cmake - name: Check targets.cmake shell: bash - run: cat ./sample_defs/targets.cmake + run: cat ./${CONFIG_NAME}_defs/targets.cmake + + # NOTE: Github seems to convert all the inputs to strings, even though it was specified to be a boolean + - name: Set up build tree (eds) + if: fromJSON(inputs.enable-eds) + shell: bash + run: | + export DESTDIR=$GITHUB_WORKSPACE/${EDS_BUILDDIR} + mkdir -p ${DESTDIR} + cd ${DESTDIR} && cmake ${{ inputs.cmake-options }} \ + -DCFE_EDS_ENABLED=ON \ + -DEDSLIB_PYTHON_BUILD_STANDALONE_MODULE=ON \ + -DCFE_MISSIONLIB_PYTHON_BUILD_STANDALONE_MODULE=ON \ + "$GITHUB_WORKSPACE/cfe" - - name: Set up build tree + - name: Set up build tree (std) shell: bash run: | - mkdir -p $GITHUB_WORKSPACE/build - echo DESTDIR=$GITHUB_WORKSPACE/build >> $GITHUB_ENV - cd $GITHUB_WORKSPACE/build && cmake ${{ inputs.cmake-options }} "$GITHUB_WORKSPACE/cfe" \ No newline at end of file + export DESTDIR=$GITHUB_WORKSPACE/${STD_BUILDDIR} + mkdir -p ${DESTDIR} + cd ${DESTDIR} && cmake ${{ inputs.cmake-options }} "$GITHUB_WORKSPACE/cfe" diff --git a/apps/ds b/apps/ds index 815620131..100ac5459 160000 --- a/apps/ds +++ b/apps/ds @@ -1 +1 @@ -Subproject commit 8156201315c7d5fd0f1bc94fadf8763f5a272808 +Subproject commit 100ac5459dfc42790a8ea56c9c8712b76ae9bb31 diff --git a/custom-rules.mk b/custom-rules.mk index af730f502..6f609b0bd 100644 --- a/custom-rules.mk +++ b/custom-rules.mk @@ -124,11 +124,6 @@ $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start: QEMU_KERNEL = -kernel rtems $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/rtems-cfs.exe $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/cfs-cpu1.diskimg -$(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/container-start: CPUNAME = cpu2 -$(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/container-start: QEMU_KERNEL = -kernel rtems-cfs.exe -append '$(RTEMS5_APPEND_OPTS)' -$(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/rtems-cfs.exe -$(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/container-start: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/cfs-cpu2.diskimg - %/container-start: custom-rules.mk truncate -s 0 "$(@)" echo -n "$(QEMU_HYPERVISOR) " >> "$(@)" @@ -148,7 +143,6 @@ $(O_pc686_rtems5)/stamp.image: QEMU_HYPERVISOR = qemu-system-i386 -m 128M -no-re $(O_pc686_rtems5)/stamp.image: QEMU_NETDEV_TYPE = i82557b $(O_pc686_rtems5)/stamp.image: QEMU_DISK_OPTS += -drive id=disk0,file=$(CFS_IMAGE_BASENAME).diskimg,format=raw $(O_pc686_rtems5)/stamp.image: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start -$(O_pc686_rtems5)/stamp.image: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/container-start # do not auto-delete these artifacts .PRECIOUS: %.ext4 %.qcow2 From 375c69655190689873a1b8251737f8c91186441c Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 6 May 2026 14:56:42 -0400 Subject: [PATCH 2/8] Update yocto version --- sample_defs/toolchain-mips32r2-poky-linux.cmake | 2 +- sample_defs/toolchain-riscv64-poky-linux.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sample_defs/toolchain-mips32r2-poky-linux.cmake b/sample_defs/toolchain-mips32r2-poky-linux.cmake index 9cd1363ad..58c896f8e 100644 --- a/sample_defs/toolchain-mips32r2-poky-linux.cmake +++ b/sample_defs/toolchain-mips32r2-poky-linux.cmake @@ -3,7 +3,7 @@ # Basic cross system configuration SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_VERSION 5.0.12) +SET(CMAKE_SYSTEM_VERSION 5.0.17) SET(CMAKE_SYSTEM_PROCESSOR mips) SET(POKY_SYSROOT_ID mips32r2-poky-linux) diff --git a/sample_defs/toolchain-riscv64-poky-linux.cmake b/sample_defs/toolchain-riscv64-poky-linux.cmake index 306a4a122..be58971fa 100644 --- a/sample_defs/toolchain-riscv64-poky-linux.cmake +++ b/sample_defs/toolchain-riscv64-poky-linux.cmake @@ -3,7 +3,7 @@ # Basic cross system configuration SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_VERSION 5.0.12) +SET(CMAKE_SYSTEM_VERSION 5.0.17) SET(CMAKE_SYSTEM_PROCESSOR riscv64) SET(POKY_SYSROOT_ID riscv64-poky-linux) From a976afb9e8be61d0d8ab1057e01e8baa28a0fe96 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 6 May 2026 17:04:40 -0400 Subject: [PATCH 3/8] Update yocto build scripts --- create_yocto_rootfs.sh | 30 ++++++++++++++++ custom-rules.mk | 34 +++++++++++-------- .../toolchain-mips32r2-poky-linux.cmake | 2 +- .../toolchain-riscv64-poky-linux.cmake | 2 +- 4 files changed, 51 insertions(+), 17 deletions(-) create mode 100644 create_yocto_rootfs.sh diff --git a/create_yocto_rootfs.sh b/create_yocto_rootfs.sh new file mode 100644 index 000000000..d431b7033 --- /dev/null +++ b/create_yocto_rootfs.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +status=1 + +subdir=$1 +[ -z ${subdir} ] && { echo "subdirectory must be specified"; exit 1; } + +container=$2 +[ -z ${container} ] && { echo "container must be specified"; exit 1; } + +docker pull ${container} +cont_id=$(docker create ${container} /bin/false) + +[ -z ${cont_id} ] && exit 1 + +if mkdir -p ${subdir} +then + docker export ${cont_id} | tar x -C ${subdir} images + status=$? +fi + +docker rm ${cont_id} + +if [ ${status} -eq 0 ] +then + ln -sv images/$(basename ${subdir}/images/*) ${subdir}/content + status=$? +fi + +exit ${status} diff --git a/custom-rules.mk b/custom-rules.mk index 6f609b0bd..bfbd9b7c7 100644 --- a/custom-rules.mk +++ b/custom-rules.mk @@ -1,8 +1,8 @@ # This converts the staging directory from "make install" into a virtual # filesystem that can be mounted in a VM or container -YOCTO_SANDBOX_REPO = https://developer.nasa.gov/cFS/yocto-sandbox -YOCTO_SANDBOX_TAG = v0.0.3-testing +YOCTO_SANDBOX_REPO = ghcr.io/core-flight-system +YOCTO_SANDBOX_TAG = latest PARTED_CMD ?= /usr/sbin/parted @@ -37,12 +37,24 @@ RTEMS5_APPEND_OPTS += --console=/dev/com1 RTEMS5_APPEND_OPTS += --batch-mode -$(QEMU_YOCTO_DEPLOY_DIR)/fetch_yocto_rootfs.cpu1.stamp: SYSTEM_PACKAGE = qemuriscv64-target-bin.tar.xz -$(QEMU_YOCTO_DEPLOY_DIR)/fetch_yocto_rootfs.cpu2.stamp: SYSTEM_PACKAGE = qemumips-target-bin.tar.xz +$(QEMU_YOCTO_DEPLOY_DIR)/fetch_yocto_rootfs.cpu1.stamp: $(QEMU_YOCTO_DEPLOY_DIR)/extract_yocto_rootfs.qemuriscv64.stamp +#SYSTEM_CONTAINER = yocto-image-qemuriscv64 +$(QEMU_YOCTO_DEPLOY_DIR)/fetch_yocto_rootfs.cpu2.stamp: $(QEMU_YOCTO_DEPLOY_DIR)/extract_yocto_rootfs.qemumips.stamp +#SYSTEM_CONTAINER = yocto-image-qemumips -$(DEPLOY_DIR)/fetch_yocto_rootfs.%.stamp: - mkdir -p $(DEPLOY_DIR)/$(CPUNAME) - curl -fsL $(YOCTO_SANDBOX_REPO)/releases/download/$(YOCTO_SANDBOX_TAG)/$(SYSTEM_PACKAGE) | tar Jxv -C $(DEPLOY_DIR)/$(CPUNAME) -f - +$(DEPLOY_DIR)/extract_yocto_rootfs.%.stamp: + /bin/bash -x ./create_yocto_rootfs.sh $(DEPLOY_DIR) $(YOCTO_SANDBOX_REPO)/yocto-image-$(*):$(YOCTO_SANDBOX_TAG) + touch "$(@)" + +$(DEPLOY_DIR)/fetch_yocto_rootfs.cpu1.stamp: + cp -Lv -t $(DEPLOY_DIR)/cpu1 $(DEPLOY_DIR)/images/qemuriscv64/core-image-cfecfs-qemuriscv64.rootfs.ext4 + cp -Lv -t $(DEPLOY_DIR)/cpu1 $(DEPLOY_DIR)/images/qemuriscv64/fw_jump.elf + cp -Lv -t $(DEPLOY_DIR)/cpu1 $(DEPLOY_DIR)/images/qemuriscv64/Image + touch "$(@)" + +$(DEPLOY_DIR)/fetch_yocto_rootfs.cpu2.stamp: + cp -Lv -t $(DEPLOY_DIR)/cpu2 $(DEPLOY_DIR)/images/qemumips/core-image-cfecfs-qemumips.rootfs.ext4 + cp -Lv -t $(DEPLOY_DIR)/cpu2 $(DEPLOY_DIR)/images/qemumips/vmlinux touch "$(@)" # generic rule for creating a CFS tarball @@ -89,14 +101,6 @@ $(DEPLOY_DIR)/fetch_yocto_rootfs.%.stamp: dd if=$(<) of=$(@).tmp bs=512 seek=63 mv -v "$(@).tmp" "$(@)" -# generic rule for creating a disk image from a fat filesystem image -%.diskimg: %.fat - mkdir -p "$(dir $(@))" - truncate -s $(IMAGE_SIZE) $(@) - $(PARTED_CMD) -s $(@) -- mklabel msdos - $(PARTED_CMD) -a none -s $(@) -- mkpart primary fat32 63s -1s - dd if=$(<) of=$(@) bs=512 seek=63 - %/rtems-cfs.exe: $(O)/stamp.install mkdir -p "$(dir $(@))" cp -v "$(O)/exe/$(CPUNAME)/core-$(CPUNAME).exe" "$(@)" diff --git a/sample_defs/toolchain-mips32r2-poky-linux.cmake b/sample_defs/toolchain-mips32r2-poky-linux.cmake index 58c896f8e..d91c1da05 100644 --- a/sample_defs/toolchain-mips32r2-poky-linux.cmake +++ b/sample_defs/toolchain-mips32r2-poky-linux.cmake @@ -3,7 +3,7 @@ # Basic cross system configuration SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_VERSION 5.0.17) +SET(CMAKE_SYSTEM_VERSION 5.0) SET(CMAKE_SYSTEM_PROCESSOR mips) SET(POKY_SYSROOT_ID mips32r2-poky-linux) diff --git a/sample_defs/toolchain-riscv64-poky-linux.cmake b/sample_defs/toolchain-riscv64-poky-linux.cmake index be58971fa..7d8333fae 100644 --- a/sample_defs/toolchain-riscv64-poky-linux.cmake +++ b/sample_defs/toolchain-riscv64-poky-linux.cmake @@ -3,7 +3,7 @@ # Basic cross system configuration SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_VERSION 5.0.17) +SET(CMAKE_SYSTEM_VERSION 5.0) SET(CMAKE_SYSTEM_PROCESSOR riscv64) SET(POKY_SYSROOT_ID riscv64-poky-linux) From 9595d89e16d7ae839744c13e5aeb5b58a9ffcd33 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 6 May 2026 17:42:29 -0400 Subject: [PATCH 4/8] Update scripts --- .github/workflows/build-cfs-multitarget.yml | 30 ++++++++-------- .github/workflows/test-cfs-qemu.yml | 38 ++++++++++++++++++++- sample_defs/generate_startup.cmake | 2 -- 3 files changed, 52 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-cfs-multitarget.yml b/.github/workflows/build-cfs-multitarget.yml index 7d0f67794..42a045071 100644 --- a/.github/workflows/build-cfs-multitarget.yml +++ b/.github/workflows/build-cfs-multitarget.yml @@ -96,20 +96,20 @@ jobs: tar cvf - -C ${inst} . | ${COMPRESSOR} > ${GITHUB_WORKSPACE}/${inst}-bin.tar.${SUFFIX} done - - name: Build target images - run: make IMAGE_TYPE=ext4 ${{ inputs.config-name }}.image - - - name: Archive target images - run: | - if cd $GITHUB_WORKSPACE/build-${{ inputs.config-name }}/deploy - then - find -maxdepth 1 -mindepth 1 -type d | while read dir - do - inst=$(basename ${dir}) - tar cvf - -C ${inst} . | ${COMPRESSOR} > ${GITHUB_WORKSPACE}/${inst}-target-img.tar.${SUFFIX} - done - fi - + #- name: Build target images + # run: make IMAGE_TYPE=ext4 ${{ inputs.config-name }}.image +# + #- name: Archive target images + # run: | + # if cd $GITHUB_WORKSPACE/build-${{ inputs.config-name }}/deploy + # then + # find -maxdepth 1 -mindepth 1 -type d | while read dir + # do + # inst=$(basename ${dir}) + # tar cvf - -C ${inst} . | ${COMPRESSOR} > ${GITHUB_WORKSPACE}/${inst}-target-img.tar.${SUFFIX} + # done + # fi +# - name: Upload all artifacts uses: actions/upload-artifact@v4 with: @@ -122,4 +122,4 @@ jobs: - name: Generate Coverage Report if: ${{ inputs.check-coverage }} - run: make ${{ inputs.config-name }}.lcov \ No newline at end of file + run: make ${{ inputs.config-name }}.lcov diff --git a/.github/workflows/test-cfs-qemu.yml b/.github/workflows/test-cfs-qemu.yml index 17bd7c0d9..47117f40c 100644 --- a/.github/workflows/test-cfs-qemu.yml +++ b/.github/workflows/test-cfs-qemu.yml @@ -6,7 +6,6 @@ on: branches: - dev - main - - jph-update-bundle pull_request: types: - opened @@ -113,6 +112,43 @@ jobs: secrets: inherit # continue-on-error: ${{ matrix.omit-deprecated }} + create-image: + name: Create Executable Images + strategy: + matrix: + include: + - config: qemu_yocto_linux + instance: cpu1 + image: yocto-image-qemuriscv64 + - config: qemu_yocto_linux + instance: cpu2 + image: yocto-image-qemumips + - config: pc686_rtems5 + instance: cpu1 + runs-on: ubuntu-22.04 + container: ghcr.io/core-flight-system/cfsbuildenv-linux:latest + steps: + - name: Download artifact from build + uses: actions/download-artifact@v4 + with: + name: ${{ matrix.config }}-bin + path: ${{ matrix.config }}-bin + + - name: Build target images + run: /bin/false + + #- name: Archive target images + # run: | + # if cd $GITHUB_WORKSPACE/build-${{ inputs.config-name }}/deploy + # then + # find -maxdepth 1 -mindepth 1 -type d | while read dir + # do + # inst=$(basename ${dir}) + # tar cvf - -C ${inst} . | ${COMPRESSOR} > ${GITHUB_WORKSPACE}/${inst}-target-img.tar.${SUFFIX} + # done + # fi +# + execute-containers: name: Execute CFS containers permissions: diff --git a/sample_defs/generate_startup.cmake b/sample_defs/generate_startup.cmake index 3a794d375..ce2f6e327 100644 --- a/sample_defs/generate_startup.cmake +++ b/sample_defs/generate_startup.cmake @@ -14,11 +14,9 @@ function (generate_cfs_startup_script CFS_INSTALL_DIR) # the rest of the apps can vary by config set(CFS_APP_STARTUP_ORDER lc cf ds fm hk hs mm sc md cs sbn) foreach(APP ${CFS_APP_STARTUP_ORDER}) - message("Test: ${APP} in ${CFS_INSTALL_APPLIST}") list(FIND ARGN ${APP} SHOULD_START) if (SHOULD_START GREATER -1) string(TOUPPER "${APP}" APP_UPPER) - message("yes to ${APP_UPPER}") file (APPEND ${STARTUP_FILE} "CFE_APP, ${APP}, ${APP_UPPER}_AppMain, ${APP_UPPER}, 70, 131072, 0x0, 0;\n" ) From 5d4914120bfcf03f2f0cf8d5783b4ca9c8d3f5b5 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 6 May 2026 17:49:35 -0400 Subject: [PATCH 5/8] Update versions --- .github/workflows/build-cfs-multitarget.yml | 2 +- .github/workflows/build-doc-reusable.yml | 6 +++--- .github/workflows/build-run-app-reusable.yml | 8 ++++---- .github/workflows/cfs-wiki.yml | 4 ++-- .github/workflows/changelog.yml | 2 +- .github/workflows/codeql-reusable.yml | 2 +- .github/workflows/format-check.yml | 4 ++-- .github/workflows/mcdc-reusable.yml | 12 ++++++------ .github/workflows/test-cfs-qemu.yml | 9 +++++---- .github/workflows/unit-test-coverage-reusable.yml | 4 ++-- actions/build-app/action.yml | 2 +- actions/cppcheck/action.yml | 4 ++-- 12 files changed, 30 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build-cfs-multitarget.yml b/.github/workflows/build-cfs-multitarget.yml index 42a045071..b1fbfae23 100644 --- a/.github/workflows/build-cfs-multitarget.yml +++ b/.github/workflows/build-cfs-multitarget.yml @@ -111,7 +111,7 @@ jobs: # fi # - name: Upload all artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ inputs.config-name }}-bin path: ./*.tar.${{ inputs.compression-type }} diff --git a/.github/workflows/build-doc-reusable.yml b/.github/workflows/build-doc-reusable.yml index 9bc5b32fe..1bc5320b7 100644 --- a/.github/workflows/build-doc-reusable.yml +++ b/.github/workflows/build-doc-reusable.yml @@ -94,7 +94,7 @@ jobs: mv build/docs/${{ matrix.target }}/${{ matrix.target }}-warnings.log . - name: Archive Document Build Logs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.target }}_doc_build_logs path: | @@ -131,7 +131,7 @@ jobs: - name: Archive PDF if: ${{ inputs.buildpdf == true }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.target }}_pdf - path: ./deploy/${{ matrix.target }}.pdf \ No newline at end of file + path: ./deploy/${{ matrix.target }}.pdf diff --git a/.github/workflows/build-run-app-reusable.yml b/.github/workflows/build-run-app-reusable.yml index 260bd1c4d..b1338cc28 100644 --- a/.github/workflows/build-run-app-reusable.yml +++ b/.github/workflows/build-run-app-reusable.yml @@ -96,7 +96,7 @@ jobs: done - name: Upload all artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ inputs.app-name }}-bin path: ./*.tar.xz @@ -108,7 +108,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: ${{ inputs.app-name }}-bin path: ${{ inputs.app-name }}-bin @@ -160,7 +160,7 @@ jobs: - name: Archive results if: success() || failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cFS_startup_log path: cFS_startup_cpu1.txt @@ -183,4 +183,4 @@ jobs: echo "" grep -i 'warn\|err\|fail' cFS_startup_cpu1.txt exit -1 - fi \ No newline at end of file + fi diff --git a/.github/workflows/cfs-wiki.yml b/.github/workflows/cfs-wiki.yml index f3186d1b9..8420946ff 100644 --- a/.github/workflows/cfs-wiki.yml +++ b/.github/workflows/cfs-wiki.yml @@ -26,7 +26,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Archive CCB agenda artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ccb-agenda - path: ./CCBAgenda.md \ No newline at end of file + path: ./CCBAgenda.md diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 761cc088e..59188aa47 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -32,7 +32,7 @@ jobs: author: false - name: "Upload changelog" - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: "Changelog" path: CHANGELOG.md diff --git a/.github/workflows/codeql-reusable.yml b/.github/workflows/codeql-reusable.yml index fa7d6b4e9..8f61dbf5f 100644 --- a/.github/workflows/codeql-reusable.yml +++ b/.github/workflows/codeql-reusable.yml @@ -149,7 +149,7 @@ jobs: output: CodeQL-Sarif-${{ matrix.scan-type }}/Codeql-${{ matrix.scan-type }}.sarif - name: Archive Sarif - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: CodeQL-Sarif-${{ matrix.scan-type }} path: CodeQL-Sarif-${{ matrix.scan-type }} diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index a101092fe..eebbb5abc 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -60,7 +60,7 @@ jobs: # Otherwise if there was a failure the file should be non-empty - name: Archive difference artifacts if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: style_differences path: style_differences.txt @@ -82,4 +82,4 @@ jobs: excludeDescription: 'true' excludeTitle: 'true' checkAllCommitMessages: 'true' - accessToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + accessToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/mcdc-reusable.yml b/.github/workflows/mcdc-reusable.yml index 2c9c536a9..a347589de 100644 --- a/.github/workflows/mcdc-reusable.yml +++ b/.github/workflows/mcdc-reusable.yml @@ -111,7 +111,7 @@ jobs: - name: Archive unit test results # Archive unit test results if tests ran, even if step failed if: ${{ env.TESTS_RAN == 'true' }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: Unit test results path: | @@ -120,7 +120,7 @@ jobs: - name: Archive MCDC results # Archive MCDC results if tests ran, even if step failed if: success() || failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: MCDC results path: | @@ -145,7 +145,7 @@ jobs: - name: Download latest main branch artifact continue-on-error: true - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v8 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: mcdc.yml @@ -155,7 +155,7 @@ jobs: path: ./main-branch-results - name: Downloads PR artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: MCDC results @@ -201,9 +201,9 @@ jobs: - name: Archive mcdc comparison # Upload if success or failure which supports skipping, unlike always() if: success() || failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: MCDC main branch comparison path: | mcdc_comment.txt - mcdc_compare.txt \ No newline at end of file + mcdc_compare.txt diff --git a/.github/workflows/test-cfs-qemu.yml b/.github/workflows/test-cfs-qemu.yml index 47117f40c..8bd798543 100644 --- a/.github/workflows/test-cfs-qemu.yml +++ b/.github/workflows/test-cfs-qemu.yml @@ -114,6 +114,7 @@ jobs: create-image: name: Create Executable Images + needs: build-cfs strategy: matrix: include: @@ -129,7 +130,7 @@ jobs: container: ghcr.io/core-flight-system/cfsbuildenv-linux:latest steps: - name: Download artifact from build - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: ${{ matrix.config }}-bin path: ${{ matrix.config }}-bin @@ -158,7 +159,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_HOST: github.com GH_REPO: nasa/cFS - needs: build-cfs + needs: create-image runs-on: ubuntu-22.04 strategy: matrix: @@ -192,7 +193,7 @@ jobs: # echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token # gh run download 58922 -p ${{ matrix.config }}-bin # ls -lR . - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: ${{ matrix.config }}-bin path: ${{ matrix.config }}-bin @@ -296,7 +297,7 @@ jobs: - name: Collect logs if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: 'CFS Log output (${{ matrix.config }})' path: check-logs.txt diff --git a/.github/workflows/unit-test-coverage-reusable.yml b/.github/workflows/unit-test-coverage-reusable.yml index 2328ebbdb..fd7fbd162 100644 --- a/.github/workflows/unit-test-coverage-reusable.yml +++ b/.github/workflows/unit-test-coverage-reusable.yml @@ -148,10 +148,10 @@ jobs: - name: Archive results # Upload if success or failure which supports skipping, unlike always() if: success() || failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: Unit test and coverage results path: | test_results.txt lcov_out.txt - lcov \ No newline at end of file + lcov diff --git a/actions/build-app/action.yml b/actions/build-app/action.yml index 7bfebc685..72242e52b 100644 --- a/actions/build-app/action.yml +++ b/actions/build-app/action.yml @@ -56,7 +56,7 @@ runs: done - name: Upload artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ inputs.app-name }}-bin${{ inputs.tag }} path: ${{ env.DESTDIR }}/*-bin.tar.xz diff --git a/actions/cppcheck/action.yml b/actions/cppcheck/action.yml index 953537f54..3e94d4026 100644 --- a/actions/cppcheck/action.yml +++ b/actions/cppcheck/action.yml @@ -72,11 +72,11 @@ runs: run: xsltproc cppcheck-xml2text.xslt cppcheck_err.xml | tee $GITHUB_STEP_SUMMARY cppcheck_err.txt - name: Archive static analysis artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cppcheck-errors path: ./*cppcheck_err.* - name: Check for reported errors shell: bash - run: tail -n 1 cppcheck_err.txt | grep -q '^\*\*0 error(s) reported\*\*$' \ No newline at end of file + run: tail -n 1 cppcheck_err.txt | grep -q '^\*\*0 error(s) reported\*\*$' From ff6b2f59aef74ec516a825d42aa6a32bda153b11 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 6 May 2026 17:53:40 -0400 Subject: [PATCH 6/8] Update versions --- .github/workflows/test-cfs-qemu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-cfs-qemu.yml b/.github/workflows/test-cfs-qemu.yml index 8bd798543..5b4ab7edb 100644 --- a/.github/workflows/test-cfs-qemu.yml +++ b/.github/workflows/test-cfs-qemu.yml @@ -104,7 +104,7 @@ jobs: - config: gr712_rtems5 build-image: 'ghcr.io/core-flight-system/cfsbuildenv-gaisler-sparc-rcc:latest' name: Build CFS with ${{ matrix.config }} configuration - uses: nasa/cFS/.github/workflows/build-cfs-multitarget.yml@dev + uses: ./.github/workflows/build-cfs-multitarget.yml with: config-name: ${{ matrix.config }} container-image: ${{ matrix.build-image }} From db47fede90b0f81281ee482372a9668f189b5525 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Thu, 7 May 2026 10:58:55 -0400 Subject: [PATCH 7/8] Fix #998, update workflow configuration Updates the configuration and workflows to address failures --- .github/workflows/build-cfs-multitarget.yml | 14 -- .github/workflows/codeql-analysis.yml | 4 +- .github/workflows/codeql-reusable.yml | 8 +- .github/workflows/test-cfs-qemu.yml | 135 ++++++++++++++---- .gitignore | 2 +- actions/build-app/action.yml | 62 ++++++++ actions/healthcheck-logs/action.yml | 2 +- actions/setup-app/action.yml | 56 ++++++-- custom-rules.mk | 40 +++--- sample_defs/generate_startup.cmake | 2 - .../toolchain-mips32r2-poky-linux.cmake | 2 +- .../toolchain-riscv64-poky-linux.cmake | 2 +- 12 files changed, 246 insertions(+), 83 deletions(-) create mode 100644 actions/build-app/action.yml diff --git a/.github/workflows/build-cfs-multitarget.yml b/.github/workflows/build-cfs-multitarget.yml index cc98e8313..8371c89c3 100644 --- a/.github/workflows/build-cfs-multitarget.yml +++ b/.github/workflows/build-cfs-multitarget.yml @@ -96,20 +96,6 @@ jobs: tar cvf - -C ${inst} . | ${COMPRESSOR} > ${GITHUB_WORKSPACE}/${inst}-bin.tar.${SUFFIX} done - - name: Build target images - run: make IMAGE_TYPE=ext4 ${{ inputs.config-name }}.image - - - name: Archive target images - run: | - if cd $GITHUB_WORKSPACE/build-${{ inputs.config-name }}/deploy - then - find -maxdepth 1 -mindepth 1 -type d | while read dir - do - inst=$(basename ${dir}) - tar cvf - -C ${inst} . | ${COMPRESSOR} > ${GITHUB_WORKSPACE}/${inst}-target-img.tar.${SUFFIX} - done - fi - - name: Upload all artifacts uses: actions/upload-artifact@v7 with: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6da445937..e68985d4b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,9 +14,9 @@ on: jobs: codeql: - uses: nasa/cFS/.github/workflows/codeql-reusable.yml@dev + uses: ./.github/workflows/codeql-reusable.yml with: component-path: cFS prep: make native_std.prep make: make native_std.install - test: true \ No newline at end of file + test: true diff --git a/.github/workflows/codeql-reusable.yml b/.github/workflows/codeql-reusable.yml index 0df9dfde8..38931b126 100644 --- a/.github/workflows/codeql-reusable.yml +++ b/.github/workflows/codeql-reusable.yml @@ -30,20 +30,20 @@ on: prep: description: 'Make Prep' - default: make prep + default: 'make native_std.prep' required: false type: string setup: description: 'Build Prep Commands' type: string - default: cp ./cfe/cmake/Makefile.sample Makefile && cp -r ./cfe/cmake/sample_defs sample_defs + default: '' required: false test: description: 'Value for ENABLE_UNIT_TESTS flag' type: string - default: false + default: 'false' required: false # Force bash to apply pipefail option so pipeline failures aren't masked @@ -55,7 +55,7 @@ env: SIMULATION: native ENABLE_UNIT_TESTS: ${{inputs.test}} OMIT_DEPRECATED: false - BUILDTYPE: debug + BUILDTYPE: release REPO: ${{github.event.repository.name}} jobs: diff --git a/.github/workflows/test-cfs-qemu.yml b/.github/workflows/test-cfs-qemu.yml index cb1a1d332..ffd613efb 100644 --- a/.github/workflows/test-cfs-qemu.yml +++ b/.github/workflows/test-cfs-qemu.yml @@ -91,8 +91,8 @@ jobs: strategy: matrix: include: - # - config: qemu_yocto_linux - # build-image: 'ghcr.io/core-flight-system/cfsbuildenv-yocto:latest' + - config: qemu_yocto_linux + build-image: 'ghcr.io/core-flight-system/cfsbuildenv-yocto:latest' - config: native_std build-image: 'ghcr.io/core-flight-system/cfsbuildenv-linux:latest' - config: native_eds @@ -104,7 +104,7 @@ jobs: - config: gr712_rtems5 build-image: 'ghcr.io/core-flight-system/cfsbuildenv-gaisler-sparc-rcc:latest' name: Build CFS with ${{ matrix.config }} configuration - uses: nasa/cFS/.github/workflows/build-cfs-multitarget.yml@dev + uses: ./.github/workflows/build-cfs-multitarget.yml with: config-name: ${{ matrix.config }} container-image: ${{ matrix.build-image }} @@ -128,24 +128,19 @@ jobs: include: - config: native_std healthcheck-regex: 'CFE_ES_Main entering OPERATIONAL state$' - exec-image: ghcr.io/core-flight-system/cfsbuildenv-linux:latest - cpu1-test-procedure: trad_le - cpu2-test-procedure: trad_le + exec-image: ghcr.io/core-flight-system/cfsexec-linux:latest + test-procedure: 'trad_le' + log-fetch-method: 'direct' - config: native_eds healthcheck-regex: 'CFE_ES_Main entering OPERATIONAL state$' - exec-image: ghcr.io/core-flight-system/cfsbuildenv-linux:latest - cpu1-test-procedure: eds - cpu2-test-procedure: eds - # - config: qemu_yocto_linux - # healthcheck-regex: '^Poky (Yocto Project Reference Distro)' - # exec-image: ghcr.io/core-flight-system/cfsexec-qemu:latest - # cpu1-test-procedure: trad_le - # cpu2-test-procedure: trad_be + exec-image: ghcr.io/core-flight-system/cfsexec-linux:latest + test-procedure: 'eds' + log-fetch-method: 'direct' - config: pc686_rtems5 healthcheck-regex: 'CFE_ES_Main entering OPERATIONAL state' exec-image: ghcr.io/core-flight-system/cfsexec-qemu:latest - cpu1-test-procedure: trad_le - cpu2-test-procedure: trad_le + test-procedure: 'trad_le' + log-fetch-method: 'direct' steps: - name: Download artifact from build @@ -188,23 +183,111 @@ jobs: container-id: ${{ steps.start-cpu1.outputs.container-id }} healthcheck-regex: ${{ matrix.healthcheck-regex }} - - name: Execute cpu1 test (traditional little endian) - if: matrix.cpu1-test-procedure == 'trad_le' + - name: Setup log retrieval via SSH + if: matrix.log-fetch-method == 'ssh' + shell: bash run: | - ./host/cmd_send --host=${{ steps.check-cpu1.outputs.ip-addr }} --endian=LE --pktid=0x1806 --cmdcode=0 + mkdir -p ~/.ssh + chmod 0700 ~/.ssh + touch ~/.ssh/known_hosts + chmod 0600 ~/.ssh/known_hosts + ssh-keyscan -p 2222 ${{ steps.check-cpu1.outputs.ip-addr }} >> ~/.ssh/known_hosts + cat ~/.ssh/known_hosts + cat > ./fetch_logs.sh << EOF + #!/bin/bash + ssh -p 2222 root@${{ steps.check-cpu1.outputs.ip-addr }} grep 'user\.notice CFS:' /var/log/messages | sed -e 's/^.*user\.notice CFS: //' + EOF + chmod +x ./fetch_logs.sh + cat ./fetch_logs.sh - - name: Execute cpu1 test (traditional big endian) - if: matrix.cpu1-test-procedure == 'trad_be' + - name: Setup direct log retrieval + if: matrix.log-fetch-method == 'direct' + shell: bash run: | - ./host/cmd_send --host=${{ steps.check-cpu1.outputs.ip-addr }} --endian=BE --pktid=0x1806 --cmdcode=0 + cat > ./fetch_logs.sh << EOF + #!/bin/bash + docker logs "${{ steps.start-cpu1.outputs.container-id }}" + EOF + chmod +x ./fetch_logs.sh + cat ./fetch_logs.sh - - name: Execute test procedure (EDS) - if: matrix.cpu1-test-procedure == 'eds' + - name: Setup Environment + if: matrix.log-fetch-method != '' run: | - ./host/cmd_send --host=${{ steps.check-cpu1.outputs.ip-addr }} -D CFE_ES/Application/CMD.NoopCmd + TEST_PROCEDURE=${{ matrix.test-procedure }} + CMDSEND_ES_MID=${{ matrix.es-mid }} + case "${TEST_PROCEDURE%%_*}" in + "eds") + CMDSEND_ES_MID_DEFAULT="CFE_ES/Application/CMD" + CMDSEND_NOOP_CMDCODE="NoopCmd" + CMDSEND_ENDIAN="EDS" + ;; + "trad") + CMDSEND_ES_MID_DEFAULT=0x1806 + CMDSEND_NOOP_CMDCODE="0" + CMDSEND_ENDIAN=$(echo "${TEST_PROCEDURE##*_}" | tr '[a-z]' '[A-Z]') + ;; + esac + echo "CMDSEND_ES_MID=${CMDSEND_ES_MID:-$CMDSEND_ES_MID_DEFAULT}" >> $GITHUB_ENV + echo "CMDSEND_NOOP_CMDCODE=${CMDSEND_NOOP_CMDCODE:-0}" >> $GITHUB_ENV + echo "CMDSEND_ENDIAN=${CMDSEND_ENDIAN:-LE}" >> $GITHUB_ENV + echo "CMDSEND_IP_ADDR=${{ steps.check-cpu1.outputs.ip-addr }}" >> $GITHUB_ENV - - name: Stop CPU1 Container + - name: Execute cpu1 test + if: env.CMDSEND_IP_ADDR != '' + run: | + ./host/cmd_send --host=${CMDSEND_IP_ADDR} --endian=${CMDSEND_ENDIAN} --pktid=${CMDSEND_ES_MID} --cmdcode=${CMDSEND_NOOP_CMDCODE} + + - name: Wait for log messages + if: env.CMDSEND_IP_ADDR != '' + shell: bash + run: | + count=0 + truncate -s 0 check-logs.txt + while [ $count -lt 30 ] && ! grep -q 'CFE_ES 3: No-op command:' check-logs.txt + do + sleep 2 + count=$(($count+1)) + ./fetch_logs.sh > check-logs.txt + done + echo "Check completed after ${count} iterations" + + - name: Collect logs if: always() + uses: actions/upload-artifact@v7 + with: + name: 'CFS Log output (${{ matrix.config }})' + path: check-logs.txt + + # Note that since other non-CFS items can also log things, this also filters + # for the CFS-style timestamp contained in all event and syslog messages from CFE + # This should limit the check to errors that are be relevant + # The build still has some known issues in a couple apps: + # - the HS system monitor may not initialize depending on platform support + # - SBN does not service the SBNSubPipe well enough, and my get limit/overflow errors + # both of these are filtered out here until they can be fixed in the app + - name: Check for message in logs + if: env.CMDSEND_IP_ADDR != '' + shell: bash + run: | + grep -P '\b\d{4}-\d{3}-\d{2}:\d{2}:\d{2}\.\d+ ' check-logs.txt | \ + grep -v 'system monitor initialization' | \ + grep -v 'SBNSubPipe' > cfs-messages.txt + grep -i 'warn\|err\|fail' cfs-messages.txt > warnings.txt || /bin/true + if [ -s warnings.txt ] + then + echo "Start up warnings or failures present:" + cat warnings.txt + /bin/false + elif ! grep -q 'CFE_ES 3: No-op command:' cfs-messages.txt + then + echo "No-op command event missing" + cat cfs-messages.txt + /bin/false + fi + + - name: Stop CPU1 Container + if: always() && steps.start-cpu1.outputs.container-id != '' uses: nasa/cFS/actions/stop-cfs-container@dev with: container-id: ${{ steps.start-cpu1.outputs.container-id }} diff --git a/.gitignore b/.gitignore index 8b9865bda..278fba667 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -build*/ +/build*/ diff --git a/actions/build-app/action.yml b/actions/build-app/action.yml new file mode 100644 index 000000000..72242e52b --- /dev/null +++ b/actions/build-app/action.yml @@ -0,0 +1,62 @@ +name: Build app Workflow +description: 'Build cFS with application' + +inputs: + app-name: + description: Application name + type: string + required: false + default: ${{ github.event.repository.name }} + tag: + description: staging directory tag + type: string + required: false + default: '' + startup-script: + description: startup script to install/override before creating tarball + type: string + required: false + default: '' + +runs: + using: 'composite' + steps: + - name: Setup environment + shell: bash + run: echo "DESTDIR=$GITHUB_WORKSPACE/staging${{ inputs.tag }}" >> $GITHUB_ENV + + - name: Make install + shell: bash + run: make -C build${{ inputs.tag }} mission-install + + - name: Create startup link + shell: bash + run: ln -s core-cpu1 ${DESTDIR}/exe/cpu1/container-start + + - name: Override startup script + if: inputs.startup-script != '' + shell: bash + run: | + cp ${GITHUB_WORKSPACE}/${{ inputs.startup-script }} ${DESTDIR}/exe/cpu1/cf/cfe_es_startup.scr + + - name: Create CPU1 tarball + shell: bash + run: tar Jcv -f ${DESTDIR}/cpu1-bin.tar.xz -C ${DESTDIR}/exe/cpu1 core-cpu1 container-start cf + + - name: Create Other Tarballs + shell: bash + run: | + cd ${DESTDIR}/exe + ls -lR . + find -maxdepth 1 -mindepth 1 -type d | grep -v cpu | while read dir + do + inst=$(basename ${dir}) + echo "Creating ${inst}-bin.tar.xz" + tar Jcv -f ${DESTDIR}/${inst}-bin.tar.xz -C ${inst} . + done + + - name: Upload artifacts + uses: actions/upload-artifact@v7 + with: + name: ${{ inputs.app-name }}-bin${{ inputs.tag }} + path: ${{ env.DESTDIR }}/*-bin.tar.xz diff --git a/actions/healthcheck-logs/action.yml b/actions/healthcheck-logs/action.yml index 154ba2519..4d09e037a 100644 --- a/actions/healthcheck-logs/action.yml +++ b/actions/healthcheck-logs/action.yml @@ -46,7 +46,7 @@ runs: echo "Container IP: $IP_ADDR" - name: Get SSH key - if: inputs.ssh-keyscan == 'true' + if: fromJSON(inputs.ssh-keyscan) shell: bash run: | mkdir -p ~/.ssh diff --git a/actions/setup-app/action.yml b/actions/setup-app/action.yml index 8f8cc4ca3..4c190e95b 100644 --- a/actions/setup-app/action.yml +++ b/actions/setup-app/action.yml @@ -16,7 +16,17 @@ inputs: description: Options to pass to the cmake command type: string required: false - default: '-DENABLE_UNIT_TESTS=TRUE -DSIMULATION=native -DMISSIONCONFIG=sample -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/exe' + default: '-DENABLE_UNIT_TESTS=TRUE -DSIMULATION=native -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/exe' + enable-eds: + description: Whether to enable EDS in the test build + type: boolean + required: false + default: false + config-name: + description: Directory name to use for the initial configuration + type: string + required: false + default: 'sample' runs: using: 'composite' @@ -30,8 +40,19 @@ runs: APP_DEP="${{ inputs.dependency }}" echo "APP_DEP_UPPER=$(echo ${APP_DEP##*/} | sed 's/[a-z]/\U&/g')" >> $GITHUB_ENV echo "APP_DEP_LOWER=$(echo ${APP_DEP##*/} | sed 's/[A-Z]/\L&/g')" >> $GITHUB_ENV + echo "CONFIG_NAME=${{ inputs.config-name }}" >> $GITHUB_ENV + echo "STD_BUILDDIR=build" >> $GITHUB_ENV + + # if EDS is enabled then prepare for two separate build dirs + - name: Set up environment variables for EDS + if: fromJSON(inputs.enable-eds) + shell: bash + run: | + echo "STD_BUILDDIR=build-std" >> $GITHUB_ENV + echo "EDS_BUILDDIR=build-eds" >> $GITHUB_ENV + echo "CFE_EDS_ENABLED=true" >> $GITHUB_ENV - - name: Checkout cFE + - name: Checkout CFE uses: actions/checkout@v6 with: repository: nasa/cFE @@ -62,26 +83,41 @@ runs: - name: Set up basic targets.cmake config shell: bash run: | - cat > ./sample_defs/targets.cmake << EOF + cat > ./${CONFIG_NAME}_defs/targets.cmake << EOF SET(MISSION_NAME GithubActions) SET(SPACECRAFT_ID 0x42) SET(MISSION_CPUNAMES cpu1) SET(cpu1_PROCESSORID 1) - SET(MISSION_GLOBAL_APPLIST) + SET(MISSION_GLOBAL_APPLIST ci_lab to_lab) EOF - name: Add Dependencies to targets if: inputs.app-name != 'cFS' && inputs.app-name != 'cFE' shell: bash - run: echo "LIST(APPEND MISSION_GLOBAL_APPLIST $APP_DEP_LOWER $APP_LOWER)" >> ./sample_defs/targets.cmake + run: | + echo "LIST(APPEND MISSION_GLOBAL_APPLIST $APP_DEP_LOWER $APP_LOWER)" >> ./${CONFIG_NAME}_defs/targets.cmake + echo "LIST(REMOVE_DUPLICATES MISSION_GLOBAL_APPLIST)" >> ./${CONFIG_NAME}_defs/targets.cmake - name: Check targets.cmake shell: bash - run: cat ./sample_defs/targets.cmake + run: cat ./${CONFIG_NAME}_defs/targets.cmake + + # NOTE: Github seems to convert all the inputs to strings, even though it was specified to be a boolean + - name: Set up build tree (eds) + if: fromJSON(inputs.enable-eds) + shell: bash + run: | + export DESTDIR=$GITHUB_WORKSPACE/${EDS_BUILDDIR} + mkdir -p ${DESTDIR} + cd ${DESTDIR} && cmake ${{ inputs.cmake-options }} \ + -DCFE_EDS_ENABLED=ON \ + -DEDSLIB_PYTHON_BUILD_STANDALONE_MODULE=ON \ + -DCFE_MISSIONLIB_PYTHON_BUILD_STANDALONE_MODULE=ON \ + "$GITHUB_WORKSPACE/cfe" - - name: Set up build tree + - name: Set up build tree (std) shell: bash run: | - mkdir -p $GITHUB_WORKSPACE/build - echo DESTDIR=$GITHUB_WORKSPACE/build >> $GITHUB_ENV - cd $GITHUB_WORKSPACE/build && cmake ${{ inputs.cmake-options }} "$GITHUB_WORKSPACE/cfe" + export DESTDIR=$GITHUB_WORKSPACE/${STD_BUILDDIR} + mkdir -p ${DESTDIR} + cd ${DESTDIR} && cmake ${{ inputs.cmake-options }} "$GITHUB_WORKSPACE/cfe" diff --git a/custom-rules.mk b/custom-rules.mk index af730f502..bfbd9b7c7 100644 --- a/custom-rules.mk +++ b/custom-rules.mk @@ -1,8 +1,8 @@ # This converts the staging directory from "make install" into a virtual # filesystem that can be mounted in a VM or container -YOCTO_SANDBOX_REPO = https://developer.nasa.gov/cFS/yocto-sandbox -YOCTO_SANDBOX_TAG = v0.0.3-testing +YOCTO_SANDBOX_REPO = ghcr.io/core-flight-system +YOCTO_SANDBOX_TAG = latest PARTED_CMD ?= /usr/sbin/parted @@ -37,12 +37,24 @@ RTEMS5_APPEND_OPTS += --console=/dev/com1 RTEMS5_APPEND_OPTS += --batch-mode -$(QEMU_YOCTO_DEPLOY_DIR)/fetch_yocto_rootfs.cpu1.stamp: SYSTEM_PACKAGE = qemuriscv64-target-bin.tar.xz -$(QEMU_YOCTO_DEPLOY_DIR)/fetch_yocto_rootfs.cpu2.stamp: SYSTEM_PACKAGE = qemumips-target-bin.tar.xz +$(QEMU_YOCTO_DEPLOY_DIR)/fetch_yocto_rootfs.cpu1.stamp: $(QEMU_YOCTO_DEPLOY_DIR)/extract_yocto_rootfs.qemuriscv64.stamp +#SYSTEM_CONTAINER = yocto-image-qemuriscv64 +$(QEMU_YOCTO_DEPLOY_DIR)/fetch_yocto_rootfs.cpu2.stamp: $(QEMU_YOCTO_DEPLOY_DIR)/extract_yocto_rootfs.qemumips.stamp +#SYSTEM_CONTAINER = yocto-image-qemumips -$(DEPLOY_DIR)/fetch_yocto_rootfs.%.stamp: - mkdir -p $(DEPLOY_DIR)/$(CPUNAME) - curl -fsL $(YOCTO_SANDBOX_REPO)/releases/download/$(YOCTO_SANDBOX_TAG)/$(SYSTEM_PACKAGE) | tar Jxv -C $(DEPLOY_DIR)/$(CPUNAME) -f - +$(DEPLOY_DIR)/extract_yocto_rootfs.%.stamp: + /bin/bash -x ./create_yocto_rootfs.sh $(DEPLOY_DIR) $(YOCTO_SANDBOX_REPO)/yocto-image-$(*):$(YOCTO_SANDBOX_TAG) + touch "$(@)" + +$(DEPLOY_DIR)/fetch_yocto_rootfs.cpu1.stamp: + cp -Lv -t $(DEPLOY_DIR)/cpu1 $(DEPLOY_DIR)/images/qemuriscv64/core-image-cfecfs-qemuriscv64.rootfs.ext4 + cp -Lv -t $(DEPLOY_DIR)/cpu1 $(DEPLOY_DIR)/images/qemuriscv64/fw_jump.elf + cp -Lv -t $(DEPLOY_DIR)/cpu1 $(DEPLOY_DIR)/images/qemuriscv64/Image + touch "$(@)" + +$(DEPLOY_DIR)/fetch_yocto_rootfs.cpu2.stamp: + cp -Lv -t $(DEPLOY_DIR)/cpu2 $(DEPLOY_DIR)/images/qemumips/core-image-cfecfs-qemumips.rootfs.ext4 + cp -Lv -t $(DEPLOY_DIR)/cpu2 $(DEPLOY_DIR)/images/qemumips/vmlinux touch "$(@)" # generic rule for creating a CFS tarball @@ -89,14 +101,6 @@ $(DEPLOY_DIR)/fetch_yocto_rootfs.%.stamp: dd if=$(<) of=$(@).tmp bs=512 seek=63 mv -v "$(@).tmp" "$(@)" -# generic rule for creating a disk image from a fat filesystem image -%.diskimg: %.fat - mkdir -p "$(dir $(@))" - truncate -s $(IMAGE_SIZE) $(@) - $(PARTED_CMD) -s $(@) -- mklabel msdos - $(PARTED_CMD) -a none -s $(@) -- mkpart primary fat32 63s -1s - dd if=$(<) of=$(@) bs=512 seek=63 - %/rtems-cfs.exe: $(O)/stamp.install mkdir -p "$(dir $(@))" cp -v "$(O)/exe/$(CPUNAME)/core-$(CPUNAME).exe" "$(@)" @@ -124,11 +128,6 @@ $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start: QEMU_KERNEL = -kernel rtems $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/rtems-cfs.exe $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/cfs-cpu1.diskimg -$(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/container-start: CPUNAME = cpu2 -$(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/container-start: QEMU_KERNEL = -kernel rtems-cfs.exe -append '$(RTEMS5_APPEND_OPTS)' -$(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/rtems-cfs.exe -$(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/container-start: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/cfs-cpu2.diskimg - %/container-start: custom-rules.mk truncate -s 0 "$(@)" echo -n "$(QEMU_HYPERVISOR) " >> "$(@)" @@ -148,7 +147,6 @@ $(O_pc686_rtems5)/stamp.image: QEMU_HYPERVISOR = qemu-system-i386 -m 128M -no-re $(O_pc686_rtems5)/stamp.image: QEMU_NETDEV_TYPE = i82557b $(O_pc686_rtems5)/stamp.image: QEMU_DISK_OPTS += -drive id=disk0,file=$(CFS_IMAGE_BASENAME).diskimg,format=raw $(O_pc686_rtems5)/stamp.image: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu1/container-start -$(O_pc686_rtems5)/stamp.image: $(QEMU_PC686_RTEMS_DEPLOY_DIR)/cpu2/container-start # do not auto-delete these artifacts .PRECIOUS: %.ext4 %.qcow2 diff --git a/sample_defs/generate_startup.cmake b/sample_defs/generate_startup.cmake index 3a794d375..ce2f6e327 100644 --- a/sample_defs/generate_startup.cmake +++ b/sample_defs/generate_startup.cmake @@ -14,11 +14,9 @@ function (generate_cfs_startup_script CFS_INSTALL_DIR) # the rest of the apps can vary by config set(CFS_APP_STARTUP_ORDER lc cf ds fm hk hs mm sc md cs sbn) foreach(APP ${CFS_APP_STARTUP_ORDER}) - message("Test: ${APP} in ${CFS_INSTALL_APPLIST}") list(FIND ARGN ${APP} SHOULD_START) if (SHOULD_START GREATER -1) string(TOUPPER "${APP}" APP_UPPER) - message("yes to ${APP_UPPER}") file (APPEND ${STARTUP_FILE} "CFE_APP, ${APP}, ${APP_UPPER}_AppMain, ${APP_UPPER}, 70, 131072, 0x0, 0;\n" ) diff --git a/sample_defs/toolchain-mips32r2-poky-linux.cmake b/sample_defs/toolchain-mips32r2-poky-linux.cmake index 9cd1363ad..d91c1da05 100644 --- a/sample_defs/toolchain-mips32r2-poky-linux.cmake +++ b/sample_defs/toolchain-mips32r2-poky-linux.cmake @@ -3,7 +3,7 @@ # Basic cross system configuration SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_VERSION 5.0.12) +SET(CMAKE_SYSTEM_VERSION 5.0) SET(CMAKE_SYSTEM_PROCESSOR mips) SET(POKY_SYSROOT_ID mips32r2-poky-linux) diff --git a/sample_defs/toolchain-riscv64-poky-linux.cmake b/sample_defs/toolchain-riscv64-poky-linux.cmake index 306a4a122..7d8333fae 100644 --- a/sample_defs/toolchain-riscv64-poky-linux.cmake +++ b/sample_defs/toolchain-riscv64-poky-linux.cmake @@ -3,7 +3,7 @@ # Basic cross system configuration SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_VERSION 5.0.12) +SET(CMAKE_SYSTEM_VERSION 5.0) SET(CMAKE_SYSTEM_PROCESSOR riscv64) SET(POKY_SYSROOT_ID riscv64-poky-linux) From 7e4177b0833eca7e7ccb065023d500d0025e9f43 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Thu, 7 May 2026 15:08:35 -0400 Subject: [PATCH 8/8] Fix #998, update all submodule versions --- apps/cf | 2 +- apps/ci_lab | 2 +- apps/cs | 2 +- apps/ds | 2 +- apps/fm | 2 +- apps/hk | 2 +- apps/md | 2 +- apps/sample_app | 2 +- apps/sbn | 2 +- apps/sc | 2 +- apps/sch_lab | 2 +- apps/to_lab | 2 +- cfe | 2 +- libs/sample_lib | 2 +- osal | 2 +- psp | 2 +- tools/cFS-GroundSystem | 2 +- tools/eds | 2 +- tools/elf2cfetbl | 2 +- tools/tblCRCTool | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/apps/cf b/apps/cf index 6650b9145..c96a832b8 160000 --- a/apps/cf +++ b/apps/cf @@ -1 +1 @@ -Subproject commit 6650b9145b64a280eb15b782a6310aeb054d3c67 +Subproject commit c96a832b83b3ac0cb7ae41ec2f1076644214083b diff --git a/apps/ci_lab b/apps/ci_lab index 08afc7cbd..9d600262f 160000 --- a/apps/ci_lab +++ b/apps/ci_lab @@ -1 +1 @@ -Subproject commit 08afc7cbdebcc168bfff497ad2b429f35900ec70 +Subproject commit 9d600262fc7b115a41b47314059435d2bfb304d5 diff --git a/apps/cs b/apps/cs index 4954d2fe3..d020676ca 160000 --- a/apps/cs +++ b/apps/cs @@ -1 +1 @@ -Subproject commit 4954d2fe32ca40ba4e5c06217d7dd21330fbf0dc +Subproject commit d020676ca44fb960ccfa2cf58d2bf7bb4667d1be diff --git a/apps/ds b/apps/ds index 815620131..a680798a9 160000 --- a/apps/ds +++ b/apps/ds @@ -1 +1 @@ -Subproject commit 8156201315c7d5fd0f1bc94fadf8763f5a272808 +Subproject commit a680798a95ad0ec41ed7e9581c5d7af8f7fa5789 diff --git a/apps/fm b/apps/fm index 6fa379747..3c354a176 160000 --- a/apps/fm +++ b/apps/fm @@ -1 +1 @@ -Subproject commit 6fa379747f1d49c458691edf7b38f7c6b1db3595 +Subproject commit 3c354a176f2c2af902ba3e4c370380b38cf43b5f diff --git a/apps/hk b/apps/hk index ef054c238..61fe69f99 160000 --- a/apps/hk +++ b/apps/hk @@ -1 +1 @@ -Subproject commit ef054c238c0eb16a9b3d51e6dd92a0b6f2b4d69a +Subproject commit 61fe69f9916736d8ec17cf8e8df00cac09fed5df diff --git a/apps/md b/apps/md index 82d6f9054..94c8eaf0c 160000 --- a/apps/md +++ b/apps/md @@ -1 +1 @@ -Subproject commit 82d6f9054e9961a1becf845f73b681cc1c79cae3 +Subproject commit 94c8eaf0c309b39144b480b5c7727f771d02e0a9 diff --git a/apps/sample_app b/apps/sample_app index 74b111abf..3357fda70 160000 --- a/apps/sample_app +++ b/apps/sample_app @@ -1 +1 @@ -Subproject commit 74b111abf248604e1c47daeb31c51f5d38bb7771 +Subproject commit 3357fda70cda0d5221338b514ccfaaeec1bb0fb8 diff --git a/apps/sbn b/apps/sbn index 05f3a42f4..ed44bb361 160000 --- a/apps/sbn +++ b/apps/sbn @@ -1 +1 @@ -Subproject commit 05f3a42f45c7462bb0a278eedec16e6714e2b39a +Subproject commit ed44bb361ba2a1f30d4c191545f6b273f823b065 diff --git a/apps/sc b/apps/sc index c84ed105a..6e08f5cbc 160000 --- a/apps/sc +++ b/apps/sc @@ -1 +1 @@ -Subproject commit c84ed105aeeaacc805e628c262c68541c0e0d6fc +Subproject commit 6e08f5cbcce615bcdb92aee688ffcd94eb97ce83 diff --git a/apps/sch_lab b/apps/sch_lab index d4064a997..f5b427c43 160000 --- a/apps/sch_lab +++ b/apps/sch_lab @@ -1 +1 @@ -Subproject commit d4064a997336b52070d55e812ff3684142abedd6 +Subproject commit f5b427c4346185ba5f38547f091c63cd70ea21e8 diff --git a/apps/to_lab b/apps/to_lab index af02ac41f..7fb60d964 160000 --- a/apps/to_lab +++ b/apps/to_lab @@ -1 +1 @@ -Subproject commit af02ac41f7936a5e2d32b65e6d94f5c10c76c434 +Subproject commit 7fb60d96499b399b73e72237143da23f846ec4fd diff --git a/cfe b/cfe index 5f90ad285..16124e8b9 160000 --- a/cfe +++ b/cfe @@ -1 +1 @@ -Subproject commit 5f90ad285509e554c1c724af2318a2fbbcb18c0d +Subproject commit 16124e8b9fe947f9e79e13a7c859a3f344547aef diff --git a/libs/sample_lib b/libs/sample_lib index 0cb693784..f96d8daac 160000 --- a/libs/sample_lib +++ b/libs/sample_lib @@ -1 +1 @@ -Subproject commit 0cb6937846d415993ee9b1f6cb41be73e5f334e8 +Subproject commit f96d8daaccaccc5c576a2b491a085cce0e6f6ed3 diff --git a/osal b/osal index 4591b05a1..f039bbce8 160000 --- a/osal +++ b/osal @@ -1 +1 @@ -Subproject commit 4591b05a19ec9921ec62f0a86266d4f5199743c6 +Subproject commit f039bbce84364407089731adb66734c4736be50c diff --git a/psp b/psp index bff982bf3..24a1dbe91 160000 --- a/psp +++ b/psp @@ -1 +1 @@ -Subproject commit bff982bf39300b537155761cbed39dbfb7f55006 +Subproject commit 24a1dbe910375ac34d658aed9460c11cddf4f289 diff --git a/tools/cFS-GroundSystem b/tools/cFS-GroundSystem index b3985c40f..09b14bf50 160000 --- a/tools/cFS-GroundSystem +++ b/tools/cFS-GroundSystem @@ -1 +1 @@ -Subproject commit b3985c40fea21f258d305dc0784488dc848e46e6 +Subproject commit 09b14bf506327684a9dc1536c02045573157e2aa diff --git a/tools/eds b/tools/eds index d1c4b398a..dea3eea03 160000 --- a/tools/eds +++ b/tools/eds @@ -1 +1 @@ -Subproject commit d1c4b398a9646b838b3d563b1525302f4af9b9f6 +Subproject commit dea3eea03ee522f1d0f9ac44ab6040366c4d06c4 diff --git a/tools/elf2cfetbl b/tools/elf2cfetbl index 3e5fc110a..c584493e2 160000 --- a/tools/elf2cfetbl +++ b/tools/elf2cfetbl @@ -1 +1 @@ -Subproject commit 3e5fc110a680f6b42d969f844bebaf3e4a76709c +Subproject commit c584493e2d103b6b31b2ed9897a2a45fc5c582b3 diff --git a/tools/tblCRCTool b/tools/tblCRCTool index 8b284139b..7efed8397 160000 --- a/tools/tblCRCTool +++ b/tools/tblCRCTool @@ -1 +1 @@ -Subproject commit 8b284139b95908c626d2d4a1d9c759a16311514a +Subproject commit 7efed83973a7fd27b3e768ebbe20bd668133a901