のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

B2G/device/samsung/download-blobs.shの内容

$cd B2G/device/samsung/maguro
$ cat download-blobs.sh 
#!/bin/bash

# Copyright (C) 2012 Mozilla Foundation
#
# 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.

EXTRACT_RC="$PWD/extract.rc"

install_blobs() {
    mkdir -p download-$1 &&
    (cd download-$1 && shasum -p -c $3) ||
    for BLOB in $2 ; do
        rm -f download-$1/$BLOB &&
        curl https://dl.google.com/dl/android/aosp/$BLOB -o download-$1/$BLOB ||
        exit -1
    done &&
    (cd download-$1 && shasum -p -c $3) &&
    for BLOB in $2 ; do
        tar xvfz download-$1/$BLOB -C download-$1 ||
        exit -1
    done &&
    for BLOB_SH in download-$1/extract-*.sh ; do
        BASH_ENV="$EXTRACT_RC" bash $BLOB_SH
    done
}

MAGURO_BLOBS="broadcom-maguro-imm76d-4ee51a8d.tgz
              imgtec-maguro-imm76d-0f59ea74.tgz
              samsung-maguro-imm76d-d16591cf.tgz"

CSUM_LIST="$PWD/blob-shasums"

cd ../../.. &&
install_blobs galaxy-nexus "$MAGURO_BLOBS" "$CSUM_LIST"
$ cd B2G/device/samsung/maguro
$ ./download-blobs.sh 

broadcom-maguro-imm76d-4ee51a8d.tgz: OK
imgtec-maguro-imm76d-0f59ea74.tgz: OK
samsung-maguro-imm76d-d16591cf.tgz: OK
broadcom-maguro-imm76d-4ee51a8d.tgz: OK
imgtec-maguro-imm76d-0f59ea74.tgz: OK
samsung-maguro-imm76d-d16591cf.tgz: OK
extract-broadcom-maguro.sh
extract-imgtec-maguro.sh
extract-samsung-maguro.sh

The license for this software will now be displayed.
You must agree to this license before using this software.

Press Enter to view the license

Type "I ACCEPT" if you agree to the terms of the license: 
vendor/
vendor/broadcom/
vendor/broadcom/maguro/
vendor/broadcom/maguro/BoardConfigMaguro.mk
vendor/broadcom/maguro/proprietary/
vendor/broadcom/maguro/proprietary/bcm4330.hcd
vendor/broadcom/maguro/device-maguro.mk
vendor/samsung/
vendor/samsung/maguro/
vendor/samsung/maguro/BoardConfigVendor.mk
vendor/samsung/maguro/device-vendor.mk

Files extracted successfully.

The license for this software will now be displayed.
You must agree to this license before using this software.

Press Enter to view the license

Type "I ACCEPT" if you agree to the terms of the license: 
vendor/
vendor/imgtec/
vendor/imgtec/maguro/
vendor/imgtec/maguro/BoardConfigMaguro.mk
vendor/imgtec/maguro/proprietary/
vendor/imgtec/maguro/proprietary/libsrv_init.so
vendor/imgtec/maguro/proprietary/gralloc.omap4.so
vendor/imgtec/maguro/proprietary/libsrv_um.so
vendor/imgtec/maguro/proprietary/libIMGegl.so
vendor/imgtec/maguro/proprietary/libEGL_POWERVR_SGX540_120.so
vendor/imgtec/maguro/proprietary/libGLESv2_POWERVR_SGX540_120.so
vendor/imgtec/maguro/proprietary/pvrsrvinit
vendor/imgtec/maguro/proprietary/libGLESv1_CM_POWERVR_SGX540_120.so
vendor/imgtec/maguro/proprietary/libusc.so
vendor/imgtec/maguro/proprietary/libPVRScopeServices.so
vendor/imgtec/maguro/proprietary/libpvr2d.so
vendor/imgtec/maguro/proprietary/libglslcompiler.so
vendor/imgtec/maguro/proprietary/libpvrANDROID_WSEGL.so
vendor/imgtec/maguro/device-maguro.mk
vendor/samsung/
vendor/samsung/maguro/
vendor/samsung/maguro/BoardConfigVendor.mk
vendor/samsung/maguro/device-vendor.mk

Files extracted successfully.

The license for this software will now be displayed.
You must agree to this license before using this software.

Press Enter to view the license

Type "I ACCEPT" if you agree to the terms of the license: 
vendor/
vendor/samsung/
vendor/samsung/maguro/
vendor/samsung/maguro/BoardConfigMaguro.mk
vendor/samsung/maguro/proprietary/
vendor/samsung/maguro/proprietary/libsec-ril.so
vendor/samsung/maguro/proprietary/libsecril-client.so
vendor/samsung/maguro/proprietary/fRom
vendor/samsung/maguro/BoardConfigVendor.mk
vendor/samsung/maguro/device-maguro.mk
vendor/samsung/maguro/device-vendor.mk

Files extracted successfully.