-
Notifications
You must be signed in to change notification settings - Fork 10
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
Removed legacy toolchain from default devshell #55
Changes from all commits
ae5fa38
41636e3
a647270
804e8c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-- Copyright lowRISC Contributors. | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
|
||
includes("cheri", "legacy") | ||
includes("cheri") |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,6 @@ | |
mdutils, | ||
}: let | ||
system_outputs = system: let | ||
version = "0.0.1"; | ||
|
||
pkgs = import nixpkgs {inherit system;}; | ||
lrPkgs = lowrisc-nix.outputs.packages.${system}; | ||
mdutilsPkgs = mdutils.outputs.packages.${system}; | ||
|
@@ -39,21 +37,31 @@ | |
inherit (pkgs.lib) fileset getExe; | ||
|
||
commonSoftwareBuildAttributes = { | ||
buildInputs = | ||
cheriotPkgs | ||
++ [ | ||
lrPkgs.uf2conv | ||
lrPkgs.lowrisc-toolchain-gcc-rv32imcb | ||
]; | ||
buildInputs = cheriotPkgs ++ [lrPkgs.uf2conv]; | ||
installPhase = '' | ||
mkdir -p $out/share/ | ||
cp build/cheriot/cheriot/release/* $out/share/ | ||
''; | ||
dontFixup = true; | ||
}; | ||
|
||
sonata-automotive-demo-legacy-component = pkgs.stdenvNoCC.mkDerivation { | ||
name = "sonata-automotive-demo-legacy-component"; | ||
src = fileset.toSource { | ||
root = ./.; | ||
fileset = fileset.unions [./examples/automotive ./third_party]; | ||
}; | ||
buildInputs = with lrPkgs; [xmake lowrisc-toolchain-gcc-rv32imcb]; | ||
buildPhase = "xmake -P ./examples/automotive/legacy/"; | ||
installPhase = '' | ||
mkdir -p $out/share/ | ||
cp build/ilp32/rv32imc/release/automotive_demo_send_legacy $out/share | ||
''; | ||
dontFixup = true; | ||
}; | ||
|
||
sonata-software-documentation = lrDoc.buildMdbookSite { | ||
inherit version; | ||
version = ""; | ||
pname = "sonata-software-documentation"; | ||
src = fileset.toSource { | ||
root = ./.; | ||
|
@@ -173,7 +181,6 @@ | |
++ [ | ||
lrPkgs.uf2conv | ||
lrPkgs.cheriot-audit | ||
lrPkgs.lowrisc-toolchain-gcc-rv32imcb | ||
pkgs.python3Packages.pyserial | ||
mdutilsPkgs.default | ||
]; | ||
|
@@ -183,8 +190,20 @@ | |
packages = [sonataSystemPkgs.sonata-simulator] ++ default.nativeBuildInputs; | ||
SONATA_SIM_BOOT_STUB = "${sonataSystemPkgs.sonata-sim-boot-stub.out}/share/sim_boot_stub"; | ||
}; | ||
env-with-everything = pkgs.mkShell { | ||
name = "sonata-sw-with-everything"; | ||
packages = env-with-sim.nativeBuildInputs ++ [lrPkgs.lowrisc-toolchain-gcc-rv32imcb]; | ||
}; | ||
Comment on lines
+193
to
+196
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This works for me, but would it be possible to just have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just wanted to avoid having too many environments, so I thought I'd make a catchall everything environment. But I suppose people can always overlay environments, open to changing |
||
}; | ||
packages = { | ||
inherit | ||
sonata-exercises | ||
sonata-examples | ||
sonata-tests | ||
sonata-software-documentation | ||
sonata-automotive-demo-legacy-component | ||
; | ||
}; | ||
packages = {inherit sonata-exercises sonata-examples sonata-tests sonata-software-documentation;}; | ||
checks = {inherit tests-simulator;}; | ||
apps = builtins.listToAttrs (map (program: { | ||
inherit (program) name; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is merged already so it is fine, but I would like to see a comment here mentioning that the
xmake -P examples/automotive/legacy
command needs to be run in the.#env-with-everything
Nix environment, as otherwise unsuspecting users who try and build the demo will get errors.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point thanks alex