Skip to content

Commit

Permalink
Merge pull request #276 from VisorFolks/development
Browse files Browse the repository at this point in the history
Release: Cyancore v1.4.0 [Boron]
  • Loading branch information
akashkollipara authored Jan 30, 2024
2 parents 2a25833 + ae76d0e commit e47c877
Show file tree
Hide file tree
Showing 28 changed files with 776 additions and 955 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/github_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,24 @@ jobs:
strategy:
fail-fast: true
matrix:
language: ["c", "cpp"]
language: ["cpp"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Configure Git
env:
TOKEN: ${{ secrets.AKASH_VF }}
run: git config --global url."https://${TOKEN}:[email protected]/".insteadOf "https://github.com/"

- name: Fetch Dependencies
env:
AVRTC: https://github.com/VisorFolks/avr-toolchain.git
RISCVTC: https://github.com/VisorFolks/risc-v-toolchain.git
run: |
sudo apt install cppcheck -y
make get_avr_tc AVR_TC_REPO=${AVRTC}
make get_riscv_tc RISC_V_TC_REPO=${RISCVTC}
make get_avr_tc
make get_riscv_tc
- name: Init CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
debug: true
Expand All @@ -53,7 +50,7 @@ jobs:
make demo_helios_riscv
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

- name: Clean Up
run: |
Expand Down
77 changes: 0 additions & 77 deletions .github/workflows/sonarcloud.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/sonarcloud.yml.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: SonarCloud Scan

on:
push:
branches:
- stable
- development
- helios_stage
pull_request:
branches:
- stable
- development
- helios_stage

jobs:
build:
runs-on: ubuntu-latest
env:
SONAR_SCANNER_VERSION: 4.4.0.2170
SONAR_SERVER_URL: "https://sonarcloud.io"
BUILD_WRAPPER_OUT_DIR: bw-output # Directory where build-wrapper output will be placed
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Install Dependencies
run: sudo apt install cppcheck -y

- name: Configure Git
env:
TOKEN: ${{ secrets.AKASH_VF }}
run: git config --global url."https://${TOKEN}:[email protected]/".insteadOf "https://github.com/"

- name: Get Toolchains
run: |
sudo apt-get install bear
make get_avr_tc AVR_TC_REPO=https://github.com/VisorFolks/avr-toolchain.git
make get_riscv_tc RISC_V_TC_REPO=https://github.com/VisorFolks/risc-v-toolchain.git
- name: Build
run: |
bear make demo_riscv
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=cyancore
-Dsonar.projectKey=VisorFolks_cyancore
-Dsonar.sources=src
-Dsonar.verbose=true
-Dsonar.cfamily.threads=4
-Dsonar.cfamily.compile-commands=compile_commands.json
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
</div>
</body>

> **Version (arch:2 | major:4 | minor:2): 1.3.2**
> **Version (arch:2 | major:4 | minor:2): 1.4.0**
>
[![GitHub CI](https://github.com/VisorFolks/cyancore/actions/workflows/github_ci.yml/badge.svg)](https://github.com/VisorFolks/cyancore/actions/workflows/github_ci.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=VisorFolks_cyancore&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=VisorFolks_cyancore)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=VisorFolks_cyancore&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=VisorFolks_cyancore)

Cyancore is an open source unified software platform for embedded system projects. VisorFolks is motivated to develope a framework which enables a developer/user to write a portable project which can run on any of the target. It is designed to be a goto framework for almost all projects, be it an Embedded applications, IoT, firmware, OS, etc. It provides flexibility, tighter integration of features and abilities by utilizing the hardware and software resources better and boost various KPIs of the final product.

Expand Down
4 changes: 2 additions & 2 deletions src/arch/avr/8/common_5x_6/terravisor/arch.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* CYANCORE LICENSE
* Copyrights (C) 2019, Cyancore Team
* Copyrights (C) 2024, Cyancore Team
*
* File Name : arch.c
* Description : This file consists of architecture specific function that
Expand Down Expand Up @@ -149,5 +149,5 @@ void arch_signal_resume(void)
void arch_rseed_capture()
{
extern uintptr_t *_bss_start;
srand(*_bss_start);
srand((size_t)_bss_start);
}
4 changes: 2 additions & 2 deletions src/arch/riscv/32/i/terravisor/arch.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* CYANCORE LICENSE
* Copyrights (C) 2019, Cyancore Team
* Copyrights (C) 2024, Cyancore Team
*
* File Name : arch.c
* Description : This file consists of architecture specific function that
Expand Down Expand Up @@ -170,5 +170,5 @@ _WEAK void arch_unhandled_irq()
void arch_rseed_capture()
{
extern uintptr_t *_bss_start;
srand(*_bss_start);
srand((size_t)_bss_start);
}
5 changes: 2 additions & 3 deletions src/engine/banner.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
# Organisation : Cyancore Core-Team
#

.PHONY: version
NAME = Beryllium
VERSION = 0x01000302
NAME = Boron
VERSION = 0x01000400

$(eval $(call add_define,VERSION))

Expand Down
4 changes: 2 additions & 2 deletions src/lib/libc/include/stdio.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* CYANCORE LICENSE
* Copyrights (C) 2019, Cyancore Team
* Copyrights (C) 2024, Cyancore Team
*
* File Name : stdio.h
* Description : This file contains sources of libc-stdio
Expand Down Expand Up @@ -44,4 +44,4 @@ int vprintf(const FILE *, bool, const char *fmt, va_list args);
#endif

#define printf(fmt, ...) if(!NOLOGS) __printf(fmt, ##__VA_ARGS__)
#define eprintf(fmt, ...) if(!NOLOGS) __eprintf(fmt, ##__VA_ARGS__))
#define eprintf(fmt, ...) if(!NOLOGS) __eprintf(fmt, ##__VA_ARGS__)
3 changes: 3 additions & 0 deletions src/lib/libc/include/stdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ void *calloc(size_t, size_t);
void *realloc(void *, size_t);
void __heap_status(bool);
size_t heap_usage(void);
double atof(char *);
int atoi(char *);
long atol(char *);

static inline void heap_status(void)
{
Expand Down
Loading

0 comments on commit e47c877

Please sign in to comment.