Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: introduce codeQL issue #247

Open
wants to merge 147 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
96c2707
Documentation: add NuttX-12.4.0 release notes
jerpelea Jan 9, 2024
2a73509
boards/riscv/mpfs/icicle/configs/standalone: Add a standalone target
jlaitine Nov 22, 2021
003e785
Fix the check workflow for tiiuae repo
jlaitine Nov 24, 2021
cd75eb6
arch/risc-v/src/opensbi/Make.defs: Switch opensbi to the nuttx/size o…
jlaitine Jul 21, 2022
4535142
[REVERTME] arch/risc-v/src/mpfs/mpfs_ethernet.c: Hack the ethernet dr…
jlaitine Aug 17, 2022
e67bbe1
[HACK] Set SD-card speed to 50MHz
jlaitine Sep 14, 2022
1870a5c
opensbi: Take SBI version that removes console into use
pussuw Sep 20, 2022
da031e5
Fix standalone defconfig for CI
jlaitine Sep 28, 2022
9c49561
arch/risc-v/src/mpfs/mpfs_clockconfig.c: Flag out code only used in b…
jlaitine Sep 28, 2022
3943af6
arch/risc-v/src/mpfs: Add mpfs canfd socket can driver
haitomatic May 26, 2022
38a3015
boards/risc-v/mpfs/icicle: add new target for testing mpfs canfd driver
haitomatic Jun 15, 2022
34b6935
mpfs/emmcsd: Set same base clock for SDR/DDR modes
pussuw Nov 30, 2022
b913e85
mpfs/emmcsd: [HACK] Set 8-bit data width and DDR HS mode for eMMC
pussuw Nov 30, 2022
f6694fb
mpfs/emmcsd: Fix build issue with 8-bit HS mode
pussuw Nov 30, 2022
4f2ee91
Fix build.yml
jpaali Dec 12, 2022
542c1fe
drivers/net/rpmsgdrv.c: Support only TRANSFER commands
jpaali Dec 13, 2022
bd903b8
arch/risc-v/src/mpfs/mpfs_fpga_canfd.c: Fix CONFIG_DEBUG_CAN_INFO ifd…
jlaitine Jan 19, 2023
1ddb55e
boards/risc-v/mpfs/icicle/configs/canfd/defconfig: Normalize
jlaitine Jan 19, 2023
d0ef7ae
remove devif_loopback in canfd driver since it is now devif_poll func…
haitomatic Jan 19, 2023
aaca090
Remove MPFS_IHC_LINUX_ON_HART4 from default configurations
jpaali Jan 27, 2023
979fdab
arch/arm/src/stm32f7/stm32_ethernet.c: Fix "unused variable" warning
jlaitine Feb 3, 2023
fb79ce4
arch/risc-v/src/mpfs/mpfs_userspace.c: Map MTIME into userspace reser…
jlaitine Feb 9, 2023
966dd71
boards/risc-v/mpfs/icicle: Add USRIO area for userspace IO mappings
jlaitine Feb 10, 2023
7306183
Add mpfs crypto driver into nuttx build
jlaitine Feb 13, 2023
a28d303
mpfs/Kconfig: fix typo on config file
pussuw Feb 14, 2023
dda0d9e
mpfs/mpfs_mm_init: Add the MTIME user mapping for kernel mode as well
pussuw Feb 14, 2023
4d7eb98
arch/risc-v/src/mpfs/Kconfig: Don't source crypto/Kconfig
jlaitine Feb 23, 2023
53374fd
arch/risc-v/src/mpfs: symlink pf_crypto submodule
jnippula Mar 6, 2023
d0125e4
arch/risc-v/src/mpfs/crypto.defs: Update to include mpfs_systemservice.c
jlaitine Mar 16, 2023
3542415
emmc interrupt blackout issue fix
jnippula Apr 14, 2023
70d1883
mpfs/mpfs_userspace: Increase user space size to 8MB
pussuw Apr 18, 2023
c772b19
canfd: fix hw filter
haitomatic Apr 27, 2023
d5b1e83
risc-v/mpfs: serial: add fpga uarts
eenurkka May 9, 2023
18b27f1
Add CONFIG_MPFS_SPI flag to define using SOC hard-ip SPI block
jlaitine May 12, 2023
cebd840
arch/risc-v/src/mpfs: Remove CONFIG_MPFS_COREPWMx_PWMCLK configs
jlaitine May 12, 2023
791c121
risc-v/mpfs: serial: fix uart closing
eenurkka May 12, 2023
1b397a0
Change MPFS_FPGA_UARTx_BASE addresses to 4k aligned as per new FPGA i…
jlaitine May 15, 2023
ee839e4
Add support for 2xCAN
haitomatic May 10, 2023
93056e6
canfd : add missing configs for 2xCAN support
haitomatic May 16, 2023
2ba7065
canfd : use board peripheral clock
haitomatic May 16, 2023
d954bd6
canfd : normalize defconfig
haitomatic May 17, 2023
361a44d
arch/risc-v/src/mpfs/mpfs_timerisr.c: Partially revert common mtime d…
jlaitine May 19, 2023
0397e5b
arch/risc-v/src/mpfs: Make mpfs_hart_index2id table modifiable by boo…
jlaitine May 24, 2023
461ab29
mpfs_timerisr: Add patch to make the code work in CONFIG_BUILD_KERNEL
pussuw May 24, 2023
9ba0690
arch/risc-v/src/mpfs/mpfs_opensbi.c: Fix conflicting datatypes define…
jlaitine May 25, 2023
ac2c321
net/can, net/devif: fix CAN RX/TX iob free semcount runaway issue
haitomatic May 22, 2023
ef38f6d
mpfs_opensbi_utils.S: relocate OpenSBI into l2zerodevice
eenurkka Jun 22, 2023
c87ad9f
opensbi: update to contain shrinked version
jnippula Jun 28, 2023
400a507
Disable linker relaxed addressing when loading gp
jnippula Aug 9, 2023
0155cfc
arch/risc-v/src/mpfs: Set USB DMA upper addr offset
jpaali Aug 30, 2023
e983898
risc-v/mpfs: emmcsd: deny unaligned access
eenurkka Sep 26, 2023
7b9a5a3
[REVERTME] riscv_addrenc.c: Add more heap, if TLS_ALIGNED is set
pussuw Oct 4, 2023
e4ba133
arch/risc-v/src/mpfs/mpfs_ddr.c: Add read dq/dqs eye centering test
jlaitine Oct 10, 2023
76f0e45
arch/risc-v/src/mpfs/mpfs_ddr.c: Clean up the TXDLY verify step
jlaitine Oct 11, 2023
5ab5570
arch/risc-v/src/mpfs/mpfs_ddr.c: Fix CA training verify step
jlaitine Oct 11, 2023
5be96e3
arch/risc-v/src/mpfs: Add hardware/mpfs_wdog.h
jnippula Nov 3, 2023
9f7817a
risc-v/mpfs: usb: fix fierce cpu polling if remote closes
eenurkka Nov 28, 2023
32725d7
risc-v/mpfs: usb: don't try nonexistent ep int flags
eenurkka Nov 30, 2023
20caa0a
net: rpmsgdrv.c: prevent potential danger
eenurkka Dec 4, 2023
30b7ecc
fix MPFS_ETHMAC_LP/HPWORK flags
jnippula Dec 12, 2023
cf8d458
risc-v/mpfs: emmcsd: enforce HS DDR mode
eenurkka Apr 13, 2023
a01eaaf
risc-v/mpfs: ddr: lock segmentation registers
eenurkka Dec 18, 2023
9525f10
build.yml: Modify the build config
pussuw Dec 21, 2023
164ae43
build.yml: Add ssrc board matrix for arm and risc-v
pussuw Jan 3, 2024
dba5de5
[HACK] cstdlib: Forward malloc et. al. to kmm_malloc, if __KERNEL__
pussuw Jan 18, 2024
a418e48
mpfs_mpucfg.h: Add missing MPUCFG registers
pussuw Jan 26, 2024
6c51e05
risc-v/mpfs: add tamper detection support
eenurkka Nov 9, 2023
71ec880
[REVERTME - useless] libs/libc/machine/risc-v/arch_elf.c: Minor optim…
jlaitine Feb 8, 2024
5067846
mpfs_mpu: Add driver to set MPUCFG registers
pussuw Jan 5, 2024
21aae46
mpfs_usb.c: Remove PMPCFG configuration from the driver
pussuw Jan 11, 2024
7f50b53
wrapper to sdio device drivers
jnippula Jan 25, 2024
b896495
mpfs_corespi: Fix firing of stale interrupt after warm reset
pussuw Jan 18, 2024
e6fd583
arch/risc-v/src/mpfs/mpfs_serial.c: Allow switching uart output to co…
jlaitine Oct 31, 2023
21d7205
risc-v/mpfs: i2c: prevent out of bounds read access
eenurkka Nov 6, 2023
961ccc8
risc-v/mpfs: i2c: perform sanity checks
eenurkka Dec 5, 2023
6488a4b
arch/risc-v/src/mpfs/mpfs_i2c.c: Clear I2C_CTRL bits when initializin…
jlaitine Jan 10, 2024
98be591
arch/risc-v/src/mpfs/mpfs_i2c.c: Add more error status codes
jlaitine Jan 10, 2024
c5cd7fe
arch/risc-v/src/mpfs/mpfs_i2c.c: Correct i2c reset / error recovery
jlaitine Jan 11, 2024
4d05bcd
arch/risc-v/src/mpfs/mpfs_i2c.c: Add more i2cerr traces
jlaitine Jan 10, 2024
bad4a41
arch/risc-v/src/mpfs/mpfs_i2c.c: Recover i2c from pending transaction…
jlaitine Jan 12, 2024
a7bbe33
arch/risc-v/src/mpfs/mpfs_irq.c: Fix up_irqinitialize for warm reboot
jlaitine Jan 16, 2024
24f84fd
mpfs_mpucfg.c: Add mpfs_mpu_lock()
pussuw Jan 11, 2024
065af55
fs/shmfs: Fix CONFIG_FS_SHM -> CONFIG_FS_SHMFS
pussuw Jan 31, 2024
2a5799d
fs/shmfs: Fix stat() system call for shmfs object
pussuw Feb 1, 2024
aad6ae0
arch/addrenv: Add utility function to wipe one page
pussuw Feb 1, 2024
d27f710
arch/arm_addrenv_pgmap.c: Add minimal page map implementation for ARM
pussuw Feb 1, 2024
5368788
shmfs/shmfs_alloc. Fix POSIX violation for shmfs_truncate
pussuw Feb 1, 2024
8276b09
openamp: Fix void pointer arithmetic in openamp to remove compilation…
jlaitine Feb 12, 2024
db43707
canfd: accept ioctl assignment of sample point 0
haitomatic Feb 12, 2024
7833795
[BACKPORT] net:Add support for multi PHY
davids5 Jan 3, 2024
45bb791
[BACKPORT] imxrt:ENET Use multi PHY
davids5 Jan 3, 2024
52bca70
canfd driver: add missing hardware header depedency on mpfs_memorymap
haitomatic Feb 12, 2024
671839b
mpfs canfd driver: add missing memorymap header and reorganize
haitomatic Feb 12, 2024
ba97332
boards/risc-v/mpfs/icicle: Normalize standalone and canfd target defc…
jlaitine Feb 13, 2024
b86f022
Revert "opensbi: update to contain shrinked version"
jlaitine Feb 13, 2024
3a16205
Revert "opensbi: Take SBI version that removes console into use"
jlaitine Feb 13, 2024
996e320
Revert "arch/risc-v/src/opensbi/Make.defs: Switch opensbi to the nutt…
jlaitine Feb 13, 2024
2a9b792
Replace opensbi with tiiuae version
jlaitine Feb 13, 2024
a3b7b2d
arch/arm/src/imxrt/imxrt_start.c: Clear CONTROL register at start to …
jlaitine Feb 13, 2024
e926c68
Revert "net/can, net/devif: fix CAN RX/TX iob free semcount runaway i…
jlaitine Mar 8, 2024
91498d8
net/can: Release IOB when failed to queue in datahandler
wengzhe Dec 27, 2023
47b9140
net/can/can_callback.c: Take the timestamp size into account in "buflen"
haitomatic Mar 12, 2024
cae7c47
net/devif/devif_send.c: Don't update the pktlen to 0
haitomatic Mar 12, 2024
6f03907
net/can/can_recvmsg.c: Remove IOB trimming as useless, can frames can…
haitomatic Mar 12, 2024
ceaef74
arch/risc-v/src/mpfs/mpfs_fpga_canfd.c: Fix a race condition with dev…
jlaitine Mar 12, 2024
51162be
net/can/can_recvmsg.c: Cleanup can_readahead
jlaitine Mar 12, 2024
2797ee2
arch/risc-v/src/mpfs/mpfs_fpga_canfd.c: Improve interrupt and error h…
jlaitine Mar 14, 2024
34fa847
arch/risc-v/src/mpfs/mpfs_fpga_canfd.c: Enable error interrupts only …
jlaitine Mar 14, 2024
e4d95ee
sched/group/group_killchildren.c: Force-cancel children if parent is …
jlaitine Mar 19, 2024
ac70ce4
arch/risc-v/src/common/riscv_exception.c: Just _exit the user task ca…
jlaitine Mar 19, 2024
6c4e6d6
arch/risc-v/src/common/supervisor/riscv_perform_syscall.c: Record the…
jlaitine Mar 21, 2024
680592c
arm64_internal.h: Expose prototype for arm64_lowputc
pussuw Mar 12, 2024
0b061bd
arm64/imx9: Add support for imx9 series SoMs, imx93 implemented
pussuw Feb 13, 2024
913410d
arm64/imx9: Add board for imx93-evk
pussuw Feb 14, 2024
ca5230d
arm64/imx9: Add JLinkScript for imx93-evk
pussuw Mar 19, 2024
4c690c3
arch/arm64/src/common: Remove void * arithmetic
jlaitine Mar 21, 2024
8e43b84
arch/arm64: Add the head obj to libarch.a as well
pussuw Mar 22, 2024
c5b86b5
stm32f7/stm32_foc.c: Set .info_get to foc_lower_ops
pussuw Mar 21, 2024
5d9f63f
arm64_head.S: Add explicit input section for __start
pussuw Mar 22, 2024
c908e94
arm64/imx9: Add CCM (Clock Controller Module)
pussuw Feb 23, 2024
2ead78d
arm64/imx9: Add register definitions for LPIT
pussuw Mar 20, 2024
72e8c85
arm64/imx9: Add register definitions for LPTMR
pussuw Mar 21, 2024
a643391
imx9_clockconfig.c: Add way to query clock frequency
pussuw Mar 26, 2024
dc82342
arm64/imx9: Add GPIO, IOMUX and external interrupt support
pussuw Feb 22, 2024
fc9595a
arch/arm64/src/imx9: Flex-IO based PWM driver for imx9
jlaitine Mar 27, 2024
47c725f
arch/arm64/include/imx9/imx93_irq.h: Define IRQ_USBx interrupt numbers
jlaitine Apr 3, 2024
1e907ae
arch/arm64/src/imx9/hardware/imx93/imx93_memorymap.h: Clean up some b…
jlaitine Apr 3, 2024
cac5392
arch/arm64/src/imx9: Add imx9 usb device driver
jlaitine Apr 3, 2024
8288acc
arch/arm64/src/imx9: Add TPM based PWM driver for IMX9
jlaitine Mar 26, 2024
1bd5a0c
arch/arm64/src/imx9/imx9_flexio_pwm.c: Fix wrong input scale and puls…
jlaitine Apr 5, 2024
af9f6ef
Create codeql.yml
jlaitine Sep 27, 2023
b1fc6a1
imx93_gpioirq: Fix the GPIO interrupt source names
pussuw Apr 15, 2024
f349c37
boards/arm64/imx9/imx93-evk: Add PWM support utilizing flexio-pwm
jlaitine Apr 2, 2024
85de98e
boards/arm64/imx9/imx93-evk/configs/nsh/defconfig: Enable USB and CDCACM
jlaitine Apr 4, 2024
60c612f
boards/arm64/imx9/imx93-evk: Enable PWM from TPM3ch3 on imx93-evk pin…
jlaitine Apr 4, 2024
ed4511e
arch/arm64: Add atomic modifyregXX
pussuw Apr 2, 2024
f542f57
arm64/imx9: Add LPI2C driver
pussuw Mar 27, 2024
08d4f08
imx9_iomux.h: Fix issues with the header file
pussuw Apr 16, 2024
55eeb01
arch/arm64/src/imx9: Add a more capable uart driver
jlaitine Apr 16, 2024
fdacfdf
boards/arm64/imx9/imx93-evk/src/imx9_pwm.c: Fix initialization of TPM…
jlaitine Apr 16, 2024
ccb6740
fix nxstyle
simbit18 Apr 16, 2024
7ff92b0
imx9_boot.c: Add initialization of pin interrupts
pussuw Apr 17, 2024
9a83aec
imx9_gpioirq: Fix testing of ICR field from pinset
pussuw Apr 17, 2024
7af0477
arm64/imx9: Add LPSPI driver
pussuw Apr 2, 2024
a1dab04
arch/arm64/src/imx9/imx9_usbdev.c: Fix the descriptor alignments and …
jlaitine Apr 19, 2024
c5c188b
arch/arm64/src/imx9/imx9_lpuart.c: Change ARMV8M_DCACHE_LINESIZE -> A…
jlaitine Apr 20, 2024
9514ce4
DO NOT MERGE: introduce codeQL issue
TimoSairiala Apr 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 13 additions & 104 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,13 @@
name: Build

