All of lore.kernel.org
 help / color / mirror / Atom feed
* Run-time discovery of machine for image compatibility check
@ 2015-09-30 21:31 Eystein Måløy Stenberg
  2015-09-30 23:42 ` Daniel.
  2015-10-01  0:45 ` Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Eystein Måløy Stenberg @ 2015-09-30 21:31 UTC (permalink / raw)
  To: yocto

Hi,

Before starting a bitbake build, we input the MACHINE variable in
local.conf (e.g. MACHINE ?= beaglebone).

Is there a way to detect this variable at run-time? I.e. if I have built
the image, written it to a device, and I'm now logged in to it.

The reason I want this is that I'm working on a project to deploy image
updates (remotely), and I only want to write the image if the device is
compatible with the image file. So I need to know both the
hardware/board type and what the image target is (assuming this is the
MACHINE variable alone). Then I will only write the image if they are
the same.

Also, do you think using the MACHINE variable is the right approach for
this problem? Maybe someone has had a similar problem?

I'm new to Yocto, sorry if I'm asking something obvious (but I could not
find an answer in the docs).

Thanks!

--

Eystein


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-14  2:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-30 21:31 Run-time discovery of machine for image compatibility check Eystein Måløy Stenberg
2015-09-30 23:42 ` Daniel.
2015-10-01  0:45 ` Khem Raj
2015-11-11  2:28   ` Eystein Måløy Stenberg
2015-11-11 16:50     ` Smith, Virgil
2015-11-14  2:12       ` Eystein Måløy Stenberg

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.