Skip to content

Commit

Permalink
spec: move manual into spec dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Zhang authored and jwise committed Nov 1, 2017
1 parent ae2196a commit a1d9b3a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
26 changes: 12 additions & 14 deletions manual/Makefile → spec/manual/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
DEPTH := ..
DEPTH := ../..
include $(DEPTH)/tools/make/common.make

# the output dir
REL_PATH_FROM_TOT := $(shell $(DEPTH)/tools/bin/depth -from_tot)
TOT := $(shell $(DEPTH)/tools/bin/depth -abs_tot)
OUT_DIR = $(TOT)/$(OUTDIR)/$(PROJECT)/$(REL_PATH_FROM_TOT)

#====================================
Expand All @@ -13,19 +11,19 @@ REG_PARMS = test.parms
REG_RDL = test.rdl

# several backends
REG_V = regs_v.v
REG_S = sv/
REG_U = regs_ral.sv
REG_C = cmod
REG_D = dmod
REG_V = $(OUT_DIR)/regs_v.v
REG_S = $(OUT_DIR)/sv/
REG_U = $(OUT_DIR)/regs_ral.sv
REG_C = $(OUT_DIR)/cmod
REG_D = $(OUT_DIR)/dmod
default:
$(AT)$(JAVA) -jar Ordt.jar -parms $(REG_PARMS) -systemverilog $(REG_S) -verilog $(REG_V) -uvmregs $(REG_U) -cppmod $(REG_C) -cppdrvmod $(REG_D) $(REG_RDL)
@mkdir -p $(OUT_DIR)
@cp -f $(REG_V) $(OUT_DIR)/; rm $(REG_V) -rf
@cp -f $(REG_U) $(OUT_DIR)/; rm $(REG_U) -rf
@cp -rf $(REG_S) $(OUT_DIR)/; rm $(REG_S) -rf
@cp -rf $(REG_C) $(OUT_DIR)/; rm $(REG_C) -rf
@cp -rf $(REG_D) $(OUT_DIR)/; rm $(REG_D) -rf
$(AT)$(JAVA) -jar Ordt.jar -parms $(REG_PARMS) -systemverilog $(REG_S) -verilog $(REG_V) -uvmregs $(REG_U) -cppmod $(REG_C) -cppdrvmod $(REG_D) $(REG_RDL)
#@cp -f $(REG_V) $(OUT_DIR)/; rm $(REG_V) -rf
#@cp -f $(REG_U) $(OUT_DIR)/; rm $(REG_U) -rf
#@cp -rf $(REG_S) $(OUT_DIR)/; rm $(REG_S) -rf
#@cp -rf $(REG_C) $(OUT_DIR)/; rm $(REG_C) -rf
#@cp -rf $(REG_D) $(OUT_DIR)/; rm $(REG_D) -rf
@echo "=============================================="
@echo "files are generated under $(OUT_DIR)"
@echo "=============================================="
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 9 additions & 7 deletions tools/bin/tmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ build();
## SUB
#=============================
sub build {
my $log_tmp = $log.".tmp";
my $outdir_log_tmp = "$outdir/$log".".tmp";

system ("rm -rf $outdir_log");
#system ("rm -rf $outdir_log");
unlink $outdir_log;
system ("mkdir -p $outdir");
system ("touch $outdir_log");

Expand All @@ -68,8 +69,8 @@ sub build {
croak "[ERROR]: build target $only does not exist in $cfg" unless $tree->{$only};

foreach my $sandbox (@{$tree->{$only}{sandbox}}) {
system("$MAKE -C $sandbox PROJECT=$project $opt_m | tee $log_tmp")==0 or die "$sandbox build fail: $?" if $run;
system ("cat $log_tmp >> $outdir_log") if $run;
system("$MAKE -C $sandbox PROJECT=$project $opt_m | tee $outdir_log_tmp")==0 or die "$sandbox build fail: $?" if $run;
system ("cat $outdir_log_tmp >> $outdir_log") if $run;
}

} else {
Expand All @@ -96,16 +97,17 @@ sub build {
print "leaf=$leaf\n" if $debug;

foreach my $sandbox (@{$tree->{$leaf}{sandbox}}) {
system("$MAKE -C $sandbox PROJECT=$project $opt_m | tee $log_tmp")==0 or die "$sandbox build fail: $?" if $run;
system ("cat $log_tmp >> $outdir_log") if $run;
system("$MAKE -C $sandbox PROJECT=$project $opt_m | tee $outdir_log_tmp")==0 or die "$sandbox build fail: $?" if $run;
system ("cat $outdir_log_tmp >> $outdir_log") if $run;
}

$done->{$leaf} = 1;
delete $tree->{$leaf};
}
}
}
system ("rm -rf $log_tmp");
#system ("rm -rf $outdir_log_tmp");
unlink $outdir_log_tmp;

print "logfile: $outdir_log\n";
my $tee = IO::Tee->new(\*STDOUT, $outdir_log);
Expand Down
4 changes: 2 additions & 2 deletions tools/etc/build.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
defs:
sandbox:
- defs
- spec/defs

manual:
sandbox:
- manual
- spec/manual

vmod_vlibs:
sandbox:
Expand Down

0 comments on commit a1d9b3a

Please sign in to comment.