Skip to contentSkip to conversation

define KBUILD_BASENAME for .i .s]

PATCH New John Levon 1 participant 1 message Mar 3, 2002

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 define KBUILD_BASENAME for .i .s]

Keith Owens has OK'd this minor cleanup

thanks
john

Probably this really doesn't matter but ...

against 2.4.18

regards
john

Rules.make Thu Dec 31 18:05:59 1987 renamed from Rules.make.old Thu Dec 31 18:05:20 1987 +2 -2
@@ -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 $@ $<
Signature · 2 lines
I am a complete moron for forgetting about endianness. May I be
forever marked as such.