From patchwork Fri May 25 13:38:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 136883 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3607344lji; Fri, 25 May 2018 06:42:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIGxF0wy3LA5sqZ1KFF7YR+LLBAN9+D7Frkym8F+u5w87X0uRJQXCf5ta7XBUAtX71BKFjz X-Received: by 2002:a37:5d84:: with SMTP id r126-v6mr2006084qkb.352.1527255744001; Fri, 25 May 2018 06:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527255743; cv=none; d=google.com; s=arc-20160816; b=KRWPfRqdmb0ra5H9WipARX6tG8+phXyXSW/DJQo82m5Tb9rnm6U1i/+oDzqcqyYJ2K NmccSASUk3KKU6hUXchc7O6hqzUejJdPkqaWsAh8edq5G2l4WOqdp6YfTKMMTczrx1q9 twy3XoOtsSONSCBVeEC4/MaEqa/p3aARio70SgMw1xR3giXS2PIvJS5x48GIo9rA9682 SiGscx4u7gr4/4L9P80F1hRrLrtCwP/vNVNfyiPkbdGb4qdRI+bL/v4gWSID+sDHRJ2p SIdIUDk0HEg6dL94Tw0iy64oh9e481ub0qDAUo+EnbGewVrx7HdnkDNZTC3ObBtNtfJs N4Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:arc-authentication-results; bh=aZ6DLVPaEn0i3n5coomcWZAjkcxmsDTtFj1t0mBDNJU=; b=oTadEqKq6e+SHvr20Wzo1JAu0ea+suv4oS2bkdGctLqsm7omzViFMT3HJAOwCRzf/G 2qarGpQ2Y5o0khte2GpnMG0sROflb4OCUP+6O+9N2XRusc/VfB0PYEcXIpBGQINGh546 Y9mUZLG0SVfHN0054yCD98dI8gMaeE1bgwVbpxZHb5/cP/4K8EBYER+AfOcv0bL0OyCs HrC1iAY4MMl809tzjYud2N+y8mafrDeuCjnLo/lGdgirdj3dwJ+yYHy+mKSbbXYufadh MF1WnyIg4c0HUdf6TRo7h471iR9SZXzUYBKc0FQlsoW9CFF8LhqlultPlHXRRQoV2J3R EPmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HYvAUt4Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id d93-v6si345256qkh.339.2018.05.25.06.42.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 May 2018 06:42:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HYvAUt4Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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 ([::1]:44061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMCz9-0007mk-Co for patch@linaro.org; Fri, 25 May 2018 09:42:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMCvw-0004y4-G9 for qemu-devel@nongnu.org; Fri, 25 May 2018 09:39:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMCvv-0005vj-3c for qemu-devel@nongnu.org; Fri, 25 May 2018 09:39:04 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:36362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMCvu-0005vT-Qn for qemu-devel@nongnu.org; Fri, 25 May 2018 09:39:03 -0400 Received: by mail-wr0-x22c.google.com with SMTP id k5-v6so9320031wrn.3 for ; Fri, 25 May 2018 06:39:02 -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=aZ6DLVPaEn0i3n5coomcWZAjkcxmsDTtFj1t0mBDNJU=; b=HYvAUt4Q1+tpoMDtKyCMiMs8KCZx+B2CH0KE68BAeIP9zygYC2uPkXpY3mBXkT/OES JK6f66GiukQeaEEDrdIf48w5Rezx86o0XKrDv4s+/1dT1+d5Zg4E/SLPOsRB7erNrxjI 4u24Esra1nXdOMZZ4Cw20aB2jjio4O9veY+TY= 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=aZ6DLVPaEn0i3n5coomcWZAjkcxmsDTtFj1t0mBDNJU=; b=rIleLdf/afGPkh5pitSCZhj5hUWwfSMXMrdDdB6bQppn/2WTsE13Itj9iin2Rfi819 UwUW4X/8GVqewLupYmGOHWy+SDuG30+PkPBUf7aRv3FHnO/ukKD+z4tcnnA6zHHyTKjE XSgVxbtTCfTlM9rlrq4vOFrb8Z6BWKGe/zemigJILipX26s2Oq4JWUy0/d811q3Jl6tT jtHEFLWpiChvMltWeCiXyNhrMs7czT9VB4WF9+ZTgDdPzCRIjcgDNpvYccUKcYK3pg2T RHOMduLN+r11pmimRsLmkj37ZoHH5DGsKf9CqZPuwKBkyD2bYp83BUikSo3nDec5wbrg S0Vg== X-Gm-Message-State: ALKqPwf51Mj+xkj/okuHdxk1/VPlq4XE6JIfoxegSVgRtFLwh8BkrAy5 PZdRKi+PcESP9OJknxeEefs3uA== X-Received: by 2002:adf:a075:: with SMTP id l50-v6mr2492907wrl.227.1527255541665; Fri, 25 May 2018 06:39:01 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 140-v6sm9651924wmi.9.2018.05.25.06.38.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 May 2018 06:38:58 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id CC2053E071E; Fri, 25 May 2018 14:38:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Fri, 25 May 2018 14:38:09 +0100 Message-Id: <20180525133851.27161-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180525133851.27161-1-alex.bennee@linaro.org> References: <20180525133851.27161-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22c Subject: [Qemu-devel] [PATCH v5 07/49] Makefile: Rename TARGET_DIRS to TARGET_LIST 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: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Fam Zheng To be more accurate on its purpose and make code that looks for a certain target out of this variable more readable. Signed-off-by: Fam Zheng Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- Makefile | 20 ++++++++++---------- configure | 2 +- scripts/create_config | 2 +- tests/Makefile.include | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) -- 2.17.0 diff --git a/Makefile b/Makefile index 6d588d1f71..023b3437ec 100644 --- a/Makefile +++ b/Makefile @@ -62,8 +62,8 @@ seems to have been used for an in-tree build. You can fix this by running \ endif endif -CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_DIRS)),y) -CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_DIRS)),y) +CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_LIST)),y) +CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_LIST)),y) CONFIG_XEN := $(CONFIG_XEN_BACKEND) CONFIG_ALL=y -include config-all-devices.mak @@ -366,8 +366,8 @@ DOCS= endif SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory --quiet) BUILD_DIR=$(BUILD_DIR) -SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) -SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %-config-devices.mak.d, $(TARGET_DIRS)) +SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_LIST)) +SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %-config-devices.mak.d, $(TARGET_LIST)) ifeq ($(SUBDIR_DEVICES_MAK),) config-all-devices.mak: @@ -470,7 +470,7 @@ config-host.h-timestamp: config-host.mak qemu-options.def: $(SRC_PATH)/qemu-options.hx $(SRC_PATH)/scripts/hxtool $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"GEN","$@") -SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) +SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_LIST)) SOFTMMU_SUBDIR_RULES=$(filter %-softmmu,$(SUBDIR_RULES)) $(SOFTMMU_SUBDIR_RULES): $(block-obj-y) @@ -514,7 +514,7 @@ ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS)) romsubdir-%: $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/" CFLAGS="$(filter -O% -g%,$(CFLAGS))",) -ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS)) +ALL_SUBDIRS=$(TARGET_LIST) $(patsubst %,pc-bios/%, $(ROMS)) recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) @@ -772,7 +772,7 @@ distclean: clean rm -f docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf rm -f docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html rm -f docs/qemu-block-drivers.7 - for d in $(TARGET_DIRS); do \ + for d in $(TARGET_LIST); do \ rm -rf $$d || exit 1 ; \ done rm -Rf .sdk @@ -873,7 +873,7 @@ endif $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \ done $(INSTALL_DATA) $(BUILD_DIR)/trace-events-all "$(DESTDIR)$(qemu_datadir)/trace-events-all" - for d in $(TARGET_DIRS); do \ + for d in $(TARGET_LIST); do \ $(MAKE) $(SUBDIR_MAKEFLAGS) TARGET_DIR=$$d/ -C $$d $@ || exit 1 ; \ done @@ -1071,9 +1071,9 @@ endif @echo ' ctags/TAGS - Generate tags file for editors' @echo ' cscope - Generate cscope index' @echo '' - @$(if $(TARGET_DIRS), \ + @$(if $(TARGET_LIST), \ echo 'Architecture specific targets:'; \ - $(foreach t, $(TARGET_DIRS), \ + $(foreach t, $(TARGET_LIST), \ printf " %-30s - Build for %s\\n" $(patsubst %,subdir-%,$(t)) $(t);) \ echo '') @echo 'Cleaning targets:' diff --git a/configure b/configure index cc375abe15..d2c605161e 100755 --- a/configure +++ b/configure @@ -6168,7 +6168,7 @@ qemu_version=$(head $source_path/VERSION) echo "VERSION=$qemu_version" >>$config_host_mak echo "PKGVERSION=$pkgversion" >>$config_host_mak echo "SRC_PATH=$source_path" >> $config_host_mak -echo "TARGET_DIRS=$target_list" >> $config_host_mak +echo "TARGET_LIST=$target_list" >> $config_host_mak if [ "$docs" = "yes" ] ; then echo "BUILD_DOCS=yes" >> $config_host_mak fi diff --git a/scripts/create_config b/scripts/create_config index d727e5e36e..58948a67a4 100755 --- a/scripts/create_config +++ b/scripts/create_config @@ -107,7 +107,7 @@ case $line in target_name=${line#*=} echo "#define TARGET_NAME \"$target_name\"" ;; - TARGET_DIRS=*) + TARGET_LIST=*) # do nothing ;; TARGET_*=y) # configuration diff --git a/tests/Makefile.include b/tests/Makefile.include index 3b9a5e31a2..3d2f0458ab 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -854,7 +854,7 @@ endif # QTest rules -TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS))) +TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_LIST))) ifeq ($(CONFIG_POSIX),y) QTEST_TARGETS = $(TARGETS) check-qtest-y=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y))