From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2DCEC6379D for ; Sat, 21 Nov 2020 19:38:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 72142221F1 for ; Sat, 21 Nov 2020 19:38:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="YNvrC8KA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728523AbgKUTiW (ORCPT ); Sat, 21 Nov 2020 14:38:22 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:53647 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728487AbgKUTiS (ORCPT ); Sat, 21 Nov 2020 14:38:18 -0500 Received: from grover.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-10.nifty.com with ESMTP id 0ALJawZC029948; Sun, 22 Nov 2020 04:36:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 0ALJawZC029948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1605987419; bh=tO3lfkM46ZiPV3HhKCVAn/mbT1jwK78kFKMFlV1doXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YNvrC8KA+LKEIK7ONHxyRkxBKssZdAJTe+oKUtGqaNwoUS/em0UqjMw52eHxgGkuq LhaF7WBp/rdUVdt8YalBMgD7KTq5fRDFUvkSXU1Kb1IFLH2aI6/ZCRBfwzL8DbalVa 7HqCU4xTlsfCjvhW5EkJobh6NBVxvRY/xQ+Yd553OOZ5qnZfPBogvQPybR5QRY1L7n mFaObU3zryeELlXFyb05UlSe+D5cNZG9Yzxvq4fNFCslF18b4LsvdcUP1Q0uLbWDTM etkwsclLElVKblM1XWs/85p94sGd5RuXyGgmHxzjL5sClJnl70Bfe1Ut1CfqE2yGkd urrm/fDRIJ9BA== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: Vineet Gupta , linux-snps-arc@lists.infradead.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 1/6] ARC: build: remove non-existing bootpImage from KBUILD_IMAGE Date: Sun, 22 Nov 2020 04:36:52 +0900 Message-Id: <20201121193657.51441-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201121193657.51441-1-masahiroy@kernel.org> References: <20201121193657.51441-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The deb-pkg builds for ARCH=arc fail. $ export CROSS_COMPILE= $ make -s ARCH=arc defconfig $ make ARCH=arc bindeb-pkg SORTTAB vmlinux SYSMAP System.map MODPOST Module.symvers make KERNELRELEASE=5.10.0-rc4 ARCH=arc KBUILD_BUILD_VERSION=2 -f ./Makefile intdeb-pkg sh ./scripts/package/builddeb cp: cannot stat 'arch/arc/boot/bootpImage': No such file or directory make[4]: *** [scripts/Makefile.package:87: intdeb-pkg] Error 1 make[3]: *** [Makefile:1527: intdeb-pkg] Error 2 make[2]: *** [debian/rules:13: binary-arch] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2 make: *** [Makefile:1527: bindeb-pkg] Error 2 The reason is obvious; arch/arc/Makefile sets $(boot)/bootpImage as the default image, but there is no rule to build it. Remove the meaningless KBUILD_IMAGE assignment so it will fallback to the default vmlinux. With this change, you can build the deb package. I removed the 'bootpImage' target as well. At best, it provides 'make bootpImage' as an alias of 'make vmlinux', but I do not see much sense in doing so. Signed-off-by: Masahiro Yamada --- arch/arc/Makefile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 0c6bf0d1df7a..acf99420e161 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -102,12 +102,6 @@ libs-y += arch/arc/lib/ $(LIBGCC) boot := arch/arc/boot -#default target for make without any arguments. -KBUILD_IMAGE := $(boot)/bootpImage - -all: bootpImage -bootpImage: vmlinux - boot_targets += uImage uImage.bin uImage.gz $(boot_targets): vmlinux -- 2.25.1