Skip to contentSkip to conversation

Job ID Query

Buildroot Michael S. Zick 2 participants 3 messages Jan 6, 2012 – Jan 7, 2012

lore
Share & tools
lore
#0 lore raw

Group,

Is there a Make or BuildRoot variable that identifies the current make job id?

That is, when running more than 'make -j1' is there a way to identify which job is executing a script segment?

Mike

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Michael" == Michael S Zick <[email protected]> writes:

Michael> Group,
Michael> Is there a Make or BuildRoot variable that identifies Michael> the current make job id?

Not afaik. What is the use case for knowing this?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw
Quoted 8 lines · you
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Michael" == Michael S Zick <[email protected]> writes:

Michael> Group,
Michael> Is there a Make or BuildRoot variable that identifies Michael> the current make job id?

Not afaik. What is the use case for knowing this?

Package capture in the presence of multiple make jobs outputting to a common directory, typically, through a common part of the build system infrastructure.

It goes back to a suggestion of mine a few months back in answer to (one of many) posts about capturing the build output in distinct packages.

Have been working on parts of my own suggestion and think I can make it work, __IFF__ you run Buildroot -j1.

Which no one of sane mind, with a multicore machine will be interested in doing. ;-)

I did also consider dropping that restrictive phrase: "outputting to a common directory" -
But that I consider both too invasive, and against my declared intent to make it a transparent feature addition for the user.

Will continue giving my own suggestion more thought as time becomes available.

After all, (on a failure) make does have that: "Waiting for xyz jobs to complete" message, it does "know" how many jobs are running at the moment.

But I certainly don't want to propose patching make to expose the job identification if it doesn't already provide that.

Mike