diff options
Diffstat (limited to 'scripts/build-all.py')
| -rwxr-xr-x | scripts/build-all.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/build-all.py b/scripts/build-all.py index 80430e8883d..511527076dd 100755 --- a/scripts/build-all.py +++ b/scripts/build-all.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -# Copyright (c) 2009, The Linux Foundation. All rights reserved. +# Copyright (c) 2009-2011, The Linux Foundation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -137,6 +137,7 @@ def build(target): os.mkdir(dest_dir) defconfig = 'arch/arm/configs/%s_defconfig' % target dotconfig = '%s/.config' % dest_dir + savedefconfig = '%s/defconfig' % dest_dir shutil.copyfile(defconfig, dotconfig) devnull = open('/dev/null', 'r') @@ -159,7 +160,11 @@ def build(target): # Copy the defconfig back. if all_options.configs or all_options.updateconfigs: - shutil.copyfile(dotconfig, defconfig) + devnull = open('/dev/null', 'r') + subprocess.check_call(['make', 'O=%s' % dest_dir, + 'savedefconfig'], env=make_env, stdin=devnull) + devnull.close() + shutil.copyfile(savedefconfig, defconfig) def build_many(allconf, targets): print "Building %d target(s)" % len(targets) |
