The file you need to add it to is tools/build/user.settings or tools/build/site.settings. I am unsure of the precise syntax, but take a look at site.settings.accre and site.settings.piranha, which both include compiler flags in this manner. I’m going to guess something like this:
“appends” : {
“flags” : {
“compile” : [“enable-kernel=2.6.18”],
},
},
or something similar. Note “appends” probably already exists, so you’re putting stuff inside it.