on:
pull_request:
paths-ignore:
- 'Documentation/**'
- 'tools/ci/docker/linux/**'
push:
paths-ignore:
- 'Documentation/**'
branches:
- master
- 'releases/*'
tags:
branches: [master]
pull_request:

permissions:
contents: read

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
Fetch-Source:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,13 +55,13 @@ jobs:
# Determine the repo and leave that unset to use the normal checkout behavior
# of using the merge commit instead of HEAD
case $GITHUB_REPOSITORY in
"apache/nuttx")
"tiiuae/nuttx")
# OS
echo "Triggered by change in OS"
APPS_REF=$REF_NAME
;;

"apache/nuttx-apps" )
"tiiuae/incubator-nuttx-apps" )
# APPS
OS_REF=$REF_NAME
echo "Triggered by change in APPS"
Expand All @@ -89,19 +77,19 @@ jobs:
echo "app_ref=$APPS_REF" >> $GITHUB_OUTPUT

- name: Checkout nuttx repo
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
repository: apache/nuttx
repository: tiiuae/nuttx
ref: ${{ steps.gittargets.outputs.os_ref }}
path: sources/nuttx
fetch-depth: 1
- name: Checkout nuttx repo tags
run: git -C sources/nuttx fetch --tags

- name: Checkout apps repo
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
repository: apache/nuttx-apps
repository: tiiuae/incubator-nuttx-apps
ref: ${{ steps.gittargets.outputs.apps_ref }}
path: sources/apps
fetch-depth: 1
Expand All @@ -115,71 +103,13 @@ jobs:
name: source-bundle
path: sources.tar.gz

