From patchwork Thu Sep 29 11:42:11 2022 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: 610621 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp946277pvb; Thu, 29 Sep 2022 08:02:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5W3EKjSEgXU0QQ7ciQSL+Hrc1R/AVBem9VA2E89kZTa962AKodDQIi6+SRlYycC1E05Ltp X-Received: by 2002:ac8:5f82:0:b0:35b:b35e:74ff with SMTP id j2-20020ac85f82000000b0035bb35e74ffmr2704572qta.574.1664463752320; Thu, 29 Sep 2022 08:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664463752; cv=none; d=google.com; s=arc-20160816; b=V4JiUTOF3GSB+rFMBeczIhz62ac8mCaOR0RqFAEYCpZuS2JAwv8qXexpGl9McVkEsI tqxeUiwc8ltsh6kxadwbeoJ0NACuMDLuGMKtrD3hWE5D0PZb/mAyB7skVsKg26NRKSue ybCAah76moCyJPAKjDS5cVhTU1ig2oeEykfn7GYkKW7CypLidJZ2MaJpthRgxpQv8AFa YAO2/4b8pLJCiFREctfUu/XEmhIdJtGw2YHr2pY5P19bhOAwMFRhdn36R6L8Qrb/DyZR RYKwKC4I8+tfhPK9rPGaFrDXbkwlnpnZN58OlGW/+jIzcANINDAtFyVID2aDOPTh0Bla Rlpw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RFF0THqd2wz95c8usRFaGFV7I61JuRsTga9UE9tzX2A=; b=WL/wNBx3PeYm5e+C1MxQRD8YYbhdQLGRqUP/7winK1OOxyRL9zKjhE8zPQ6Kq2dFWp DHAP0EqfygSmM1bUwI1LdDMy7Ux78SZtN5wQBDjv02B2JU50Pa1Z4AWAkdaJEqCkXh/a oUDWjZzVk0q8fm6Wvz95CvmOT+Yapts9yCQdVvbguSI/4czvzKsebJxvZYz9Is32w4rH K35VaiDFsvkysblQLoLDKjZQn9XiANbcg4+FCN7QUFGBNReNlNdtR5lyjp7KzcXHINM3 7iAa11aWbPcs77b0ZSzgF3E9DSwCyPLnXOgIJWq70jvx6ACn6TvJKFkFLnYeBaeEy2N8 VJTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dXJsL6Hf; 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=pass (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 w18-20020a05620a425200b006cf36699ebbsi1492601qko.364.2022.09.29.08.02.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Sep 2022 08:02:32 -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=pass header.i=@linaro.org header.s=google header.b=dXJsL6Hf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odv3X-0008EA-RN for patch@linaro.org; Thu, 29 Sep 2022 11:02:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odsD2-0007Wy-I0 for qemu-devel@nongnu.org; Thu, 29 Sep 2022 08:00:08 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:55114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odsCx-0004QR-Bn for qemu-devel@nongnu.org; Thu, 29 Sep 2022 08:00:08 -0400 Received: by mail-wm1-x32a.google.com with SMTP id iv17so795644wmb.4 for ; Thu, 29 Sep 2022 05:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=RFF0THqd2wz95c8usRFaGFV7I61JuRsTga9UE9tzX2A=; b=dXJsL6HfJbW49mKarQkn/W9Y/P3SzbY/BgOgVeYrTul8f9d1bYlBu+xX9ETMD1n3/u PJ8LjgSl+5hGDqxgfkdosLAg3KNrKcYiPPeLakpyx4GEHq/jRkXfnhlQ/SkP5sMiyOzO rWQwVUz5W/6lHQc6OmVdJdWHu9eBJVuGEmcpfWZhg78phn+3vpDVfmJ3HStZ259xItT6 KF9NDLdyIm143DukN+ZsNkI3U4IS1ZzbQ0tvvy4P1TZav1uIs2yiVkPxEZUXWeTv8cXc nwdXc14eoM5Bbvy33aSBhYXMIEZf/aBx5brf2R0O0QY9+TedHWSoqyggiEvOqyJ+EA2r MBzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=RFF0THqd2wz95c8usRFaGFV7I61JuRsTga9UE9tzX2A=; b=LefF3+DfeHRkT4uUuWyN15aKpdTfUETdJny1kvKMs+SFNlJWdqlu7EHiOsc+yczFtx u+SG4rab+tYaJIr84KWciEiQhxVns+DTzZ2ivRESoRvZkAO7V4eRkxGhjp6vDA7CUsxS e7T2nplfaem6r205wa43eJvzQtHLG8EIIo0cmMjcpLWgENyacOmCiWohR5iBBeQygo2X 7F5fVJIzVFT7iYjdWBADbVk4fK0+dIlQr1VCehjV+8qn8BymMqLHHBmdifKfWtX/JLX4 aGiyxBVluu5xZJG5TuyVnXKczfZT3256vWrxEthqj/mdQgV9IObXtDPKI5DEwtkIJQi+ SU3Q== X-Gm-Message-State: ACrzQf3aX+Nr9DsmPCXgHkQ3Xxdh6wQksfx1NYT0p55F0GYbHZN9bl/r XdAt3ooGPzq1qdpSYXVqJuy7hw== X-Received: by 2002:a05:600c:524a:b0:3b5:290:1a7c with SMTP id fc10-20020a05600c524a00b003b502901a7cmr10605682wmb.75.1664452800774; Thu, 29 Sep 2022 05:00:00 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id m67-20020a1c2646000000b003a342933727sm4189175wmm.3.2022.09.29.04.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 04:59:55 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C9C251FFD2; Thu, 29 Sep 2022 12:42:34 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, minyihh@uci.edu, ma.mandourr@gmail.com, Luke.Craig@ll.mit.edu, cota@braap.org, aaron@os.amperecomputing.com, kuhn.chenqun@huawei.com, robhenry@microsoft.com, mahmoudabdalghany@outlook.com, =?utf-8?q?Alex_Benn=C3=A9e?= , Alexey Kardashevskiy , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Daniel Henrique Barboza , David Gibson , Greg Kurz , qemu-ppc@nongnu.org (open list:Virtual Open Firm...) Subject: [PATCH v1 31/51] pc-bios/vof: Adopt meson style Make output Date: Thu, 29 Sep 2022 12:42:11 +0100 Message-Id: <20220929114231.583801-32-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220929114231.583801-1-alex.bennee@linaro.org> References: <20220929114231.583801-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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" From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Alex Bennée --- pc-bios/vof/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pc-bios/vof/Makefile b/pc-bios/vof/Makefile index 990f26af31..be8bd96294 100644 --- a/pc-bios/vof/Makefile +++ b/pc-bios/vof/Makefile @@ -2,19 +2,26 @@ include config.mak VPATH=$(SRC_DIR) all: vof.bin +NULL := +SPACE := $(NULL) # +TARGET_PREFIX := $(patsubst %/,%:$(SPACE),$(TARGET_DIR)) + +quiet-@ = $(if $(V),,@$(if $1,,printf "%s\n" "$(TARGET_PREFIX)$1" && )) +quiet-command = $(call quiet-@,$2 $@)$1 + EXTRA_CFLAGS += -mcpu=power4 %.o: %.S - $(CC) $(EXTRA_CFLAGS) -c -o $@ $< + $(call quiet-command, $(CC) $(EXTRA_CFLAGS) -c -o $@ $<,Assembling) %.o: %.c - $(CC) $(EXTRA_CFLAGS) -c -fno-stack-protector -o $@ $< + $(call quiet-command, $(CC) $(EXTRA_CFLAGS) -c -fno-stack-protector -o $@ $<,Compiling) vof.elf: entry.o main.o ci.o bootmem.o libc.o - $(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB -o $@ $^ + $(call quiet-command, $(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB -o $@ $^,Linking) %.bin: %.elf - $(OBJCOPY) -O binary -j .text -j .data -j .toc -j .got2 $^ $@ + $(call quiet-command, $(OBJCOPY) -O binary -j .text -j .data -j .toc -j .got2 $^ $@,Extracting raw object) clean: rm -f *.o vof.bin vof.elf *~