Unverified Commit 0b581b16 authored by Jared Baur's avatar Jared Baur
Browse files

kvmtool: cleanup make flags

The make flags CROSS_COMPILE and ARCH can be unconditionally set and we
can use attributes under `stdenv` to apply the correct values.
parent 4c87dbdc
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -18,11 +18,10 @@ stdenv.mkDerivation {

  makeFlags = [
    "prefix=${placeholder "out"}"
    "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
    "ARCH=${stdenv.hostPlatform.linuxArch}"
  ] ++ lib.optionals stdenv.hostPlatform.isAarch64 ([
    "LIBFDT_DIR=${dtc}/lib"
  ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
    "CROSS_COMPILE=aarch64-unknown-linux-gnu-"
    "ARCH=arm64"
  ]);

  meta = with lib; {