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=-2.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 B1011C433E0 for ; Thu, 28 Jan 2021 19:12:53 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 04AE164E32 for ; Thu, 28 Jan 2021 19:12:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 04AE164E32 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1l5CiO-0008LE-Ri; Thu, 28 Jan 2021 14:12:24 -0500 Received: from mail-vk1-xa34.google.com ([2607:f8b0:4864:20::a34]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1l5CiM-0008Ic-QP for kernelnewbies@kernelnewbies.org; Thu, 28 Jan 2021 14:12:22 -0500 Received: by mail-vk1-xa34.google.com with SMTP id n63so493595vkn.12 for ; Thu, 28 Jan 2021 11:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xB6pb20vp44rI6SuqelGpHrZQPT1ockW5Kl5Wap52SM=; b=cW4Z3a7tSa6k/23f/3oVp8N1J05bNbz0e2dRunHdlPB0Lv2DEx3R2ORVwIDrAZc8j0 vzynJT+6n02icBQb96taj7EJEZlJAli+beFolawSY9Hvpen757Z4PR3FuYNWnLD/KK/d J6nPNo+FJwiQ727tPAv+5SdPGI46QRnalFz/OYHnPb1GRNrHKX86k3iOPjOR67MhXW/5 6tloOzmXgXaVStt72cTuju+fnRebfYyHOhI8KX1KlMp7hBgurZyQpu/7sK4a93S4bnuM AVW9ThS5/UPj9H3ww1r+gUBRjgU/lc7fSomRvUbiauQg79+NlUHiMkrbsnMQKFU0zbFl NgNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xB6pb20vp44rI6SuqelGpHrZQPT1ockW5Kl5Wap52SM=; b=mR0Rc+YIF/56nqws33Ol/NF4a4wbaSr05ZLzUaP0hkBqtk9CstyWrV6R4c2Jf39cA7 +76m1hAw+3haL1N8iFgplGptrqLmCJ1eZCkwvQTqNcTV94jfMqAzImhQ07TU+1mqaRPX RrMhupyn96UoHSYkTb6geioJdDH9r9B5g6URG+OSUcZc0eVbizOJsbDKycZTeeX6ug8j VCXYgGE26WHySEfn5Cv1BZsCH/H9iz6Kv0iiPMnyoZMwuTh76o4Z2oa8E0PGvO9tgvW6 irUiAxfbDrAQoo+PhYMv+eUpXbdqsHTfzypV3/SzRrfHbQnmXI3XewTMX09KENBgAXWa 59yA== X-Gm-Message-State: AOAM532QcMSbwFQugWTlIUegargxpqqWACYK0en8mIj40p6E/MLzL7Y/ A9Yo2ABb1UMY5BlUEStu/YomrsFkas9MnyptRn7CR2LT X-Google-Smtp-Source: ABdhPJxfqhsYUN9v1jom6YWwo2E1jyVZSzBR2KCkBpSzoISivZs+yGpUy+cXQp2J7JqPQcmJS6VDEqlXd10uuFwsk5A= X-Received: by 2002:a1f:ab43:: with SMTP id u64mr791772vke.3.1611861140579; Thu, 28 Jan 2021 11:12:20 -0800 (PST) MIME-Version: 1.0 From: jim.cromie@gmail.com Date: Thu, 28 Jan 2021 12:11:54 -0700 Message-ID: Subject: '-D' 'KBUILD_MODSYM=main - like KBUILD_MODNAME, without the quotes ? To: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5000336011082888653==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============5000336011082888653== Content-Type: multipart/alternative; boundary="000000000000b6278405b9faaae7" --000000000000b6278405b9faaae7 Content-Type: text/plain; charset="UTF-8" hi folks, In my hacking, Im finding this useful. it adds a version of KBUILD_MODNAME without the quotes --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -119,7 +119,7 @@ target-stem = $(basename $(patsubst $(obj)/%,%,$@)) # end up in (or would, if it gets compiled in) name-fix = $(call stringify,$(subst $(comma),_,$(subst -,_,$1))) basename_flags = -DKBUILD_BASENAME=$(call name-fix,$(basetarget)) -modname_flags = -DKBUILD_MODNAME=$(call name-fix,$(modname)) +modname_flags = -DKBUILD_MODNAME=$(call name-fix,$(modname)) -DKBUILD_MODSYM=$(modname) Im suspicious however, KBUILD_MODNAME has the quotes for a reason; probably robustness at some level. Afterall, __stringify() could add the quotes for cases where it was needed. If there was an __unstringify_token( ) I could remove this Makefile hack, is such a construct possible ? --000000000000b6278405b9faaae7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hi folks,

In my hacking, Im = finding this useful.=C2=A0=C2=A0
it adds a version of KBUILD_MODN= AME without the quotes

--- a/scripts/Makefile.lib<= br>+++ b/scripts/Makefile.lib
@@ -119,7 +119,7 @@ target-stem =3D $(base= name $(patsubst $(obj)/%,%,$@))
=C2=A0# end up in (or would, if it gets = compiled in)
=C2=A0name-fix =3D $(call stringify,$(subst $(comma),_,$(su= bst -,_,$1)))
=C2=A0basename_flags =3D -DKBUILD_BASENAME=3D$(call name-f= ix,$(basetarget))
-modname_flags =C2=A0=3D -DKBUILD_MODNAME=3D$(call nam= e-fix,$(modname))
+modname_flags =C2=A0=3D -DKBUILD_MODNAME=3D$(call nam= e-fix,$(modname)) -DKBUILD_MODSYM=3D$(modname)


=
Im suspicious however,=C2=A0
KBUILD_MODNAME has the quotes f= or a reason;
probably robustness at some level.
Afteral= l, __stringify() could add the quotes for cases where it was needed.
<= div>
If there was an __unstringify_token( ) I could remove th= is Makefile hack,
is such a construct possible ?
--000000000000b6278405b9faaae7-- --===============5000336011082888653== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============5000336011082888653==--