Skip to contentSkip to conversation

local.conf confusion

DISCUSSION Greg Wilson-Lindberg 2 participants 3 messages Feb 20, 2019

lore
Share & tools
lore
#0 lore raw

Hello list,

I've run into a confusion that should be simple. I've got a build based on sumo, at the bottom of my local.conf file is the line:

include conf/distro/include/${MACHINE}.pre.inc

This should be straight forward, just find the conf/distro/include directory and all of the *.pre.inc files should be there. I just searched all of the sources directory for  '*.pre.inc' and I get nothing. I'm building for a raspberry pi3, so I would expect at least 'raspberry*.inc', still nothing. I'm not getting an error for bitbake not being able to find the file.

So where do I find the machine include files?

Regards,
Greg Wilson-Lindberg

#1 lore raw

Greg,

I am not entirely sure why you are including a machine configuration include file into your conf/local.conf file.

However, the "include" directive is optional include and hence if the file is not found Bitbake will not raise an error and terminate. If you need that behavior use "require" instead.

Machine configuration files do commonly use includes for shared configuration. You typically find them where the machine configuration files are: conf/machine or in a subdirectory there. The directory conf/machine is commonly found in BSP layers such as meta-raspberrypi which you are probably using as you are building for RPi.

:rjs

Quoted 13 lines · Greg Wilson-Lindberg

Hello list,

I've run into a confusion that should be simple. I've got a build based on sumo, at the bottom of my local.conf file is the line:

include conf/distro/include/${MACHINE}.pre.inc

This should be straight forward, just find the conf/distro/include directory and all of the *.pre.inc files should be there. I just searched all of the sources directory for  '*.pre.inc' and I get nothing. I'm building for a raspberry pi3, so I would expect at least 'raspberry*.inc', still nothing. I'm not getting an error for bitbake not being able to find the file.

So where do I find the machine include files?

Regards,
Greg Wilson-Lindberg

#2 lore raw
In reply to Greg Wilson-Lindberg

Well, I'm feeling bad, the Yocto system that I'm using is from Qt for their Boot2Qt builds. It seems that the include is pointing their private dir tree.

Sorry for bothering the list with this noise.

Regards,

Greg Wilson-Lindberg

Quoted 24 lines

-----Original Message-----
From: Greg Wilson-Lindberg
Sent: Wednesday, February 20, 2019 10:16 AM
To: [email protected]
Subject: local.conf confusion

Hello list,

I've run into a confusion that should be simple. I've got a build based on sumo, at the bottom of my local.conf file is the line:

include conf/distro/include/${MACHINE}.pre.inc

This should be straight forward, just find the conf/distro/include directory and all of the *.pre.inc files should be there. I just searched all of the sources directory for  '*.pre.inc' and I get nothing. I'm building for a raspberry pi3, so I would expect at least 'raspberry*.inc', still nothing. I'm not getting an error for bitbake not being able to find the file.

So where do I find the machine include files?

Regards,
Greg Wilson-Lindberg