Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1259429rdf; Sat, 4 Nov 2023 12:42:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFopKlXL4b5O5Yog4XFo/vnDjjAOWF1bPdBKzT8F9Hm3GmnByElQu7t4i1ylKGZUKktlNI9 X-Received: by 2002:a17:903:4109:b0:1ca:220:ce42 with SMTP id r9-20020a170903410900b001ca0220ce42mr19783760pld.37.1699126968736; Sat, 04 Nov 2023 12:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699126968; cv=none; d=google.com; s=arc-20160816; b=u9jshfY0IluQxbyic+gdVxpWjE5j940lgVkMVaDKkAoh3guI/mHhp6pP1BtWHPnS1+ 4IlKyo/hY/VzFpmwXQL8h4a6QwmJB6ja3AV38Vn/yeI9gg1LMpMR2MnGXFU3h97ZUxUE ZWdLvTX+98bAQP1SqdL9dE7eD2tA87p7cganzZq/CjFDoIEU3RAW9o0/mMpN53MMQ4Yd D0xOdIZaJhmgx9zm1C3ze73NSGn/kRkHrJsVUqYshQ8kqzc9UmIt/dj8+qt3pNbWa4nR RUX5v9+Nn1KDv/ZH6dJfJHctOm28NzTrDi6Dh/d6fsmlPSsZFoflKYZBwMAxA9jzsYMr QGig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mUczbla/3nICzQP9ZmDHPTBpFCCiTIH02+1QSP6Uf6s=; fh=+2WA7Grc9VRiVAdce+KBOM2OHH/h6JCb5mkdcbEwcg4=; b=oNxt443FC5TM8S3RuiCFghZqcpQfJ7XyNvuU5lUxtOLKAbnH2sQyciHP+BOl4+T+fc DiLljnX7rSUk5nZOC5ZpAM3C7ba8jLRNeVV2ul36jhqNkkUvEonzlv5zY/4xdS58P2+C wnSYDdV3WBu9Z7ncGbhobG21+9RRWie2HkEZaGSbQpmznGuZeuo8B0qpHtp8xrrul7+w ei3W5dc8NH9qKS/KdxmyYY80+I66cnMj0//AZDyvKkr9QqXOExWXCqglGXHUrlk7Vy6g XtqHxPXDTxWL+loTxB3JhTjpjh8XjgD3z1Bo4UexXUAEBBOrvIm93hXbF1cv1S2FNriR Bwew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JuuEgsV6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id m10-20020a170902db0a00b001c9c8c4c6d0si4716343plx.26.2023.11.04.12.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 12:42:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JuuEgsV6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4B927806A628; Sat, 4 Nov 2023 12:42:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbjKDTmf (ORCPT + 99 others); Sat, 4 Nov 2023 15:42:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbjKDTmd (ORCPT ); Sat, 4 Nov 2023 15:42:33 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0A5B1BC for ; Sat, 4 Nov 2023 12:42:30 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-7aca968a063so116896939f.0 for ; Sat, 04 Nov 2023 12:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699126950; x=1699731750; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mUczbla/3nICzQP9ZmDHPTBpFCCiTIH02+1QSP6Uf6s=; b=JuuEgsV6qW+QChu9bexGZ7OLp+YfIShJ5hC9hzqyOTt9hyLodlODeL3TGk3ro8V/wG cWgQbGArskn9UePiW87pjOcPZ8qrmGgeUHBsZKQIlL8Ft7ix3Dd2iWO8EeCtMSjZlZLJ zR+/La44r9iodDfL6nt4LYsTeWrEC7yFNan0s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699126950; x=1699731750; 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:message-id:reply-to; bh=mUczbla/3nICzQP9ZmDHPTBpFCCiTIH02+1QSP6Uf6s=; b=dH2C8qZmh6tVdmiSo/iYyr3TUAUhIjnBL+v3sS2vXNtM0Cb4+UrnscX/WjR3zBcoDm aTR0UDmVxBByIz5Fgt+vLYKq90t06AZT3Ni4+3q3dGkaDHaKCn0jQGyKF2A2rRJ+B02I 9+GDYULvkZZ0vetdbXR2/cBuIJrAF5MsFtuZC2cEL/Ca4b+ZAlPqhFAHar/tTvuN9tta icbSXjEtTdTS17wiA7xYTe0FPYoG7EZ+7+TTx8h3doiwjtYnZ+IBF3ZPcIU5gkr2GLz2 5IjRbH/2P+xtSaGs6PE6CVgqbl8EmenODCZsaZWtHhaUn1tdMgixxcu/hu/H98mZvqNg jnEQ== X-Gm-Message-State: AOJu0YxjccLfy5H1XUWHLdLZTBglZADurG3pND4fVYmvudvwqYa4sEv4 fsY3s2O/fqZZZCjo7lDkM2QG/Q== X-Received: by 2002:a05:6602:1592:b0:790:a073:f122 with SMTP id e18-20020a056602159200b00790a073f122mr37121229iow.2.1699126950221; Sat, 04 Nov 2023 12:42:30 -0700 (PDT) Received: from sjg1.united_club.lax.united.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id o4-20020a6b5a04000000b0079fbb834232sm1293318iob.19.2023.11.04.12.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 12:42:29 -0700 (PDT) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , Tom Rini , Masahiro Yamada , Simon Glass , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] kbuild: arm64: Add BOOT_TARGETS variable Date: Sat, 4 Nov 2023 13:42:02 -0600 Message-ID: <20231104194207.3370542-2-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog In-Reply-To: <20231104194207.3370542-1-sjg@chromium.org> References: <20231104194207.3370542-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 04 Nov 2023 12:42:46 -0700 (PDT) Add a new variable containing a list of possible targets. Mark them as phony. This matches the approach taken for arch/arm Signed-off-by: Simon Glass --- (no changes since v1) arch/arm64/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 4bd85cc0d32b..7b77b63e978f 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -150,6 +150,10 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a # Default target when executing plain make boot := arch/arm64/boot +BOOT_TARGETS := Image.gz vmlinuz.efi + +PHONY += $(BOOT_TARGETS) + ifeq ($(CONFIG_EFI_ZBOOT),) KBUILD_IMAGE := $(boot)/Image.gz else @@ -159,7 +163,7 @@ endif all: $(notdir $(KBUILD_IMAGE)) -Image vmlinuz.efi: vmlinux +$(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ Image.%: Image -- 2.42.0.869.gea05f2083d-goog