From patchwork Thu Apr 4 19:22:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 233901 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 321ED2C00D9 for ; Fri, 5 Apr 2013 06:23:47 +1100 (EST) Received: from localhost ([::1]:39066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNplB-0000hK-55 for incoming@patchwork.ozlabs.org; Thu, 04 Apr 2013 15:23:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNpks-0000hD-R8 for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNpkr-0001gP-5h for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:26 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:57799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNpkq-0001gE-VD for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:25 -0400 Received: by mail-wg0-f42.google.com with SMTP id k13so1077486wgh.1 for ; Thu, 04 Apr 2013 12:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=bsbUNoDwwyA7O9rk6wm4DSmn0/5waIJBPDG8XbY2cJ0=; b=Zf44bSKbhT1TCDWm2zPCwPVElVDNmBmRLSRcU7zUwczenmx0aQ7iWWRRzfDjHNzifY UtZ+QcGh2zGQCp0nvK3WqwugAv3xEClir9nnHUu3rNRGd5vA/Si06k1bqn6mLHT24VxI QZI4zMtTwDc1mWZCuVfRdzJ/3VLvV6RPpGR7xadn8/FM5XtduF9R4foYBokrgIfEWP0i u3b+eyCZQGWHGL39ILvXKPXL7JMbU685oPZincS5pFhqDAm1/f8Bs5xzO29nzcuyDfyJ ybV5Sc6L9FjpVpxj6HAP9S5TjAO+GLP1h0myAoomb10y8ykO9bHT+osiTuY2J1RZ2+OD PRuw== X-Received: by 10.180.77.10 with SMTP id o10mr5832787wiw.10.1365103404313; Thu, 04 Apr 2013 12:23:24 -0700 (PDT) Received: from playground.lan (93-34-176-20.ip50.fastwebnet.it. [93.34.176.20]) by mx.google.com with ESMTPS id du2sm33093079wib.0.2013.04.04.12.23.22 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 12:23:23 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 4 Apr 2013 21:22:41 +0200 Message-Id: <1365103395-11547-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1365103395-11547-1-git-send-email-pbonzini@redhat.com> References: <1365103395-11547-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a Subject: [Qemu-devel] [PATCH 01/35] build: enable using $(CONFIG_FOO) on the rhs of config files X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Paolo Bonzini --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 80344d9..0b6e6a1 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,10 @@ config-all-devices.mak: $(call quiet-command,echo '# no devices' > $@," GEN $@") else config-all-devices.mak: $(SUBDIR_DEVICES_MAK) - $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@") + $(call quiet-command, sed -n \ + 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \ + $(SUBDIR_DEVICES_MAK) | sort -u > $@, \ + " GEN $@") endif -include $(SUBDIR_DEVICES_MAK_DEP)