Skip to content

Commit

Permalink
Simplify calling cargo in Shake
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Aug 18, 2023
1 parent 59694a9 commit 97ca442
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 51 deletions.
6 changes: 3 additions & 3 deletions bittide-shake/bin/Shake.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import System.Process (readProcess, callProcess)

import Paths_bittide_shake

import Clash.Shake.Cargo
import Clash.Shake.Extra
import Clash.Shake.Flags
import Clash.Shake.Vivado
Expand Down Expand Up @@ -202,7 +201,7 @@ shakeOpts :: ShakeOptions
shakeOpts = shakeOptions
{ shakeFiles = buildDir
, shakeChange = ChangeDigest
, shakeVersion = "8"
, shakeVersion = "9"
}

-- | Run Vivado on given TCL script
Expand Down Expand Up @@ -333,7 +332,8 @@ main = do

-- We build all rust binaries in "firmware-binaries". They are required to
-- build bittide-instance because we have instances that includes a binaries.
liftIO $ cargoBuildFirmwareProgram "firmware-binaries" Release
command_ [Cwd "firmware-binaries"] "cargo" ["build", "--release"]

let
(buildTool, buildToolArgs) =
defaultClashCmd clashBuildDir targetName
Expand Down
1 change: 0 additions & 1 deletion bittide-shake/bittide-shake.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ library
import: common-options
hs-source-dirs: src
exposed-modules:
Clash.Shake.Cargo
Clash.Shake.Extra
Clash.Shake.Flags
Clash.Shake.Vivado
Expand Down
47 changes: 0 additions & 47 deletions bittide-shake/src/Clash/Shake/Cargo.hs

This file was deleted.

0 comments on commit 97ca442

Please sign in to comment.