Skip to content

Commit

Permalink
Merge pull request #146 from xmos/release/v0.1.0
Browse files Browse the repository at this point in the history
Release/v0.1.0
  • Loading branch information
shuchitak authored Jan 26, 2022
2 parents bb09593 + d073edf commit 1d80ec7
Show file tree
Hide file tree
Showing 220 changed files with 17,402 additions and 128 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ on:
push:
branches:
- 'main'
- 'develop'
- 'release/**'
pull_request:
branches:
- 'main'
- 'develop'
- 'release/**'

# Allow manually triggering of the workflow.
workflow_dispatch: {}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ on:
push:
branches:
- 'main'
- 'develop'
- 'release/**'
pull_request:
branches:
- 'main'
- 'develop'
- 'release/**'

# Allow manually triggering of the workflow.
workflow_dispatch: {}
Expand All @@ -36,7 +40,7 @@ jobs:
- name: Build documentation
run: |
docker run --rm -t -v ${{ github.workspace }}:/build -u "$(id -u):$(id -g)" -e REPO:/build -e PDF=1 ghcr.io/xmos/doc_builder:main
docker run --rm -t -u "$(id -u):$(id -g)" -v ${{ github.workspace }}:/build -e REPO:/build -e DOXYGEN_INCLUDE=/build/doc/Doxyfile.inc -e EXCLUDE_PATTERNS=/build/doc/exclude_patterns.inc -e DOXYGEN_INPUT=ignore -e PDF=1 ghcr.io/xmos/doc_builder:main
- name: Save documentation artifacts
uses: actions/upload-artifact@v2
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ filesystem_support/spanning-xn*
filesystem_support/target-xn*

# Python cruft
**/.python-version
**/*.pyc
**/__pycache__/*

# test cruft
**/test_*.log

# macOS cruft
.DS_Store
.DS_Store

**/*.swp
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "examples/bare-metal/shared_src/xscope_fileio"]
path = examples/bare-metal/shared_src/xscope_fileio
url = [email protected]:xmos/xscope_fileio
6 changes: 3 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Avona Reference Design Change Log
=================================

In progress
-----------

0.1.0
-----

* Initial version with support for AEC and AGC libraries.
77 changes: 77 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
cmake_minimum_required(VERSION 3.11)

## Disable in-source build.
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(FATAL_ERROR "In-source build is not allowed! Please specify a build folder.\n\tex:cmake -B build")
endif()

project(sw_avona)

## With this hack, x86 builds are work on Linux and Darwin.
if( NOT XCORE )
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_VERSION 0.0.1)
endif()

## Set up the build options
include(etc/build_options.cmake)

find_package( Python3 COMPONENTS Interpreter )

## Compile flags for C/C++ for all libs and apps (for all platforms)
list(APPEND COMPILE_FLAGS -Os -g -MMD )
list(APPEND COMPILE_FLAGS -Wno-format -Wall )

## Platform-specific C/C++ compile flags
list( APPEND COMPILE_FLAGS_XCORE -march=xs3a )
list( APPEND COMPILE_FLAGS_Linux -DX86_BUILD=1 )

list(APPEND COMPILE_FLAGS ${COMPILE_FLAGS_${CMAKE_SYSTEM_NAME}} )

## CMake configuration stuff

message( STATUS "System name here ${CMAKE_SYSTEM_NAME}" )
if( XCORE )
enable_language( C CXX XC ASM )
else()
enable_language( C CXX ASM )
endif()

set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )

add_compile_options( ${COMPILE_FLAGS} )

## Get build dependencies
#file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/deps)
#include(${CMAKE_SOURCE_DIR}/etc/fetch_deps.cmake)

# The path to the xcore_sdk must be set either as the CMake variable XCORE_SDK_PATH or as an
# environment variable XCORE_SDK_PATH
if(NOT DEFINED XCORE_SDK_PATH)
if(NOT DEFINED ENV{XCORE_SDK_PATH})
message(FATAL_ERROR "XCORE_SDK_PATH environment variable must be set")
endif()

set(XCORE_SDK_PATH $ENV{XCORE_SDK_PATH})
endif()

get_filename_component(XCORE_SDK_PATH ${XCORE_SDK_PATH} ABSOLUTE BASE_DIR ${CMAKE_CURRENT_BINARY_DIR})

if(NOT EXISTS ${XCORE_SDK_PATH})
message(FATAL_ERROR "xcore_sdk not present at ${XCORE_SDK_PATH}")
endif()

message(STATUS "xcore_sdk in ${XCORE_SDK_PATH}")

## Add libs and apps
add_subdirectory( modules )

if ( ${BUILD_EXAMPLES} )
add_subdirectory( examples )
endif()

if ( ${BUILD_TESTS} )
add_subdirectory( test )
endif()
Loading

0 comments on commit 1d80ec7

Please sign in to comment.