1
0

Add a "/" when targetDir doesn't have one

This isn't Chisel 3 specific, but that's what I happened to do in the Chisel 3
Driver wrapper.
This commit is contained in:
Palmer Dabbelt 2016-02-05 09:57:47 -08:00
parent 3bb0f11e6c
commit 8422aaf6fc

View File

@ -165,7 +165,7 @@ object TestGenerator extends App with FileSystemUtilities {
val v = createOutputFile(configClassName + ".knb")
v.write(world.getKnobs)
v.close
val d = new java.io.FileOutputStream(Driver.targetDir + configClassName + ".dtb")
val d = new java.io.FileOutputStream(Driver.targetDir + "/" + configClassName + ".dtb")
d.write(paramsFromConfig(DeviceTree))
d.close
val w = createOutputFile(configClassName + ".cst")