This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

quick rebuilt of system.img

Hi,

right now the release notes show this for rebuild of *.img to prepare the emmc files

cd ${MYDROID}
find out/target/product/${BOARD_TYPE} -name *.img -exec rm -f {} \;  
make

Is there a quick way to rebuild the system.img, assuming that the AFS was already build in a previous step? Right now the make runs for quite a long time. I was just looking for a way to accelerate this.

My next step is to just delete system.img in out/target/product/blaze_tablet and then run make and hopefully it will not do much time consuming rebuilding.

Thanks,

--Gunter

  • Hi Gunter,

    You can try that or if you want to avoid to flash the system.img because you only rebuilt some libs try adb sync, it will push the files that have change in your system folder for the platform you are building.

  • Hi Israel,

     

    removing and rebuilding system.img in the mydroid tree is now pretty quick. But I like your adb sync suggestion. Can you tell me which filesystem adb sync is pulling from, maybe via an example?

     

    Thanks,

    --Gunter

  • Gunter,

    It pulls from the filesystem of the target you have set, ie when in a terminal you export the variables with: source build/envsetup.sh; and then set the target: lunch blaze_tablet-userdebug you are setting everything adb is going to use to find the path to mydroid and to out/target/product/blaze_tablet/system, so you can use adb sync in that terminal to check for libraries that change when you are doing changes and recompile.