qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [PATCH] Makefile: add all-user/all-linux-user/all-sof


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-trivial] [PATCH] Makefile: add all-user/all-linux-user/all-softmmu meta-targets
Date: Tue, 25 Jul 2017 15:39:57 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 07/25/2017 06:49 AM, Paolo Bonzini wrote:
On 25/07/2017 08:11, Philippe Mathieu-Daudé wrote:
Useful to build a whole set at once.

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
  Makefile | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 5f18243d05..da899522e4 100644
--- a/Makefile
+++ b/Makefile
@@ -814,6 +814,11 @@ endif
  # Dependencies in Makefile.objs files come from our recursive subdir rules
  -include $(wildcard *.d tests/*.d)
+.PHONY: subdir-all-user subdir-all-linux-user subdir-all-softmmu
+subdir-all-user: $(patsubst %,subdir-%,$(filter %-user,$(TARGET_DIRS)))
+subdir-all-linux-user: $(patsubst %,subdir-%,$(filter 
%-linux-user,$(TARGET_DIRS)))
+subdir-all-softmmu: $(patsubst %,subdir-%,$(filter %-softmmu,$(TARGET_DIRS)))

I'm not sure why you need subdir-all-linux-user.  I think it's okay to

Indeed, subdir-all-user is enough.

add these, but please add "romsubdir-all" too.  This way "all" can use
"subdir-all-user subdir-all-softmmu romsubdir-all" and you can remove
"recurse-all".

Ok.


Paolo

  include $(SRC_PATH)/tests/docker/Makefile.include
.PHONY: help
@@ -827,7 +832,7 @@ help:
        @echo  ''
        @$(if $(TARGET_DIRS), \
                echo 'Architecture specific targets:'; \
-               $(foreach t, $(TARGET_DIRS), \
+               $(foreach t, $(TARGET_DIRS) all-user all-linux-user 
all-softmmu, \
                printf "  %-30s - Build for %s\\n" $(patsubst %,subdir-%,$(t)) 
$(t);) \
                echo '')
        @echo  'Cleaning targets:'





reply via email to

[Prev in Thread] Current Thread [Next in Thread]