Linux: Fix paths in binary distrib make files that caused build errors on Debian.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1237 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-04-23 18:41:31 +00:00
parent 6a50db3e49
commit c1e96f6193
1 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,7 @@ def create_make_projects():
# Restore the original Makefile # Restore the original Makefile
move_file(makefile_tmp, makefile, options.quiet) move_file(makefile_tmp, makefile, options.quiet)
# Fix the output directory path in Makefile all .mk files. # Fix the output directory path in Makefile and all .mk files.
find = os.path.relpath(output_dir, src_dir) find = os.path.relpath(output_dir, src_dir)
files = [os.path.join(output_dir, 'Makefile')] files = [os.path.join(output_dir, 'Makefile')]
for file in get_files(os.path.join(output_dir, '*.mk')): for file in get_files(os.path.join(output_dir, '*.mk')):
@ -241,6 +241,7 @@ def create_make_projects():
for file in files: for file in files:
data = read_file(file) data = read_file(file)
data = data.replace(find, '.') data = data.replace(find, '.')
data = data.replace('/./', '/')
if os.path.basename(file) == 'Makefile': if os.path.basename(file) == 'Makefile':
# remove the quiet_cmd_regen_makefile section # remove the quiet_cmd_regen_makefile section
pos = str.find(data, 'quiet_cmd_regen_makefile') pos = str.find(data, 'quiet_cmd_regen_makefile')