Adding updates to checkout submodules

This commit is contained in:
Lalit Sharma 2020-12-08 08:52:35 -08:00
parent ed9535693c
commit d7ec481e9e
3 changed files with 30 additions and 7 deletions

View File

@ -121,7 +121,7 @@ jobs:
# Define the steps to run the build job
steps:
- name: Checkout OpenFPGA repo
uses: actions/checkout@v2
uses: actions/checkout@v2 with: submodules: true
- name: Install dependency
run: source ./.github/workflows/install_dependency.sh

View File

@ -196,13 +196,8 @@ include(CMakeParseArguments)
##project(yosys)
# Version number
set(YOSYS_VERSION_MAJOR 0.7)
set(YOSYS_VERSION_MINOR 0)
set(YOSYS_VERSION_PATCH 0)
# Options to enable/disable dependencies
option(YOSYS_ENABLE_TCL, "Enable TCL parser integrated in yosys" ON)
option(YOSYS_ENABLE_TCL, "Enable TCL parser integrated in yosys" OFF)
option(YOSYS_ENABLE_ABC, "Enable ABC library integrated in yosys" ON)
option(YOSYS_ENABLE_PLUGINS, "Enable plug-in in yosys" ON)
option(YOSYS_ENABLE_READLINE, "Enable readline library in yosys" ON)

28
Makefile Normal file
View File

@ -0,0 +1,28 @@
# Makefile
ifeq ($(origin CMAKE_COMMAND),undefined)
CMAKE_COMMAND := cmake
else
CMAKE_COMMAND := ${CMAKE_COMMAND}
endif
.PHONY: all env
all: env
cd build && $(MAKE)
clean:
rm -rf build
env:
git submodule init
git submodule update --init --recursive
mkdir -p build && cd build && $(CMAKE_COMMAND) ${CMAKE_FLAGS} ..
build/Makefile:
make env
.PHONY: Makefile
%: build/Makefile
cd build && $(MAKE) $@