On Sat, 16 Apr 2011 16:04:57 +0200, Francis Moreau said: > For example a user can do: > > $ make ARCH=arm CROSS_COMPILE=arm-linux- > > Then call my script and expect it to pass the same flags to make. Odd, don't ARCH and CROSS_COMPILE get saved in the .config? What *are* you trying to pass to kbuild that isn't either saved in the .config or deduced at build time (the cross-compile gets saved, stuff like "where is python?" is deduced). Is there a *real* problem you're hitting here, or is it merely theoretical?