diff options
author | Andy Doan <andy.doan@linaro.org> | 2012-03-23 20:45:55 +0000 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2012-03-23 20:45:55 +0000 |
commit | e32babffd8940342b7647f4649a1cb19fbd35a4f (patch) | |
tree | d9e3b71b7ae003982bff455e21fd749cb6ecee4e | |
parent | 693af1a3c75cbd0bfe7b02205c0e437d885b4e6c (diff) |
require argument for repo project
Ensure the repo_project_info.py doesn't do anything automatic
for you. The caller should be explicit in what project it wants
-rwxr-xr-x | build-scripts/create-user-kernel-script | 2 | ||||
-rwxr-xr-x | build-scripts/repo_project_info.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build-scripts/create-user-kernel-script b/build-scripts/create-user-kernel-script index 4bbc1f3..4b1870c 100755 --- a/build-scripts/create-user-kernel-script +++ b/build-scripts/create-user-kernel-script @@ -48,7 +48,7 @@ EOF sync_commands() { -GITINFO=`PYTHONPATH=../.repo/repo ${BUILD_SCRIPT_ROOT}/repo_project_info.py -d ../` +GITINFO=`PYTHONPATH=../.repo/repo ${BUILD_SCRIPT_ROOT}/repo_project_info.py -d ../ -p kernel` GITURL=`echo $GITINFO | cut -d\| -f1` GITREV=`echo $GITINFO | cut -d\| -f2` cat <<EOF diff --git a/build-scripts/repo_project_info.py b/build-scripts/repo_project_info.py index 4cba27a..185db55 100755 --- a/build-scripts/repo_project_info.py +++ b/build-scripts/repo_project_info.py @@ -15,7 +15,7 @@ def main(): p = argparse.ArgumentParser(description='looks at repo manifest to find the git repo and commit/branch the given project is based on') p.add_argument('-d', dest='android_dir', required=True, help='The Android source directory for the build') - p.add_argument('-p', dest='proj_path', default="kernel", + p.add_argument('-p', dest='proj_path', required=True, help='The project path to search for') args = p.parse_args() |