mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Levon <levon@movementarian.org>
To: marcelo@conectiva.com.br
Cc: linux-kernel@vger.kernel.org
Subject: [levon@movementarian.org: [PATCH] define KBUILD_BASENAME for .i .s]
Date: Sun, 3 Mar 2002 22:37:26 +0000	[thread overview]
Message-ID: <20020303223726.GA18544@compsoc.man.ac.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 54 bytes --]


Keith Owens has OK'd this minor cleanup

thanks
john

[-- Attachment #2: Type: message/rfc822, Size: 1185 bytes --]

From: John Levon <levon@movementarian.org>
To: kaos@ocs.com.au
Subject: [PATCH] define KBUILD_BASENAME for .i .s
Date: Sun, 3 Mar 2002 16:44:06 +0000
Message-ID: <20020303164406.GA10307@compsoc.man.ac.uk>


Probably this really doesn't matter but ...

against 2.4.18

regards
john

--- Rules.make.old      Thu Dec 31 18:05:20 1987
+++ Rules.make  Thu Dec 31 18:05:59 1987
@@ -50,10 +50,10 @@
 #
 
 %.s: %.c
-	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -S $< -o $@
+	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -S $< -o $@
 
 %.i: %.c
-	$(CPP) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) $< > $@
+	$(CPP) $(CFLAGS) $(EXTRA_CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) $< > $@
 
 %.o: %.c
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -c -o $@ $<


-- 
I am a complete moron for forgetting about endianness. May I be
forever marked as such.

                 reply	other threads:[~2002-03-03 22:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020303223726.GA18544@compsoc.man.ac.uk \
    --to=levon@movementarian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®