Linux:
needs: Fetch-Source
Build:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1

strategy:
matrix:
boards: [arm-01, arm-02, arm-03, arm-04, arm-05, arm-06, arm-07, arm-08, arm-09, arm-10, arm-11, arm-12, arm-13, other, risc-v, sim-01, sim-02, xtensa, codechecker]

steps:
- name: Download Source Artifact
uses: actions/download-artifact@v3
with:
name: source-bundle
path: .

- name: Extract sources
run: tar zxf sources.tar.gz

- name: Docker Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Pull
run: docker pull ghcr.io/apache/nuttx/apache-nuttx-ci-linux

- name: Export NuttX Repo SHA
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV

- name: Run builds
uses: ./sources/nuttx/.github/actions/ci-container
env:
BLOBDIR: /tools/blobs
with:
run: |
echo "::add-matcher::sources/nuttx/.github/gcc.json"
export ARTIFACTDIR=`pwd`/buildartifacts
git config --global --add safe.directory /github/workspace/sources/nuttx
git config --global --add safe.directory /github/workspace/sources/apps
cd sources/nuttx/tools/ci
if [ "X${{matrix.boards}}" = "Xcodechecker" ]; then
./cibuild.sh -c -A -R --codechecker testlist/${{matrix.boards}}.dat
else
./cibuild.sh -c -A -R testlist/${{matrix.boards}}.dat
fi

- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: linux-builds
path: buildartifacts/
continue-on-error: true

macOS:
permissions:
contents: none
runs-on: macos-13
needs: Fetch-Source
strategy:
fail-fast: false
matrix:
boards: [macos, sim-01, sim-02]
boards: [ssrc-arm, ssrc-riscv]
steps:
- name: Download Source Artifact
uses: actions/download-artifact@v3
Expand All @@ -190,32 +120,11 @@ jobs:
- name: Extract sources
run: tar zxf sources.tar.gz

- name: Restore Tools Cache
id: cache-tools
uses: actions/cache@v3
env:
cache-name: ${{ runner.os }}-cache-tools
with:
path: ./sources/tools
key: ${{ runner.os }}-tools-${{ hashFiles('./sources/nuttx/tools/ci/cibuild.sh') }}

- name: Export NuttX Repo SHA
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV

# Released version of Cython has issues with Python 11. Set runner to use Python 3.10
# https://github.com/cython/cython/issues/4500
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run Builds
# cibuild.sh -i installs the tools for us
- name: Run builds
run: |
echo "::add-matcher::sources/nuttx/.github/gcc.json"
export ARTIFACTDIR=`pwd`/buildartifacts
cd sources/nuttx/tools/ci
./cibuild.sh -i -c -A -R testlist/${{matrix.boards}}.dat

