* [Buildroot] using LINUX_DIR variable in BR
@ 2018-07-26 16:43 ravi chandran
2018-07-27 6:58 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: ravi chandran @ 2018-07-26 16:43 UTC (permalink / raw)
To: buildroot
Hi,
I am trying to include the path of the linux kernel(source located in
output/build/linux) in one of the makefile which is located outside the
linux directory.
KERNEL_DIR := $(LINUX_DIR).
But when i try to refer the KERNEL_DIR , it is empty.
Am i missing something here, can some one please help?
I used LINUX_DIR variable as it is mentioned in the BR doc
You may also reference (but you may *not* set!) those variables:
- LINUX_DIR contains the path to where the Linux kernel has been
extracted and built.
- LINUX_VERSION contains the version string as configured by the user.
- LINUX_VERSION_PROBED contains the real version string of the kernel,
retrieved with running make -C $(LINUX_DIR) kernelrelease
- KERNEL_ARCH contains the name of the current architecture, like arm,
mips?
Thanks,
Ravi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180726/83e6dd89/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] using LINUX_DIR variable in BR
2018-07-26 16:43 [Buildroot] using LINUX_DIR variable in BR ravi chandran
@ 2018-07-27 6:58 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-07-27 6:58 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 26 Jul 2018 22:13:10 +0530, ravi chandran wrote:
> I am trying to include the path of the linux kernel(source located in
> output/build/linux) in one of the makefile which is located outside the
> linux directory.
>
> KERNEL_DIR := $(LINUX_DIR).
Use the = operator and not the := operator.
See
https://ftp.gnu.org/old-gnu/Manuals/make-3.79.1/html_chapter/make_6.html#SEC59.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-27 6:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-26 16:43 [Buildroot] using LINUX_DIR variable in BR ravi chandran
2018-07-27 6:58 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox