[Glass Development] thierryg35:
Rebuild aosp firmware from scratch

Hi thanks for the hack.

Anyway, i have tried to rebuild it by my own using the following way

(as new users cannot publish url on their post i have avoid them )

$ export ANDROIDMW="$PWD"

$ mkdir -p ${ANDROIDMW}

$ cd ${ANDROIDMW}

$ export NBCORE=`getconf _NPROCESSORS_CONF`

$ repo init -b aosp-5.1 -u url

by getting OMAP4-AOSP/android.git from github.com

$ repo sync -j${NBCORE}

$ export CCACHE_DIR=${ANDROIDMW}/.ccache

$ export USE_CCACHE=1

$ mkdir -p ${CCACHE_DIR}

$ prebuilts/misc/linux-x86/ccache/ccache -M 25G

Set cache size limit to 25.0 Gbytes

$ mkdir -p device/glass/glass-1/ && cd device/glass/glass-1/

$ git clone -b android-5.1.1_r37 url

by cloning justindriggers/android_device_glass_glass-1.git from github.com

$ cd ../../../

$ mkdir -p kernel/glass/glass-1/ && cd kernel/glass/glass-1/

$ git clone -b glass-omap-xrr02 url

by getting kernel/omap.git from android.googlesource.com

$ cd ../../../

$ source ./build/envsetup.sh

including device/generic/mini-emulator-arm64/vendorsetup.sh

including device/generic/mini-emulator-x86/vendorsetup.sh

including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh

including device/generic/mini-emulator-mips/vendorsetup.sh

including device/generic/mini-emulator-x86_64/vendorsetup.sh

including device/glass/glass-1/vendorsetup.sh

including device/samsung/espresso/vendorsetup.sh

including device/samsung/espresso3g/vendorsetup.sh

including sdk/bash_completion/adb.bash

$ lunch aosp_glass_1-userdebug

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=5.1.1

TARGET_PRODUCT=aosp_glass_1

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=cortex-a9

TARGET_2ND_ARCH=

TARGET_2ND_ARCH_VARIANT=

TARGET_2ND_CPU_VARIANT=

HOST_ARCH=x86_64

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.13.0-86-generic-x86_64-with-Ubuntu-14.04-trusty

HOST_BUILD_TYPE=release

BUILD_ID=LMY49M

OUT_DIR=/home/tgayet/_aosp-build-tests/google-glass-v/mw/out

$ export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" # The required version is 1.7.x

$ time make --jobs=$((NBCORE+1)) --load-average=${NBCORE}

Is it okay or maybe i missed something ? I didn't find any vendors within the /vendors directory

Then i have the following problem during my build process :

Import includes file: /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/patchoat_intermediates/import_includes

Export includes file: art/patchoat/Android.mk -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/patchoat_intermediates/export_includes

Import includes file: /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/ping_intermediates/import_includes

Export includes file: external/iputils/Android.mk -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/ping_intermediates/export_includes

Notice file: external/iputils/NOTICE -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/NOTICE_FILES/src//system/bin/ping.txt

Import includes file: /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/ping6_intermediates/import_includes

Export includes file: external/iputils/Android.mk -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/ping6_intermediates/export_includes

Notice file: external/iputils/NOTICE -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/NOTICE_FILES/src//system/bin/ping6.txt

Import includes file: /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/pngtest_intermediates/import_includes

Export includes file: external/libpng/Android.mk -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/pngtest_intermediates/export_includes

Notice file: external/libpng/NOTICE -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/NOTICE_FILES/src//system/bin/pngtest.txt

Import includes file: /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/pppd_intermediates/import_includes

Export includes file: external/ppp/pppd/Android.mk -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/pppd_intermediates/export_includes

Notice file: external/ppp/pppd/NOTICE -- /home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/NOTICE_FILES/src//system/bin/pppd.txt

make: *** No rule to make target `libsrv_init', needed by `/home/tgayet/_aosp-build-tests/google-glass-v/mw/out/target/product/glass-1/obj/EXECUTABLES/pvrsrvinit_intermediates/pvrsrvinit.o'. Stop.

make: *** Waiting for unfinished jobs....

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

#### make failed to build some targets (02:28 (mm:ss)) ####

Any idea of the origin of my problem ?

Thanks in advance of any reply.