OSDN Git Service

Refactor the kernel update scripts.
authorChristopher Ferris <cferris@google.com>
Fri, 24 Feb 2017 20:26:48 +0000 (12:26 -0800)
committerChristopher Ferris <cferris@google.com>
Thu, 2 Mar 2017 23:21:42 +0000 (15:21 -0800)
commit15d3fef0da03a8548fd25ec75381e86eea5c6882
tree49c2f1e85deed4d19f4d4b42c62cb616d0fff18a
parent3f76dadf15aa8ca4f2eaf471a9a1f1c661b353c2
Refactor the kernel update scripts.

The previous versions of the scripts did a lot of redundant changes
and were hard to follow.

I rewrote most of update_all.py so that it's clear about what's going on.

I updated clean_header.py to change the cleanupFile function so that
there is no magic about where the destination file is going to wind up.
Now the caller specifies the final location.

I updated utils.py so that if you are trying to do an update in one
location, but your lunch target is from another location, it causes
an error.

Bug: 35726570

Change-Id: Ic5a44d90c2774a627eecde34c0c403bc925a497c
Test: Ran the updater and verified it works properly.
Test: Verified that doing an update in one tree to another tree
Test: fails.
libc/kernel/tools/clean_header.py
libc/kernel/tools/update_all.py
libc/kernel/tools/utils.py