Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use self-location in wake rules #2526

Merged
merged 1 commit into from
Jun 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions build.wake
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

global def rocketChipRoot = here

global def hardfloatScalaModule =
makeScalaModuleFromJSON here "hardfloat"
| setScalaModuleRootDir "hardfloat"
Expand All @@ -7,7 +9,7 @@ global def hardfloatScalaModule =

global def rocketchipMacros =
makeScalaModuleFromJSON here "rocketchipMacros"
| setScalaModuleRootDir "rocket-chip/macros"
| setScalaModuleRootDir "{rocketChipRoot}/macros"
| addMacrosParadiseCompilerPlugin

global def rocketchipScalaModule =
Expand All @@ -18,13 +20,13 @@ global def rocketchipScalaModule =
apiConfigChipsallianceScalaModule,
Nil
makeScalaModuleFromJSON here "rocketchip"
| setScalaModuleRootDir "rocket-chip"
| setScalaModuleRootDir rocketChipRoot
| setScalaModuleDeps deps
| setScalaModuleScalacOptions ("-Xsource:2.11", Nil)
| addMacrosParadiseCompilerPlugin

def vlsi_mem_gen = source "rocket-chip/scripts/vlsi_mem_gen"
def vlsi_rom_gen = source "rocket-chip/scripts/vlsi_rom_gen"
def vlsi_mem_gen = source "{rocketChipRoot}/scripts/vlsi_mem_gen"
def vlsi_rom_gen = source "{rocketChipRoot}/scripts/vlsi_rom_gen"

tuple VLSIRomGenOptions =
global ConfFile: Path
Expand Down Expand Up @@ -108,7 +110,7 @@ def getClassName fullClassName = fullClassName | tokenize `\.` | reverse | head

global def runRocketChipGenerator options =
def jars = options.getRocketChipGeneratorOptionsJars
def runDir = "rocket-chip"
def runDir = rocketChipRoot
def targetDir = options.getRocketChipGeneratorOptionsTargetDir

def cmdline =
Expand All @@ -128,7 +130,7 @@ global def runRocketChipGenerator options =
baseFileName

def inputs =
def bootrom = source 'rocket-chip/bootrom/bootrom.img'
def bootrom = source '{rocketChipRoot}/bootrom/bootrom.img'
def extras = options.getRocketChipGeneratorOptionsExtraSources
(bootrom, targetDir, extras) ++ jars

Expand Down