[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Makefile: Fix per-object variables for Makefile.tar
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH] Makefile: Fix per-object variables for Makefile.target |
Date: |
Tue, 29 Apr 2014 11:29:17 +0800 |
The compiling is done in a subdir, so the extraction of per-object libs
and cflags are referencing objects with ../ prefixed. So prefix the
per-object variables "foo.o-cflags" and "foo.o-libs" to
"../foo.o-cflags" and "../foo.o-libs".
Signed-off-by: Fam Zheng <address@hidden>
---
Makefile.target | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index ba12340..3a30aad 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -146,11 +146,12 @@ obj-y-save := $(obj-y)
block-obj-y :=
common-obj-y :=
include $(SRC_PATH)/Makefile.objs
-dummy := $(call unnest-vars,.., \
- block-obj-y \
- block-obj-m \
- common-obj-y \
- common-obj-m)
+vars := block-obj-y \
+ block-obj-m \
+ common-obj-y \
+ common-obj-m
+dummy := $(foreach v,$(vars),$(call fix-obj-vars,$v,../))
+dummy := $(call unnest-vars,.., $(vars))
# Now restore obj-y
obj-y := $(obj-y-save)
--
1.9.2
- [Qemu-devel] [PATCH] Makefile: Fix per-object variables for Makefile.target,
Fam Zheng <=