-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Do clear for device-intel-build"
This reverts commit c4ae9de.
- Loading branch information
Showing
29 changed files
with
3,661 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
#!/bin/sh | ||
|
||
# Copyright 2013 The Android Open Source Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
rm -f extract-lists.txt | ||
cat ../vendor_owner_info.txt | | ||
cut -d : -f 2 | | ||
sort -u | | ||
grep -v google | | ||
grep -v nodist | | ||
while read target_owner | ||
do | ||
mkdir -p $target_owner/staging | ||
cat > $target_owner/staging/device-partial.mk << EOF | ||
# Copyright 2013 The Android Open Source Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# NOTE: Automatically generated by files-by-owner.sh, do not edit | ||
# | ||
EOF | ||
echo -n "# " >> $target_owner/staging/device-partial.mk | ||
case $target_owner in | ||
intel) | ||
echo -n Intel >> $target_owner/staging/device-partial.mk | ||
;; | ||
esac | ||
echo " blob(s) necessary for Intel hardware" >> $target_owner/staging/device-partial.mk | ||
echo "PRODUCT_COPY_FILES := \\" >> $target_owner/staging/device-partial.mk | ||
|
||
echo " $target_owner)" >> extract-lists.txt | ||
echo " TO_EXTRACT=\"\\" >> extract-lists.txt | ||
|
||
|
||
cat ../proprietary-blobs.txt | | ||
grep ^/ | | ||
cut -b 2- | | ||
sort | | ||
while read file | ||
do | ||
|
||
auto_owner=$(grep ^$file: ../vendor_owner_info.txt | cut -d : -f 2) | ||
|
||
if test "$auto_owner" = "" | ||
then | ||
echo $file has no known owner | ||
fi | ||
|
||
if test "$auto_owner" = "$target_owner" -a $file != system/app/shutdownlistener.apk -a $file != system/app/TimeService.apk | ||
then | ||
if test $file != ZZZ | ||
then | ||
echo " vendor/$target_owner/asus_t100/proprietary/$(basename $file):$file:$target_owner \\" >> $target_owner/staging/device-partial.mk | ||
fi | ||
echo " $file \\" >> extract-lists.txt | ||
fi | ||
done | ||
|
||
echo >> $target_owner/staging/device-partial.mk | ||
|
||
echo " \"" >> extract-lists.txt | ||
echo " ;;" >> extract-lists.txt | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
#!/bin/bash -e | ||
|
||
# Copyright (C) 2010 The Android Open Source Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This script auto-generates the lists of proprietary blobs necessary to build | ||
# the Android Open-Source Project code for a variety of hardware targets. | ||
|
||
# It needs to be run from the root of a source tree that can repo sync, | ||
# runs builds with and without the vendor tree, and uses the difference | ||
# to generate the lists. | ||
|
||
# It can optionally upload the results to a Gerrit server for review. | ||
|
||
# WARNING: It destroys the source tree. Don't leave anything precious there. | ||
|
||
# Caveat: this script does many full builds (2 per device). It takes a while | ||
# to run. It's best # suited for overnight runs on multi-CPU machines | ||
# with a lot of RAM. | ||
|
||
# Syntax: device/common/generate-blob-lists.sh -f|--force [<server> <branch>] | ||
# | ||
# If the server and branch paramters are both present, the script will upload | ||
# new files (if there's been any change) to the mentioned Gerrit server, | ||
# in the specified branch. | ||
|
||
if test "$1" != "-f" -a "$1" != "--force" | ||
then | ||
echo This script must be run with the --force option | ||
exit 1 | ||
fi | ||
shift | ||
|
||
#repo sync -j32 -n | ||
#repo sync -j32 -n | ||
repo sync -j2 -l | ||
|
||
|
||
DEVICES=$(for i in device/intel/*/*/proprietary-blobs.txt ; do basename $(dirname $i) ; done) | ||
|
||
export LC_ALL=C | ||
|
||
ARCHIVEDIR=archive-$(date +%s) | ||
if test -d archive-ref | ||
then | ||
cp -R archive-ref $ARCHIVEDIR | ||
else | ||
mkdir $ARCHIVEDIR | ||
|
||
. build/envsetup.sh | ||
for DEVICENAME in $DEVICES | ||
do | ||
rm -rf out | ||
lunch $DEVICENAME-user | ||
make -j$(nproc) | ||
cat out/target/product/$DEVICENAME/installed-files.txt | | ||
cut -b 15- | | ||
sort -f > $ARCHIVEDIR/$DEVICENAME-with.txt | ||
done | ||
rm -rf vendor | ||
rm -rf hardware/qcom/gps | ||
for DEVICENAME in $DEVICES | ||
do | ||
rm -rf out | ||
lunch $DEVICENAME-user | ||
make -j$(nproc) | ||
cat out/target/product/$DEVICENAME/installed-files.txt | | ||
cut -b 15- | | ||
sort -f > $ARCHIVEDIR/$DEVICENAME-without.txt | ||
done | ||
fi | ||
|
||
for DEVICENAME in $DEVICES | ||
do | ||
MANUFACTURERNAME=intel/baytrail | ||
if test $(wc -l < $ARCHIVEDIR/$DEVICENAME-without.txt) != 0 -a $(wc -l < $ARCHIVEDIR/$DEVICENAME-with.txt) != 0 | ||
then | ||
( | ||
echo '# Copyright (C) 2011 The Android Open Source Project' | ||
echo '#' | ||
echo '# Licensed under the Apache License, Version 2.0 (the "License");' | ||
echo '# you may not use this file except in compliance with the License.' | ||
echo '# You may obtain a copy of the License at' | ||
echo '#' | ||
echo '# http://www.apache.org/licenses/LICENSE-2.0' | ||
echo '#' | ||
echo '# Unless required by applicable law or agreed to in writing, software' | ||
echo '# distributed under the License is distributed on an "AS IS" BASIS,' | ||
echo '# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.' | ||
echo '# See the License for the specific language governing permissions and' | ||
echo '# limitations under the License.' | ||
echo | ||
echo '# This file is generated by device/common/generate-blob-lists.sh - DO NOT EDIT' | ||
echo | ||
diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt | | ||
grep -v '\.odex$' | | ||
grep '>' | | ||
cut -b 3- | ||
) > $ARCHIVEDIR/$DEVICENAME-proprietary-blobs.txt | ||
cp $ARCHIVEDIR/$DEVICENAME-proprietary-blobs.txt device/$MANUFACTURERNAME/$DEVICENAME/proprietary-blobs.txt | ||
fi | ||
done | ||
|
||
rm -rf out/ | ||
|
Oops, something went wrong.