-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New templates and updates to scripts
- Loading branch information
Showing
24 changed files
with
538 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#**************************************************************************** | ||
#* IVPM Googletest-HDL Project | ||
#**************************************************************************** | ||
|
||
[template] | ||
desc = IVPM project with dependences for Googletest-HDL configured | ||
|
||
[parameter:version] | ||
desc=Starting version for this project | ||
default=0.0.1 | ||
|
||
[parameter:rootvar] | ||
desc=Specify a root variable for this project | ||
default= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#**************************************************************************** | ||
#* {{name}}_env.sh | ||
#* | ||
#* Environment setup script for {{name}} | ||
#**************************************************************************** | ||
{% set filename = "etc/{{name}}_env.sh" %} | ||
|
||
etc_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd)" | ||
rootdir=`cd $etc_dir/.. ; pwd` | ||
|
||
{% if rootvar != "" %} | ||
{{rootvar}}=${rootdir} | ||
export {{rootvar}} | ||
{% endif %} | ||
|
||
# Add a path to the simscripts directory | ||
export PATH=$rootdir/packages/simscripts/bin:$PATH | ||
|
||
# Force the PACKAGES_DIR | ||
export PACKAGES_DIR=$rootdir/packages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#**************************************************************************** | ||
#* ivpm.info for {{name}} | ||
#**************************************************************************** | ||
|
||
name={{name}} | ||
version={{version}} | ||
{% if rootvar != "" %} | ||
rootvar={{rootvar}} | ||
{% endif %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#**************************************************************************** | ||
#* packages.mf for {{name}} | ||
#**************************************************************************** | ||
|
||
simscripts@http://github.com/mballance/simscripts.git | ||
|
||
googletest-hdl@http://github.com/mballance/googletest-hdl.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#**************************************************************************** | ||
#* ivpm.mk | ||
#* | ||
#* Makefile template for a Chisel project | ||
#**************************************************************************** | ||
SCRIPTS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) | ||
ROOT_DIR := $(abspath $(SCRIPTS_DIR)/..) | ||
PACKAGES_DIR ?= $(ROOT_DIR)/packages | ||
|
||
ifneq (true,$(VERBOSE)) | ||
Q=@ | ||
endif | ||
|
||
# Must support dual modes: | ||
# - build dependencies if this project is the active one | ||
# - rely on the upper-level makefile to resolve dependencies if we're not | ||
-include $(PACKAGES_DIR)/packages.mk | ||
include $(ROOT_DIR)/etc/ivpm.info | ||
PROJECT := $(name) | ||
|
||
# Include makefiles with dependencies | ||
MK_INCLUDES += $(wildcard $(ROOT_DIR)/mkfiles/*.mk) | ||
|
||
include $(MK_INCLUDES) | ||
|
||
RULES := 1 | ||
|
||
ifeq (true,$(PHASE2)) | ||
build : | ||
else | ||
build : $($(PROJECT)_deps) | ||
$(Q)$(MAKE) -f $(SCRIPTS_DIR)/ivpm.mk PHASE2=true VERBOSE=$(VERBOSE) build | ||
endif | ||
|
||
release : build | ||
$(Q)rm -rf $(ROOT_DIR)/build | ||
$(Q)mkdir -p $(ROOT_DIR)/build/$(PROJECT) | ||
$(Q)cp -r \ | ||
$(ROOT_DIR)/lib \ | ||
$(ROOT_DIR)/etc \ | ||
$(ROOT_DIR)/build/$(PROJECT) | ||
$(Q)cd $(ROOT_DIR)/build ; \ | ||
tar czf $(PROJECT)-$(version).tar.gz $(PROJECT) | ||
$(Q)rm -rf $(ROOT_DIR)/build/$(PROJECT) | ||
|
||
include $(MK_INCLUDES) | ||
|
||
-include $(PACKAGES_DIR)/packages.mk | ||
|
Oops, something went wrong.