* [PATCH] xen/build: Fix dependency for the MAP rule
@ 2022-04-14 16:23 Andrew Cooper
2022-04-14 17:49 ` Anthony PERARD
2022-04-14 18:35 ` [PATCH v2] " Andrew Cooper
0 siblings, 2 replies; 5+ messages in thread
From: Andrew Cooper @ 2022-04-14 16:23 UTC (permalink / raw)
To: Xen-devel
Cc: Andrew Cooper, Jan Beulich, Roger Pau Monné,
Wei Liu, Anthony PERARD
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Wei Liu <wl@xen.org>
CC: Anthony PERARD <anthony.perard@citrix.com>
---
xen/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/Makefile b/xen/Makefile
index dd05672ff42d..02a274f56dc0 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -599,7 +599,7 @@ cscope:
cscope -k -b -q
.PHONY: _MAP
-_MAP:
+_MAP: $(TARGET)-syms
$(NM) -n $(TARGET)-syms | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' > System.map
%.o %.i %.s: %.c tools_fixdep FORCE
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] xen/build: Fix dependency for the MAP rule
2022-04-14 16:23 [PATCH] xen/build: Fix dependency for the MAP rule Andrew Cooper
@ 2022-04-14 17:49 ` Anthony PERARD
2022-04-14 18:17 ` Andrew Cooper
2022-04-14 18:35 ` [PATCH v2] " Andrew Cooper
1 sibling, 1 reply; 5+ messages in thread
From: Anthony PERARD @ 2022-04-14 17:49 UTC (permalink / raw)
To: Andrew Cooper; +Cc: Xen-devel, Jan Beulich, Roger Pau Monné, Wei Liu
On Thu, Apr 14, 2022 at 05:23:48PM +0100, Andrew Cooper wrote:
> diff --git a/xen/Makefile b/xen/Makefile
> index dd05672ff42d..02a274f56dc0 100644
> --- a/xen/Makefile
> +++ b/xen/Makefile
> @@ -599,7 +599,7 @@ cscope:
> cscope -k -b -q
>
> .PHONY: _MAP
> -_MAP:
> +_MAP: $(TARGET)-syms
That's not going to work well as make isn't going to know how to build
$(TARGET)-syms. I guess you want to have $(TARGET) as prerequisite or
add somewhere "$(TARGET)-syms: $(TARGET)".
> $(NM) -n $(TARGET)-syms | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' > System.map
>
> %.o %.i %.s: %.c tools_fixdep FORCE
Thanks,
--
Anthony PERARD
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] xen/build: Fix dependency for the MAP rule
2022-04-14 17:49 ` Anthony PERARD
@ 2022-04-14 18:17 ` Andrew Cooper
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Cooper @ 2022-04-14 18:17 UTC (permalink / raw)
To: Anthony PERARD, Andrew Cooper
Cc: Xen-devel, Jan Beulich, Roger Pau Monné, Wei Liu
On 14/04/2022 18:49, Anthony PERARD wrote:
> On Thu, Apr 14, 2022 at 05:23:48PM +0100, Andrew Cooper wrote:
>> diff --git a/xen/Makefile b/xen/Makefile
>> index dd05672ff42d..02a274f56dc0 100644
>> --- a/xen/Makefile
>> +++ b/xen/Makefile
>> @@ -599,7 +599,7 @@ cscope:
>> cscope -k -b -q
>>
>> .PHONY: _MAP
>> -_MAP:
>> +_MAP: $(TARGET)-syms
> That's not going to work well as make isn't going to know how to build
> $(TARGET)-syms.
Huh... It appears to work for me, but it's parallel build so who knows.
> I guess you want to have $(TARGET) as prerequisite or
> add somewhere "$(TARGET)-syms: $(TARGET)".
That becomes cyclic with arch/*/Makefile which has:
$(TARGET): $(TARGET)-syms
The _install rule does make the implication that a dependency on
$(TARGET) builds $(TARGET)-syms so I guess that's good enough for _MAP too.
~Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] xen/build: Fix dependency for the MAP rule
2022-04-14 16:23 [PATCH] xen/build: Fix dependency for the MAP rule Andrew Cooper
2022-04-14 17:49 ` Anthony PERARD
@ 2022-04-14 18:35 ` Andrew Cooper
2022-04-20 10:06 ` Jan Beulich
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Cooper @ 2022-04-14 18:35 UTC (permalink / raw)
To: Xen-devel
Cc: Andrew Cooper, Jan Beulich, Roger Pau Monné,
Wei Liu, Anthony PERARD
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Wei Liu <wl@xen.org>
CC: Anthony PERARD <anthony.perard@citrix.com>
v2:
* Use $(TARGET) not $(TARGET)-syms
---
xen/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/Makefile b/xen/Makefile
index dd05672ff42d..3a4e3bdd0f95 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -599,7 +599,7 @@ cscope:
cscope -k -b -q
.PHONY: _MAP
-_MAP:
+_MAP: $(TARGET)
$(NM) -n $(TARGET)-syms | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' > System.map
%.o %.i %.s: %.c tools_fixdep FORCE
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] xen/build: Fix dependency for the MAP rule
2022-04-14 18:35 ` [PATCH v2] " Andrew Cooper
@ 2022-04-20 10:06 ` Jan Beulich
0 siblings, 0 replies; 5+ messages in thread
From: Jan Beulich @ 2022-04-20 10:06 UTC (permalink / raw)
To: Andrew Cooper; +Cc: Roger Pau Monné, Wei Liu, Anthony PERARD, Xen-devel
On 14.04.2022 20:35, Andrew Cooper wrote:
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Needless to say that the generated System.map may not represent reality
if xen.efi is what is in actual use.
Jan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-20 10:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-14 16:23 [PATCH] xen/build: Fix dependency for the MAP rule Andrew Cooper
2022-04-14 17:49 ` Anthony PERARD
2022-04-14 18:17 ` Andrew Cooper
2022-04-14 18:35 ` [PATCH v2] " Andrew Cooper
2022-04-20 10:06 ` Jan Beulich
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.