Skip to contentSkip to conversation

adding pre-check scripts

kernel make system Victoria Muntean 2 participants 2 messages Feb 3, 2009

lore
Share & tools
lore
#0 lore raw

Is there provision in kernel makefiles to execute user-supplied pre/post add-on scripts ? (by following some convention)

I have script pre-checks.sh, it checks that .config defines certain parameters certain way. This is to prevent [build with] accidental redefine of certain important parameters.

One possibility is to

               ./my-pre-checks.sh && make

But this is not perfect.
It leaves of pre-checks optional easy to forget to run before build. Is it possible to make "make" execute my pre-script before build.

Thanks
V.M.

#1 lore raw
Quoted 7 lines · Victoria Muntean

Is there provision in kernel makefiles to execute user-supplied pre/post add-on scripts ? (by following some convention)

I have script pre-checks.sh, it checks that .config defines certain parameters certain way. This is to prevent [build with] accidental redefine of certain important parameters.

Quoted 5 lines

One possibility is to

               ./my-pre-checks.sh && make

But this is not perfect.
It leaves of pre-checks optional easy to forget to run before build. Is it possible to make "make" execute my pre-script before build.

Hi Victoria.

We do not have such functionality and unless thre is a broad interest I do not plan to add it either.
People usually include this in their 'kmake' scripts or whatever they name it.

Sam