adding pre-check scripts
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.
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 && makeBut 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