From patchwork Fri Mar 15 03:26:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 160383 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp16272314jad; Thu, 14 Mar 2019 20:48:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkoEGlVOt6CqfkWT7gWtgTf8/tx+RkZeYWElZQ5Zv08y3vu/eQ0DDM0x5vuzGxDIHsuDlB X-Received: by 2002:adf:ea04:: with SMTP id q4mr701483wrm.97.1552621692154; Thu, 14 Mar 2019 20:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552621692; cv=none; d=google.com; s=arc-20160816; b=RkxANrQU16sxYuSdhxPY1mlKFW8T1EiAQMIxpnrapmxXHC9OGPAsufZZ2y8URxdiYk rm5gu7wFxPTL6vc13Q77gT64XYWXxnx6AyXzM/0qU7AxsB1kYRmnX8ZvLrD9/dW3+C7p 8n0dtylgJZVbBeC1SxrRds00kjBIYoKHV1QxZpLMVu8LFNcrchz0lul8l9csmUogFwhJ q4ZYaXgQihGGnPFmplQIl3KUyG7/8D6feV+hfzhOz2ya8hUn5apKUc/LZIBXJL6sJ0wR OQ8uFGT6xCQ+hNXJEPZ2mEgk7XfzfPd/+Zcbbf6077fTPKYQXEH/qhHXHXrLvYEnxXTI nxQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=5Q5A6gjz66OJ4/9J1TQOfzJkkmyqixXmwmswaFfq59M=; b=jkL+rGPxcO8bikJG5L4YXwqCAZ8qk55Huzb7efrcPboO1j3eRHrn+utgoY195LKBA/ gkYIxH9jEYsN186Yl6txchqjetxx3qQuCmIcmEXuc1R7fCPwobuIiM/Y4nS9zA7unIah aNzj6BsPcMTwWmxp9FQwO646vnZOm6qW26ZTsROE9G71Ap1qcbmpXvoAudf9ONYp9QMO pQlecUhY/jRHjhWu7j7v1MI+awT+mAHe2/N9TYTUnmYXacSLSDuwy9Nue4VpFHlNe2dM A+DnZNX2L4wJHnIi0jSoe9WzDDYB/Va6mPdKqtJwhJLcU6vKSBzGDTfAs2r+Mb7bkk5u bivw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=tDWlRM+Z; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l7si377694wmc.195.2019.03.14.20.48.11 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 14 Mar 2019 20:48:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=tDWlRM+Z; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:48877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4dpL-0007cf-0I for patch@linaro.org; Thu, 14 Mar 2019 23:48:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4dcM-0005C3-5a for qemu-devel@nongnu.org; Thu, 14 Mar 2019 23:34:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4dUQ-0002hI-PL for qemu-devel@nongnu.org; Thu, 14 Mar 2019 23:26:35 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:38878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4dUQ-0002gQ-EQ for qemu-devel@nongnu.org; Thu, 14 Mar 2019 23:26:34 -0400 Received: by mail-pg1-x529.google.com with SMTP id v1so698650pgi.5 for ; Thu, 14 Mar 2019 20:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5Q5A6gjz66OJ4/9J1TQOfzJkkmyqixXmwmswaFfq59M=; b=tDWlRM+ZWIb5PN55d+kdmpjGwahOQSv2i3oOOmMKXe3bi50aX/+8mtjyjB0uDCCXyw 9b2Y1yZHWMN+li0L+0em/c/Re+UKFu6b0uzqS+A0X3AQ3FJ0cslTNLhyzXD1Aywl97VP xkXEtlPhXsK3mjJXQVbxQVo1+iIdu9Mxl0ekHvL0SO394J0zVapJAQy/EAV8y1QJ229J dV5UEUntkduer+aFD9RB7lkGx5i7WqgGp8CexJrSYLcAh5mdq/AWgc4e70Wf0c89k+q5 reV9bR3pgX0KJfMaWnk2Cnm6mbFs2d++Q/hwEBlO4QxcmNhOZIPnxEgyip811uOH3LP1 Cddw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5Q5A6gjz66OJ4/9J1TQOfzJkkmyqixXmwmswaFfq59M=; b=OEjPAdV7nBxeO3RoyI3Sqfw7C2oBLOxS82/iDOQzyN+9civNGYCSgelbkEFYM+Z3+K p2rnFctafKxhnAw7l3FchJO+4wkrNOisCBb462f9pzJh5pYC59fQaciOd9L5tAPpOOHK tfu4cu91UGy5aEbX1zkjqDY7pxVi8N3WAJvmhQXrCJEsQK6oYpb05tf0WQSAgMQgt3RZ 9CbEWifCRzLbqNwpQqS/8tPxsYN3TGEA2s0opCRLYxSjaMtdNmckWi51cJTpKYbvVY00 GDlN2sDgtrEqa8ZYNgQ5B4jRXVsytPntwcC/k0xTI5D2OCGN6qAWYm0uUd1eHfzOdCw0 F3Kg== X-Gm-Message-State: APjAAAU4am7RflAMd1b1HqzK29Q9U3HuIjuJHFff0fi9meGZF2jHzGnl ok68i8uTHzF5M41rZYYF13eFBBXg8oM= X-Received: by 2002:a17:902:8693:: with SMTP id g19mr1801649plo.157.1552620393188; Thu, 14 Mar 2019 20:26:33 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id d26sm690816pfn.86.2019.03.14.20.26.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Mar 2019 20:26:32 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 14 Mar 2019 20:26:07 -0700 Message-Id: <20190315032629.21234-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190315032629.21234-1-richard.henderson@linaro.org> References: <20190315032629.21234-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::529 Subject: [Qemu-devel] [PATCH v3 01/23] crypto: Merge crypto-obj-y into libqemuutil.a X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We will shortly need this in the user-only binaries, so drop the split into system and tools binaries. This also means that crypto-aes-obj-y can be merged back into crypto-obj-y. Cc: Daniel P. Berrangé Signed-off-by: Richard Henderson --- Makefile | 12 +++++------- Makefile.objs | 8 ++------ Makefile.target | 4 ---- configure | 9 +++------ crypto/Makefile.objs | 5 +---- 5 files changed, 11 insertions(+), 27 deletions(-) -- 2.17.2 diff --git a/Makefile b/Makefile index d8dad39c5d..22c0a76337 100644 --- a/Makefile +++ b/Makefile @@ -405,7 +405,6 @@ dummy := $(call unnest-vars,, \ block-obj-y \ block-obj-m \ crypto-obj-y \ - crypto-aes-obj-y \ qom-obj-y \ io-obj-y \ common-obj-y \ @@ -441,7 +440,6 @@ SOFTMMU_SUBDIR_RULES=$(filter %-softmmu,$(SUBDIR_RULES)) $(SOFTMMU_SUBDIR_RULES): $(authz-obj-y) $(SOFTMMU_SUBDIR_RULES): $(block-obj-y) -$(SOFTMMU_SUBDIR_RULES): $(crypto-obj-y) $(SOFTMMU_SUBDIR_RULES): $(io-obj-y) $(SOFTMMU_SUBDIR_RULES): config-all-devices.mak @@ -496,7 +494,7 @@ Makefile: $(version-obj-y) ###################################################################### # Build libraries -libqemuutil.a: $(util-obj-y) $(trace-obj-y) $(stub-obj-y) +libqemuutil.a: $(util-obj-y) $(trace-obj-y) $(stub-obj-y) $(crypto-obj-y) libvhost-user.a: $(libvhost-user-obj-y) $(util-obj-y) $(stub-obj-y) ###################################################################### @@ -505,9 +503,9 @@ COMMON_LDADDS = libqemuutil.a qemu-img.o: qemu-img-cmds.h -qemu-img$(EXESUF): qemu-img.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) -qemu-nbd$(EXESUF): qemu-nbd.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) -qemu-io$(EXESUF): qemu-io.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) +qemu-img$(EXESUF): qemu-img.o $(authz-obj-y) $(block-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) +qemu-nbd$(EXESUF): qemu-nbd.o $(authz-obj-y) $(block-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) +qemu-io$(EXESUF): qemu-io.o $(authz-obj-y) $(block-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o $(COMMON_LDADDS) @@ -518,7 +516,7 @@ qemu-edid$(EXESUF): qemu-edid.o hw/display/edid-generate.o $(COMMON_LDADDS) fsdev/virtfs-proxy-helper$(EXESUF): fsdev/virtfs-proxy-helper.o fsdev/9p-marshal.o fsdev/9p-iov-marshal.o $(COMMON_LDADDS) fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap -scsi/qemu-pr-helper$(EXESUF): scsi/qemu-pr-helper.o scsi/utils.o $(authz-obj-y) $(crypto-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) +scsi/qemu-pr-helper$(EXESUF): scsi/qemu-pr-helper.o scsi/utils.o $(authz-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) ifdef CONFIG_MPATH scsi/qemu-pr-helper$(EXESUF): LIBS += -ludev -lmultipath -lmpathpersist endif diff --git a/Makefile.objs b/Makefile.objs index 72debbf5c5..23950a37af 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -3,6 +3,8 @@ stub-obj-y = stubs/ util/ crypto/ util-obj-y = util/ qobject/ qapi/ +crypto-obj-y = crypto/ + chardev-obj-y = chardev/ ####################################################################### @@ -21,12 +23,6 @@ block-obj-$(CONFIG_REPLICATION) += replication.o block-obj-m = block/ -####################################################################### -# crypto-obj-y is code used by both qemu system emulation and qemu-img - -crypto-obj-y = crypto/ -crypto-aes-obj-y = crypto/ - ####################################################################### # qom-obj-y is code used by both qemu system emulation and qemu-img diff --git a/Makefile.target b/Makefile.target index ae02495951..ce02924ffb 100644 --- a/Makefile.target +++ b/Makefile.target @@ -179,8 +179,6 @@ dummy := $(call unnest-vars,.., \ block-obj-y \ block-obj-m \ chardev-obj-y \ - crypto-obj-y \ - crypto-aes-obj-y \ qom-obj-y \ io-obj-y \ common-obj-y \ @@ -189,8 +187,6 @@ all-obj-y += $(common-obj-y) all-obj-y += $(qom-obj-y) all-obj-$(CONFIG_SOFTMMU) += $(authz-obj-y) all-obj-$(CONFIG_SOFTMMU) += $(block-obj-y) $(chardev-obj-y) -all-obj-$(CONFIG_USER_ONLY) += $(crypto-aes-obj-y) -all-obj-$(CONFIG_SOFTMMU) += $(crypto-obj-y) all-obj-$(CONFIG_SOFTMMU) += $(io-obj-y) ifdef CONFIG_SOFTMMU diff --git a/configure b/configure index 7071f52584..2c95e6ddc9 100755 --- a/configure +++ b/configure @@ -2769,8 +2769,7 @@ if test "$gnutls" != "no"; then if $pkg_config --exists "gnutls >= 3.1.18"; then gnutls_cflags=$($pkg_config --cflags gnutls) gnutls_libs=$($pkg_config --libs gnutls) - libs_softmmu="$gnutls_libs $libs_softmmu" - libs_tools="$gnutls_libs $libs_tools" + LIBS="$gnutls_libs $LIBS" QEMU_CFLAGS="$QEMU_CFLAGS $gnutls_cflags" gnutls="yes" elif test "$gnutls" = "yes"; then @@ -2835,8 +2834,7 @@ if test "$nettle" != "no"; then nettle_cflags=$($pkg_config --cflags nettle) nettle_libs=$($pkg_config --libs nettle) nettle_version=$($pkg_config --modversion nettle) - libs_softmmu="$nettle_libs $libs_softmmu" - libs_tools="$nettle_libs $libs_tools" + LIBS="$nettle_libs $LIBS" QEMU_CFLAGS="$QEMU_CFLAGS $nettle_cflags" nettle="yes" @@ -2863,8 +2861,7 @@ if test "$gcrypt" != "no"; then then gcrypt_libs="$gcrypt_libs -lgpg-error" fi - libs_softmmu="$gcrypt_libs $libs_softmmu" - libs_tools="$gcrypt_libs $libs_tools" + LIBS="$gcrypt_libs $LIBS" QEMU_CFLAGS="$QEMU_CFLAGS $gcrypt_cflags" gcrypt="yes" diff --git a/crypto/Makefile.objs b/crypto/Makefile.objs index 256c9aca1f..a291bc5b9a 100644 --- a/crypto/Makefile.objs +++ b/crypto/Makefile.objs @@ -34,8 +34,5 @@ crypto-obj-y += xts.o crypto-obj-y += block.o crypto-obj-y += block-qcow.o crypto-obj-y += block-luks.o - -# Let the userspace emulators avoid linking gnutls/etc -crypto-aes-obj-y = aes.o - +crypto-obj-y += aes.o stub-obj-y += pbkdf-stub.o