qemu: Support disabling tools
Not needed for a minimal qemu-user-static build.
This commit is contained in:
parent
a94afe42c0
commit
12428702eb
@ -33,6 +33,7 @@
|
||||
, capstoneSupport ? !toolsOnly, capstone
|
||||
, pluginsSupport ? !stdenv.hostPlatform.isStatic
|
||||
, enableDocs ? true
|
||||
, enableTools ? true
|
||||
, hostCpuOnly ? false
|
||||
, hostCpuTargets ? (if toolsOnly
|
||||
then [ ]
|
||||
@ -160,7 +161,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
configureFlags = [
|
||||
"--disable-strip" # We'll strip ourselves after separating debug info.
|
||||
(lib.enableFeature enableDocs "docs")
|
||||
"--enable-tools"
|
||||
(lib.enableFeature enableTools "tools")
|
||||
"--localstatedir=/var"
|
||||
"--sysconfdir=/etc"
|
||||
"--cross-prefix=${stdenv.cc.targetPrefix}"
|
||||
|
Loading…
Reference in New Issue
Block a user