Skip to contentSkip to conversation

rules.mak: Fix per object libs extraction

PATCH In review Fam Zheng 2 participants 3 messages Mar 14, 2014 – Mar 17, 2014

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 rules.mak: Fix per object libs extraction

Don't sort the extracted options, sort the objects.

---
 rules.mak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rules.mak +2 -2
index 9dda9f7..5c454d8 100644
@@ -23,8 +23,8 @@ QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
 QEMU_INCLUDES += -I$(<D) -I$(@D)
 
 maybe-add = $(filter-out $1, $2) $1
-extract-libs = $(strip $(sort $(foreach o,$1,$($o-libs)) \
-                  $(foreach o,$(call expand-objs,$1),$($o-libs))))
+extract-libs = $(strip $(sort $(foreach o,$1,$($o-libs))) \
+                  $(foreach o,$(call expand-objs,$1),$($o-libs)))
 expand-objs = $(strip $(sort $(filter %.o,$1)) \
                   $(foreach o,$(filter %.mo,$1),$($o-objs)) \
                   $(filter-out %.o %.mo,$1))
Signature · 1 line
1.9.0
Reviewed-by on v1 1/1
#1 lore raw

Il 14/03/2014 03:21, Fam Zheng ha scritto:

Quoted 14 lines

Don't sort the extracted options, sort the objects.

---
 rules.mak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rules.mak +0 -0
index 9dda9f7..5c454d8 100644

rules.mak QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d · line 30

Quoted 10 lines
rules.mak +2 -2
@@ -23,8 +23,8 @@ QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
 QEMU_INCLUDES += -I$(<D) -I$(@D)
 
 maybe-add = $(filter-out $1, $2) $1
-extract-libs = $(strip $(sort $(foreach o,$1,$($o-libs)) \
-                  $(foreach o,$(call expand-objs,$1),$($o-libs))))
+extract-libs = $(strip $(sort $(foreach o,$1,$($o-libs))) \
+                  $(foreach o,$(call expand-objs,$1),$($o-libs)))
 expand-objs = $(strip $(sort $(filter %.o,$1)) \
                   $(foreach o,$(filter %.mo,$1),$($o-objs)) \
                   $(filter-out %.o %.mo,$1))
Reviewed-by on v1 1/1
#2 lore raw
In reply to Fam Zheng

Il 14/03/2014 03:21, Fam Zheng ha scritto:

Quoted 14 lines

Don't sort the extracted options, sort the objects.

---
 rules.mak | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rules.mak +0 -0
index 9dda9f7..5c454d8 100644

rules.mak QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d · line 30

Quoted 10 lines
rules.mak +2 -2
@@ -23,8 +23,8 @@ QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(*D)/$(*F).d
 QEMU_INCLUDES += -I$(<D) -I$(@D)
 
 maybe-add = $(filter-out $1, $2) $1
-extract-libs = $(strip $(sort $(foreach o,$1,$($o-libs)) \
-                  $(foreach o,$(call expand-objs,$1),$($o-libs))))
+extract-libs = $(strip $(sort $(foreach o,$1,$($o-libs))) \
+                  $(foreach o,$(call expand-objs,$1),$($o-libs)))
 expand-objs = $(strip $(sort $(filter %.o,$1)) \
                   $(foreach o,$(filter %.mo,$1),$($o-objs)) \
                   $(filter-out %.o %.mo,$1))

Thanks, I'll send a pull request with this and the other patch.