- uses: actions/upload-artifact@v3
with:
name: macos-builds
path: buildartifacts/
continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Checkout nuttx repo
uses: actions/checkout@v4
with:
repository: apache/nuttx
repository: tiiuae/nuttx
path: nuttx
fetch-depth: 0

Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
analyze:
name: Analyze (${{ matrix.language }}/${{ matrix.config}})
runs-on: 'ubuntu-latest'
timeout-minutes: 60
permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: c-cpp
build-mode: manual
config: icicle:nsh
- language: c-cpp
build-mode: manual
config: imx93-evk:nsh
- language: python
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout apps
uses: actions/checkout@v4
with:
repository: 'tiiuae/incubator-nuttx-apps.git'
path: 'apps'
ref: 'master'
- name: Install tools
run: |
mv apps ../apps
sudo apt-get install kconfig-frontends
mkdir -p ../bin
cd ../bin
wget https://static.dev.sifive.com/dev-tools/freedom-tools/v2020.12/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz
tar xvf riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz
tar xvf arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- if: matrix.build-mode == 'manual'
run: |
export PATH=$PATH:$PWD/../bin/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin/
export PATH=$PATH:$PWD/../bin/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-elf/bin
./tools/configure.sh ${{matrix.config}}
make

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
Loading
Loading