| def krn_config(kinfo): |
def krn_config(kinfo): |
| """method to fetch and place config file for running kernel build""" |
"""method to fetch and place config file for running kernel build""" |
| |
|
| if kinfo["config"]==1: |
if kinfo["configpath"]: |
| |
log("using config file %s" % kinfo["configpath"],kinfo) |
| |
myconfigfile="%s/%s" % (kinfo["workdir"],kinfo["configpath"]) |
| |
|
| |
log("copying config file to %s/.config" % kinfo["workdir"],kinfo) |
| |
copy(verifyfile(myconfigfile,kinfo),"%s/.config" % kinfo["workdir"]) |
| |
|
| |
elif kinfo["config"]==1: |
| log("fetching config file",kinfo) |
log("fetching config file",kinfo) |
| myconfigfile="%s/%s.config" % (configdir,kinfo["name"]) |
myconfigfile="%s/%s.config" % (configdir,kinfo["name"]) |
| |
|