* When does Makefile init the variables like KBUILD_OUTPUT
@ 2013-01-17 2:26 Bin Wang
2013-01-18 2:42 ` Bin Wang
0 siblings, 1 reply; 2+ messages in thread
From: Bin Wang @ 2013-01-17 2:26 UTC (permalink / raw)
To: kernelnewbies
Hi, all
The kernel Makefile init the variables like KBUILD_OUTPUT outside any
target's make process. But when I try to output the KBUILD_OUTPUT in the
target's make process, for example, the target "help", I find it is not
defined. I want to know when will it init? Thanks a lot.
Bin Wang
^ permalink raw reply [flat|nested] 2+ messages in thread
* When does Makefile init the variables like KBUILD_OUTPUT
2013-01-17 2:26 When does Makefile init the variables like KBUILD_OUTPUT Bin Wang
@ 2013-01-18 2:42 ` Bin Wang
0 siblings, 0 replies; 2+ messages in thread
From: Bin Wang @ 2013-01-18 2:42 UTC (permalink / raw)
To: kernelnewbies
On 2013/01/17/ 10:26, Bin Wang wrote:
> Hi, all
>
> The kernel Makefile init the variables like KBUILD_OUTPUT outside any
> target's make process. But when I try to output the KBUILD_OUTPUT in
> the target's make process, for example, the target "help", I find it
> is not defined. I want to know when will it init? Thanks a lot
However, when I just write a Makefile with this:
|ifeq ("$(origin O)", "command line")
KBUILD_OUTPUT := $(O)
endif
help:
@echo 'KBUILD_OUTPUT: ${KBUILD_OUTPUT}'
|
Then I run|make O=../build help|, I will see|KBUILD_OUTPUT: ../build|.
Is there anything special in kernel's Makefile?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-18 2:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-17 2:26 When does Makefile init the variables like KBUILD_OUTPUT Bin Wang
2013-01-18 2:42 ` Bin Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).