Re: When does Makefile init the variables like KBUILD_OUTPUT

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

 



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?



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux