From patchwork Thu Feb 4 20:20:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 12068609 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=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 EB625C433E6 for ; Thu, 4 Feb 2021 20:22:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B789D64F48 for ; Thu, 4 Feb 2021 20:22:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240052AbhBDUWc (ORCPT ); Thu, 4 Feb 2021 15:22:32 -0500 Received: from mail-eopbgr00058.outbound.protection.outlook.com ([40.107.0.58]:16259 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240038AbhBDUWZ (ORCPT ); Thu, 4 Feb 2021 15:22:25 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wr9VtnR02dKxE2sJ1SdxVTXe37NO33EcdxCFpoDdTbFyKU7HR/nkfaiyQTVEo1Z4O+D5QnJz9Pj3P8/dvALglnBRh3EyKIT7twguEyX3Tat9gwzBDigLK4qWFNwQy5ew5h8a0w6Ijd1G9WLD5yXknqJEf1fhp/gmiLwGRgs2rf9A3Dxdpbs0ASTtUb1yu9j1JGH7CJuTZP77yppB87sAY1gw4NZ5i9EbpiyinbXOVq59IJ2EnUITH0Um7R+fz7TM3hexQ0aam2Ohm4yeS4/1NRVf9tvgOd/tjarutRP8Q/14+c2hrCCMnS49ZmzhUyroRgUvzaKGqGwqRP54AFdE0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XGPU55OFfOf8CZBS79tMR5QGuIhZxAPUUAd31w1UbXU=; b=JeT59jeBOSGOoRhO0v5JzXxvVQ+rRs5NAbD3kNBLLvQa96rguVGEmVa46jDb+aoYA9WNlfeygI3uAHtWSOT2AVxiKjO7zMQWu62hhuocG7cx0T/pozhr69FwesH1NHL9QYRQxXi5ZGOKzgm3Nczsh69iAtwIdLBfgDBIuaQy8N64spdPuEPd/ba1mTlGvoLMSST0mK+BQpslroCp44ThykUJBdk3FJUGytnR0e6c7Blj83er6kJXqi3vNoKpuQEjqmr62oxNItQ+thaCAULMr0d12CvwvnlLok2hNjN79IZeSmvuRCMMdjiFRyZUJ5ZjC5uCEiQk2HMGCWKmx49u6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secospa.onmicrosoft.com; s=selector2-secospa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XGPU55OFfOf8CZBS79tMR5QGuIhZxAPUUAd31w1UbXU=; b=3cmS1alU3zdeJAaf3WqEu22TKz6HVuRkHeZe2UMqKSSWzqaWxZuHtx5fwWe9By8UGirnHNC4E2iisegKBI3Yb1QjsynW1WFQSVO7vuuuMete602AlmwqgzrRsI5KPmxOnpeoJ4pcZEx5lEAgqsAylZeT0OQpXfocEbQGyGF0ysc= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=seco.com; Received: from AM9PR03MB7251.eurprd03.prod.outlook.com (2603:10a6:20b:26e::16) by AM0PR03MB6132.eurprd03.prod.outlook.com (2603:10a6:20b:145::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.17; Thu, 4 Feb 2021 20:21:37 +0000 Received: from AM9PR03MB7251.eurprd03.prod.outlook.com ([fe80::a8f2:7dd:46e5:8526]) by AM9PR03MB7251.eurprd03.prod.outlook.com ([fe80::a8f2:7dd:46e5:8526%6]) with mapi id 15.20.3825.019; Thu, 4 Feb 2021 20:21:37 +0000 From: Sean Anderson To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , Sean Anderson Subject: [PATCH] builddeb: Don't look for a missing Module.symvers Date: Thu, 4 Feb 2021 15:20:53 -0500 Message-Id: <20210204202054.1608664-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.25.1 X-Originating-IP: [50.195.82.171] X-ClientProxiedBy: BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) To AM9PR03MB7251.eurprd03.prod.outlook.com (2603:10a6:20b:26e::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from plantagenet.inhand.com (50.195.82.171) by BL1PR13CA0328.namprd13.prod.outlook.com (2603:10b6:208:2c1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.11 via Frontend Transport; Thu, 4 Feb 2021 20:21:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1fe80c7b-43c3-46cd-5441-08d8c94a7903 X-MS-TrafficTypeDiagnostic: AM0PR03MB6132: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:862; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tgQbBnhUXfndfYTVgqs3yDS9/DRi+GnMYXmpLAx5QSeFgji18w8A+06upWYs+c1DYBEICGaY6gDNXFT4s2vBd63w70QVV0IE2tDJbqULAfLTFoXMKyHFdzMl87NBYdaGRw/So6fgltbATpQUSqMiXnBQSFcd70WaacM2w5bpr6UNw1GfBCsFssKWDUDpVTWW/bAmHzwqfZgK90iTH3EuQvO3uU+AwbHH31qttWaSXozKF55s74qFiVPA2jVIjkV/XwPEWBi8W/UcLndh1ePjkyVvvkRg3zJ8cFzftUX7o/twASLdNEFsRNJ9diMrjv61hhlTB8hE2fqGIuBqm0L66M5OqWna1QlzvlzdDiTLObSVOLPLbaV3OWX5NY2pgI2XG6WGtCRcQfbs6hkIGhyvRDB02QnCX88NQPVQwvzMD87mxpIS5PkEvRful5FXKOsAy1lX61vffmXrYwXfBoYlf8VA0slSLlpPQ3Ie5GyHUa9+RRTFxEQYFJmKUaAeN5y03JH+Tox3Cb6tZtwKOtiJPw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR03MB7251.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(376002)(136003)(396003)(39840400004)(346002)(16526019)(44832011)(54906003)(6486002)(5660300002)(2906002)(2616005)(1076003)(6506007)(316002)(956004)(36756003)(478600001)(26005)(4744005)(6666004)(86362001)(107886003)(66476007)(4326008)(83380400001)(186003)(52116002)(8676002)(8936002)(66556008)(6512007)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?rjA0Jsl587Q82XqWWv5HCbBQBrmmjR?= =?utf-8?q?MRD5CQ+soJa3vS77XxWBva/9Sv1RiivXKnwWZdWBK7TOdxd2cCQVwCs6a2UuD4Ehr?= =?utf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eoHax7JQfLiJ4i0eD4Vw2hRkHjYlU8EpXvIEjChm1ggRXbav+bAfDIH?= =?utf-8?q?kiAWT+hgro2TYxbI8T?= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1fe80c7b-43c3-46cd-5441-08d8c94a7903 X-MS-Exchange-CrossTenant-AuthSource: AM9PR03MB7251.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Feb 2021 20:21:37.0109 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tN6rxnyc9kIFh9GojQVKP1V7AXqZke+JRpIn/X80HI3XK74Q80tvL2sBCyjmk9fMcquNAD6ZXF43n+M1yuInwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB6132 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org If deb-pkg is run with CONFIG_MODULES disabled, then make fails with find: ‘Module.symvers’: No such file or directory make[4]: *** [scripts/Makefile.package:87: intdeb-pkg] Error 1 make[3]: *** [Makefile:1523: intdeb-pkg] Error 2 make[2]: *** [debian/rules:9: binary-arch] Error 2 Only add it to headerobjfiles if we actually have modules. Signed-off-by: Sean Anderson --- scripts/package/builddeb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 91a502bb97e8..19d44704832b 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -71,7 +71,11 @@ deploy_kernel_headers () { echo tools/objtool/objtool fi - find arch/$SRCARCH/include Module.symvers include scripts -type f + if is_enabled CONFIG_MODULES; then + echo Module.symvers + fi + + find arch/$SRCARCH/include include scripts -type f if is_enabled CONFIG_GCC_PLUGINS; then find scripts/gcc-plugins -name \*.so