From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68D962063FB for ; Tue, 14 Jan 2025 18:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736878502; cv=none; b=oB0Zggkk/c5/bO8GFu0Eu7fWj2mx/m6YjHfDZHa8PCqXw1Np8/N+UeJMq0qWjziAMHviKSyyF4mx2c3vVrs4YvA2gy4r8yiQwTjs9ejpJLV+6AavwmV9EDw3AO3WGA3ZxugEK4m8f5TF8IGbmCka85dc4vYwfXcC1qu3GzlK+f4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736878502; c=relaxed/simple; bh=i4OeKpIMACdV8cSuMINkUmAjpYAO+uD82m+dc6ZCHm4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lS7qTDOq1VLVKhXbfyAJw8HxWjzqsB0NXadP5/19wTDS0DffIX0e72rwuvaFXlW2z7yxENvEFukRdWGEVSEE3pYhtT706MalMb2Y6IiwkRc982CxFE5vBx6Qc+e65o9uyiAHK0YNbLDQRQ8DblGFlTOJAA0HUyxKfJ7Q6fuqQLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gHW0boGu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gHW0boGu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F65EC4CEE5; Tue, 14 Jan 2025 18:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736878502; bh=i4OeKpIMACdV8cSuMINkUmAjpYAO+uD82m+dc6ZCHm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gHW0boGuHuqSQ0h+Z1TW++leQjirYSR39ePwtbMQ9lzdnn5td+TevFg9nXdpX4hew UgrOd9hY77jazmWAAOSCnDswcWELhRzYd/ZFvQWs/xdngPNnbOXK3RtyBslelKD1hE L8e1tbHse8jTKRIQWb3DM4I/6K6SYRhV8xe7hQ9aUSiPobTEVKCXC0C8/z3/0APEPV ZXiPgYok8L4JHJHpRjMqNZrySjo2AuVrDyiVr99JWxfR8L10Oj7a4BXMUgi8/FxXqY PDN5liF39e4OLsj2RMVrfI9AavWbsjV5fdAF6ZpMaQ3uFyzKd0D9icn73lfc9NTkSs tnXD3x662W8uQ== From: Masahiro Yamada To: Michal Simek Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 2/4] microblaze: merge build rules for linux.bin and simpleImage.$(DTB) Date: Wed, 15 Jan 2025 03:13:52 +0900 Message-ID: <20250114181359.4192564-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250114181359.4192564-1-masahiroy@kernel.org> References: <20250114181359.4192564-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The build rules for $(obj)/linux.bin and $(obj)/simpleImage.$(DTB) are identical. The build rules for $(obj)/linux.bin.ub and $(obj)/simpleImage.$(DTB).ub are also identical. This commit consolidates the identical build rules. Signed-off-by: Masahiro Yamada --- arch/microblaze/boot/Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index 2b42c370d574..9e3fec78f084 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile @@ -7,12 +7,6 @@ targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.* OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary -$(obj)/linux.bin: vmlinux FORCE - $(call if_changed,objcopy) - -$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE - $(call if_changed,uimage) - $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE $(call if_changed,gzip) @@ -22,10 +16,10 @@ quiet_cmd_strip = STRIP $< $@$2 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) -$(obj)/simpleImage.$(DTB): vmlinux FORCE +$(obj)/linux.bin $(obj)/simpleImage.$(DTB): vmlinux FORCE $(call if_changed,objcopy) -$(obj)/simpleImage.$(DTB).ub: $(obj)/simpleImage.$(DTB) FORCE +$(obj)/linux.bin.ub $(obj)/simpleImage.$(DTB).ub: %.ub: % FORCE $(call if_changed,uimage) $(obj)/simpleImage.$(DTB).unstrip: vmlinux FORCE -- 2.43.0