2
0
Fork 0
Browse Source

WiP! hardening disable

aarch64
Emery Hemingway 2 years ago
parent
commit
e22c2cb09c
  1. 15
      packages/genodelabs/default.nix

15
packages/genodelabs/default.nix

@ -122,7 +122,7 @@ let
ports =
lib.mapAttrs preparePort (import ./ports.nix { inherit buildPackages; });
toolchain' = buildPackages.gcc8Stdenv.mkDerivation rec {
toolchain' = buildPackages.stdenv.mkDerivation rec {
pname = "toolchain";
inherit (genodeSources) src version;
@ -154,11 +154,14 @@ let
export CONTRIB_DIR=$GENODE_DIR/contrib
export BUILD_DIR=$GENODE_DIR/build
echo true > tool/ports/prepare_port
patchShebangs tool
mkdir $CONTRIB_DIR; ${linkPorts}
patchShebangs tool $CONTRIB_DIR
runHook postConfigure
'';
enableParallelBuilding = false;
hardeningDisable = [ "format" ];
makefile = "tool/tool_chain";
buildFlags = let
arch = with platform;
@ -170,7 +173,13 @@ let
"aarch64"
else
throw "unknown toolchain for platform ${platform.system}";
in [ "INSTALL_LOCATION=$out" "VERBOSE=" arch ];
in [
"INSTALL_LOCATION=$out"
"MAKE_JOBS=$${NIX_BUILD_CORES}"
"SUDO="
"VERBOSE="
arch
];
dontInstall = true;
};

Loading…
Cancel
Save