Adding updates to checkout submodules
This commit is contained in:
parent
ed9535693c
commit
d7ec481e9e
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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) $@
|
Loading…
Reference in New Issue