Skip to contentSkip to conversation

Makefile: remove unused variables

PATCH In review Paolo Bonzini 3 participants 5 messages Aug 5, 2019 – Aug 6, 2019 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: remove unused variables

---
 Makefile | 4 ----
 1 file changed, 4 deletions(-)
Makefile +0 -4
index 73fbba0..7b0e2f4 100644
@@ -429,10 +429,6 @@ dummy := $(call unnest-vars,, \
                 io-obj-y \
                 common-obj-y \
                 common-obj-m \
-                ui-obj-y \
-                ui-obj-m \
-                audio-obj-y \
-                audio-obj-m \
                 trace-obj-y)
 
 include $(SRC_PATH)/tests/Makefile.include
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Paolo Bonzini
---
 Makefile | 4 ----
 1 file changed, 4 deletions(-)
Makefile +0 -0
index 73fbba0..7b0e2f4 100644

Makefile dummy := $(call unnest-vars,, \ · line 434

Quoted 10 lines
Makefile +0 -4
@@ -429,10 +429,6 @@ dummy := $(call unnest-vars,, \
                 io-obj-y \
                 common-obj-y \
                 common-obj-m \
-                ui-obj-y \
-                ui-obj-m \
-                audio-obj-y \
-                audio-obj-m \
                 trace-obj-y)
 
 include $(SRC_PATH)/tests/Makefile.include
#2 lore raw
Quoted 21 lines · Markus Armbruster
Quoted 19 lines · Paolo Bonzini
---
 Makefile | 4 ----
 1 file changed, 4 deletions(-)
Makefile +0 -4
index 73fbba0..7b0e2f4 100644
@@ -429,10 +429,6 @@ dummy := $(call unnest-vars,, \
                 io-obj-y \
                 common-obj-y \
                 common-obj-m \
-                ui-obj-y \
-                ui-obj-m \
-                audio-obj-y \
-                audio-obj-m \
                 trace-obj-y)
 
Quoted 3 lines

Makefile dummy := $(call unnest-vars,, \ · line 434

Quoted 1 line
Makefile +0 -0
 include $(SRC_PATH)/tests/Makefile.include

Hmm... the two go back to

commit 08a05b379ac56430cbb748882ff1b48dc9fe8729

Author: Gerd Hoffmann <[email protected]>
Date:   Tue Mar 6 08:40:49 2018 +0100

build: enable audio modules

Add audio/ to common-obj-m variable.

Also run both audio and ui variables through unnest-vars. This avoids sdl.mo (exists in both audio/ and ui/) name clashes.

Message-id: [email protected]

Gerd, anything funny going on here, or is Paolo's patch okay?

#3 lore raw
Quoted 37 lines · Markus Armbruster
Quoted 21 lines · Markus Armbruster
Quoted 19 lines · Paolo Bonzini
---
 Makefile | 4 ----
 1 file changed, 4 deletions(-)
Makefile +0 -4
index 73fbba0..7b0e2f4 100644
@@ -429,10 +429,6 @@ dummy := $(call unnest-vars,, \
                 io-obj-y \
                 common-obj-y \
                 common-obj-m \
-                ui-obj-y \
-                ui-obj-m \
-                audio-obj-y \
-                audio-obj-m \
                 trace-obj-y)
 
Quoted 3 lines

Makefile dummy := $(call unnest-vars,, \ · line 434

Quoted 1 line
Makefile +0 -0
 include $(SRC_PATH)/tests/Makefile.include

Hmm... the two go back to

commit 08a05b379ac56430cbb748882ff1b48dc9fe8729

Author: Gerd Hoffmann <[email protected]>
Date:   Tue Mar 6 08:40:49 2018 +0100

build: enable audio modules

Add audio/ to common-obj-m variable.

Quoted 7 lines

Also run both audio and ui variables through unnest-vars. This avoids sdl.mo (exists in both audio/ and ui/) name clashes.

Message-id: [email protected]

Gerd, anything funny going on here, or is Paolo's patch okay?

Well, the commit message pretty much says it. We have sdl.mo in both ui/ and audio/ (final module names are audio-sdl.so and ui-sdl.so).

This certainly was needed back when I added it. Possibly it can be removed now, I don't follow build system changes that closely. But it should be build-tested both ui/sdl and audio/sdl enabled.

cheers,
Gerd

#4 lore raw
Quoted 6 lines · Gerd Hoffmann

Well, the commit message pretty much says it. We have sdl.mo in both ui/ and audio/ (final module names are audio-sdl.so and ui-sdl.so).

This certainly was needed back when I added it. Possibly it can be removed now, I don't follow build system changes that closely. But it should be build-tested both ui/sdl and audio/sdl enabled.

Will do. However, audio-obj-y has not existed since commit b0b68fc671 ("build: move audio/ objects to nested Makefile.objs", 2012-06-07), and ui-obj-y since 8867aef02e ("build: move ui/ objects to nested Makefile.objs", 2012-06-07). audio-obj-m and ui-obj-m has never existed as far as I can tell.

My understanding is that the two are audio/sdl.mo and ui/sdl.mo, and even though the sdl.mo-* variables seem to conflict, they are rewritten to audio/sdl.mo-{cflags,libs,objs} and ui/sdl.mo-{cflags,libs,objs} when unnest-vars-recursive calls fix-paths.

Paolo