Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp301259iob; Wed, 18 May 2022 02:29:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNYRSOMpb6qx5KIKvU+mahip4Rf6X9ULVPH4BXRxNz9gkhC2O/TZrduFjTQY0amMzgIbL2 X-Received: by 2002:a17:902:ed93:b0:161:6e0f:e8a1 with SMTP id e19-20020a170902ed9300b001616e0fe8a1mr15533512plj.102.1652866190802; Wed, 18 May 2022 02:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652866190; cv=none; d=google.com; s=arc-20160816; b=C1H8F25gTo0Vdcw8F1AI7nUbNNiA6StFOVirlcK+sUzh9hyCHCsX3L7PUOpXtwRSPS A5zifMlfovfsVqUj64aWG0w4YYZQT2fdmpH5euKFKZtEjlfcpY6sBlLFHuEGfhv4+8Nt 7tQ1zCT2OonbhL7CeLdioY9yJpidCfAYbvUYgrFscr0zMzaJ9Me3zM3gmt8HiMqyeGak au2BfRIDRcWDwcxXhws0vjbJlbtkVG8fGnwYglp8ihnRFsTzuLVhhEDmzL7K82P7MUSs HhVhuzOOz1baIYWoWvES1htmRdtcHjJnbN/KhjeP64WXww14YuF9qeDYD67co7VtcwCr voBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=pk6C9SrDQ3eeugkFD/p41tFZX2e6B2Jxpeux48HKyjk=; b=d52hDIZrzjx0upTaXrZPfZmUjEQ1GHCqTKUULhkrNrnHI28fdDSk4IPOWzYFtilyfM wl4lRshXf0EMn2jdWHW74EvozQQQpSeZG96+URe46Y0ncSggSsm9W+iWDfJY8qzYozD4 N4LFk0vPGHWANO0GOn31z8Lbbw0fbsFndx3nfRfyGkaG5OnPOfFqf67fyHhJxKmj9+vT MHoy4goR2O40rNFPgSqPoWBcvTxexF1kyt+7x6wH9/L5nc7QOEVxkp04mDtB5TqSdZgg bHlMakRm1e+BdmLISGAxnaG2SzKdUucqzc4/y9l0w+y4cM2tFFYBe7oOGbu+ETJkZMCH pSlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x3-20020a170902b40300b00161be2005a4si1986244plr.255.2022.05.18.02.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 02:29:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A8C826F6; Wed, 18 May 2022 02:21:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234117AbiERJUv (ORCPT + 99 others); Wed, 18 May 2022 05:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234081AbiERJUm (ORCPT ); Wed, 18 May 2022 05:20:42 -0400 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B8614A273; Wed, 18 May 2022 02:20:40 -0700 (PDT) Received: by mail-qv1-f50.google.com with SMTP id j3so1094183qvn.0; Wed, 18 May 2022 02:20:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pk6C9SrDQ3eeugkFD/p41tFZX2e6B2Jxpeux48HKyjk=; b=txygStwlYzljOucCJZDWHrYPe2S90mdB6G6H35gZk+ggu88Fm4ov4HY50BIBKX5tXj t5pfPyI1rs8vfhWp0MO5ujqQmHKKXGdNAcgRN97F86Fs2hX//0b+lcqw/P5ebeBMugXl +u9D3BXraVAuBllAQu/omkx1YnNqxvS+6IdOBfzmcqa3HoOMEXePT1IuqcTpP4e1v6Nm 5CZq8+GYu+cIhE+Nr9GZTV+h5bSyAxD81Cn2dEscpE0wLIx0BLU/aHSCrR1TlKCY+ypp hJlKwWqYofIGaXgUGvsui5rko9PZA9pXZwXfjaq9DkUmCy/9Uoj2wUXrtHS7sf7dt7ce f4og== X-Gm-Message-State: AOAM533EEShWSkZ12vJQWGGxoWjIbGEzeecZmm903i/VbIIgjSX6Xx2A RWW9mTzHDjo5lTVN3p9VosT1C+77Fx8MUA== X-Received: by 2002:a0c:b392:0:b0:461:e7fa:2c0f with SMTP id t18-20020a0cb392000000b00461e7fa2c0fmr2222224qve.114.1652865639862; Wed, 18 May 2022 02:20:39 -0700 (PDT) Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com. [209.85.219.173]) by smtp.gmail.com with ESMTPSA id c2-20020ae9ed02000000b006a04256022bsm1184189qkg.107.2022.05.18.02.20.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 May 2022 02:20:39 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id f16so2646417ybk.2; Wed, 18 May 2022 02:20:39 -0700 (PDT) X-Received: by 2002:a25:4289:0:b0:64d:746f:5311 with SMTP id p131-20020a254289000000b0064d746f5311mr16654046yba.89.1652865639143; Wed, 18 May 2022 02:20:39 -0700 (PDT) MIME-Version: 1.0 References: <20220518065639.2432213-1-gerg@linux-m68k.org> <20220518065639.2432213-4-gerg@linux-m68k.org> In-Reply-To: <20220518065639.2432213-4-gerg@linux-m68k.org> From: Geert Uytterhoeven Date: Wed, 18 May 2022 11:20:27 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] m68knommu: fix 68000 CPU link with no platform selected To: Greg Ungerer Cc: "Linux/m68k" , Linux Kernel Mailing List , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg. On Wed, May 18, 2022 at 8:56 AM Greg Ungerer wrote: > If building for a nommu m68k classic CPU and no platform (board) is > selected then the final link fails with: > > LD vmlinux.o > m68k-linux-ld: cannot find arch/m68k/kernel/head.o: No such file or directory > make: *** [Makefile:1158: vmlinux] Error 1 > > Not selecting a platform is ok, that is a generic 68000 system build. > All of the platform selections are for 68328 variants. > > The underlying problem is that the CPU config option (CONFIG_M68000) > ends up not being set, it is currently only selected by one of the > platform choices. > > Change CONFIG_M68000 so that it is always enabled for the nommu m68k > classic configuration. > > Signed-off-by: Greg Ungerer Thanks for your patch! > --- a/arch/m68k/Kconfig.cpu > +++ b/arch/m68k/Kconfig.cpu > @@ -37,7 +37,7 @@ endchoice > if M68KCLASSIC > > config M68000 > - bool > + def_bool y And then the selects can be removed, too, as the symbol is now always enabled? I'm wondering how to handle this when another nommu-m68k-classic platform shows up (again, cfr. the removed 68360 support) , that would need a different head.S? Of course that's something to be solved later... > depends on !MMU > select CPU_HAS_NO_BITFIELDS > select CPU_HAS_NO_CAS Note that mmu-m68k-classic (e.g. CONFIG_MMU=y + allnonfig) has the same problem. That config does need other fixes too. E.g. I have a local patch to make sure NR_IRQS is never zero, but never got to solve the missing head.o problem in an acceptable way. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds