summaryrefslogtreecommitdiffstats
path: root/fastboot/Android.mk
Commit message (Collapse)AuthorAgeFilesLines
* Switch fastboot to libziparchive.Elliott Hughes2015-03-181-2/+4
| | | | | Bug: 19765860 Change-Id: I83ea56e3b317893995d7106852b65584f99c0e64
* Prepare for switching to libziparchive.Elliott Hughes2015-03-181-2/+3
| | | | | Bug: 19765860 Change-Id: I58249d28fbc4975428d0dcac5107d1994c35676c
* kill libunzYabin Cui2014-12-091-1/+0
| | | | | Bug: 18571533 Change-Id: I4214f9236f80629152d969a6ee9fce489079cefa
* am 64f44b84: Merge "Remove obsolete reference to ddk; Fixes for -Werror" ↵Stephen Hines2014-10-011-2/+0
|\ | | | | | | | | | | | | into lmp-dev * commit '64f44b8444dabd69cf391d42e10d44e8e926a79d': Remove obsolete reference to ddk; Fixes for -Werror
| * Remove obsolete reference to ddk; Fixes for -WerrorAndrew Hsieh2014-09-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 14416410 1. The new mingw-w64 toolchain x86_64-w64-mingw32-4.8 has ddk in x86_64-w64-mingw32/include/ddk 2. Add -Wno-error=cpp to suppress a warning that turns into error thanks to -Werror: Please include winsock2.h before windows.h 3. Cast GetLastError() return type DWORD to "int" 4. Include direct.h for _mkdir 5. Include stdint.h for uint8_t on Windows Change-Id: I4bec0587f6573692f08c760da6c98ae551b8b5eb
* | am 3a5f3db2: am c894ced1: Merge "Fix fastboot for Darwin."Tim Murray2014-07-251-0/+1
|\ \ | |/ |/| | | | | * commit '3a5f3db2aa5324518eb71c69cd1fb3e2125cbd43': Fix fastboot for Darwin.
| * Fix fastboot for Darwin.Tim Murray2014-07-241-0/+1
| | | | | | | | | | | | bug 16172793 Change-Id: Ib58446effc13a6e465d176da141b025d36841b8f
* | Merge "fastboot: Allow searching for needed dynamic libs in '.' (F2FS)"JP Abgrall2014-06-191-1/+1
|\ \
| * | fastboot: Allow searching for needed dynamic libs in '.' (F2FS)JP Abgrall2014-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the default rpath includes $ORIGIN/../lib So we throw in '.' which should help distributions of fastboot. readelf -d $(which fastboot)|grep RPATH 0x0000000f (RPATH) Library rpath: [$ORIGIN/../lib:.] Bug: 15731906 Change-Id: I2f4345d178e5b3c87f6f159faf105ae30f3b52eb Signed-off-by: JP Abgrall <jpa@google.com>
* | | Store libf2fs_fmt_host_dyn on the build server.Ying Wang2014-06-191-2/+6
|/ / | | | | | | | | | | | | It will be dynamically loaded by fastboot. Bug: 15731906 Change-Id: Iff6f2b745b4ffd2c5fe343160b3efb8dcd5702fa
* | fastboot: correctly set dependency on f2fs dynamic libJP Abgrall2014-06-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the past it would incorrectly also link against the dlopen()'d lib. Now it clearly does not care about it. ldd $(which fastboot) linux-gate.so.1 => (0xf7735000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf76d9000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf75f4000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf75c7000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf75a9000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf73ff000) /lib/ld-linux.so.2 (0xf7736000) Bug: 15717498 Change-Id: I5465e97a445b17f5493a1f590e181ef98a382451 Signed-off-by: JP Abgrall <jpa@google.com>
* | Only try and use f2fs on linux.Torne (Richard Coles)2014-06-181-1/+1
| | | | | | | | | | | | | | F2FS was already disabled on windows, but the library doesn't build for mac either, so only try and use it on Linux hosts. Change-Id: I8bacfa4c01c9ee13123aef6d05d17b3f9094c765
* | fastboot: fix windows sdk build (don't do f2fs dyn load on windows)JP Abgrall2014-06-171-7/+11
| | | | | | | | | | | | | | | | Only do f2fs dynamic loading on linux. Adds a stub for windows builds. Change-Id: I7bbaaa1b2ff5992709d904b7ace40ae263d32922 Signed-off-by: JP Abgrall <jpa@google.com>
* | F2FS support for fastboot format and fsmgrJP Abgrall2014-06-171-2/+9
|/ | | | | | | | | | | | | - Enables fsck.f2fs for partitions with type F2FS. - Adds support for f2fs as format fs-type. - f2fs is optional and support is dlopen()d when needed. Needs changes in system/extras/f2fs_utils external/f2fs-tools Change-Id: I8d141a0d4d14df9fe84d3b131484e9696fcd8870 Signed-off-by: JP Abgrall <jpa@google.com>
* fastboot: turn on -WerrorMark Salyzyn2014-05-141-1/+2
| | | | | | | | | - Deal with a missing initializer issue - Deal with some -Wunused issues - Deal with some signed/unsigned issues - switch to usleep from sleep to facilitate win_sdk compile Change-Id: I64e32a5b0782aeed9582f489e866173c4df1afbf
* fastboot: allow format on devices with small buffersDmitry Grinberg2014-05-061-1/+1
| | | | | | | | | | Formatting large partitions on devices with small transfer buffers did not work before since format used a strange path through the code to send data. It now uses the normal path. Also cleaned up a bit. FS code now lives in a separate file and the custom path for format is gone. Change-Id: If4e01cabc2e250b7c02ca7ce8c268e51d49e1529
* Fix a bunch of small system/core bugs.Elliott Hughes2013-10-291-0/+1
| | | | | | | | | | | | | | | | | | | | | Missing frees in: adb/file_sync_client.c fastboot/fastboot.c libsparse/output_file.c Missing closedirs in: adb/file_sync_service.c cpio/mkbootfs.c libcutils/dir_hash.c Potential buffer overrun in: gpttool/gpttool.c Incorrect NULL check in: libsparse/backed_block.c Bug: https://code.google.com/p/android/issues/detail?id=61564 Change-Id: If97838a9e73a77aef7f416c31c237ce1fca4ce21
* Wait for device to disappear after reboot-bootloader.Mark Wachsler2013-10-171-2/+2
| | | | | | | | | | | | | | | | (Linux only for now) With fastboot reading serial numbers from sysfs, it had become possible for a fastboot command issued immediately after rebooting the bootloader to fail, because sysfs still thought the device was online. To prevent this, after reboot-bootloader we wait for the device to disconnect. Also made usb_read and usb_write fail immediately if the descriptor has been closed; this prevents an incorrect error message ("Bad file descriptor") when errors from fb_getvar are ignored (e.g., by fb_format_supported). Also removed unused fd param from filter_usb_device, and simplified logic in usb_write by using do/while instead of a special case for len == 0. Change-Id: I799b857eab411fd8ad25f5777fc61c685152ea86
* resolved conflicts for merge of 20f5daa8 to masterKenny Root2012-10-161-2/+0
|\ | | | | | | Change-Id: Ie3e67696d265a56dfa4d089c777506f27783a9a6
| * resolved conflicts for merge of 44f4f8a4 to jb-mr1-dev-plus-aospKenny Root2012-10-161-2/+0
| |\ | | | | | | | | | Change-Id: I66988d8e87a8110ca9ab3da19870b80bbaf06eba
| | * Remove HAVE_SELINUX guardsKenny Root2012-10-161-2/+0
| | | | | | | | | | | | Change-Id: Idef0a784a1d237257ff4135bb1df62ff8a67ded3
* | | Host builds: add fastboot and adbKenny Root2012-09-261-0/+1
|/ / | | | | | | | | | | | | Add fastboot and adb host utilities to debug builds for debugging and development purposes. Change-Id: If77699a27497b8641998930f14d4ee418b856080
* | Dist fastboot and adb for the sdk build.Ying Wang2012-09-051-1/+1
|/ | | | | | | So they can be downloaded from the build page. Bug: 7109694 Change-Id: Ibc60d0acbc5d2445c01010fd0bd4654a240b0a88
* Support for multiple modules with the same name is going away.Joe Onorato2012-08-151-1/+4
| | | | Change-Id: I5006b467978071f9107babe532efa71d05061580
* libext4_utils on host is now called libext4_utils_host so there is no name ↵Joe Onorato2012-08-151-1/+7
| | | | | | conflict Change-Id: Ibc7923676925ed6942b3f672ee764cfaa98ee96e
* fastboot: add support for auto-resparsing large filesColin Cross2012-07-091-1/+1
| | | | | | | | | | | | | | | Add support to fastboot for automatically using libsparse to break large files, whether they are in sparse or normal format, into multiple sparse files that can each fit into the target's memory. Allows flashing images that are larger than the size of the available memory on the target. By default, any file over 512MB will be sparsed into 512MB chunks. The limit can be modified with the -m argument, or sparsing can be forced with -S or avoided with -N. If -m is not specified, the target can override the default by implementing getvar:max-download-size Change-Id: I6c59381c3d24475c4f2587ea877200b96971cbd7
* Tweak makefile to let SELinux buildKenny Root2012-04-081-0/+6
| | | | | | fastboot now needs SELinux support when not on Windows. Change-Id: Ib32404ef5c9a1a183d7ae319cc94eaf7f12620d9
* Implement 'fastboot format' commandAnatol Pomazau2012-02-171-3/+4
| | | | | | | | | | | | | | | | | | Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: I8529bc3485739487f0d91312f7c0ab1a6e5d8b44
* Revert "Implement 'fastboot format' command"Mike Lockwood2012-02-131-4/+3
| | | | | | until Windows support is done This reverts commit 452e11885afb53d59b2aa38b15e3be41c568d1e6.
* Implement 'fastboot format' commandAnatol Pomazau2012-02-111-3/+4
| | | | | | | | | | | | | | | | | | Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: Ifa42deaa66c3cb96ff786a73c3fadad92658f395
* Revert "Implement 'fastboot format' command"Anatol Pomazau2012-02-031-4/+3
| | | This reverts commit 230d160a718333651f7ca1557404f96682795b37
* Implement 'fastboot format' commandAnatol Pomazau2012-02-031-3/+4
| | | | | | | | | | | | | | | | | | Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: I8529bc1dc64237f1f0d91312f7c0ab1a6e5d8b44
* Revert "Implement 'fastboot format' command"Anatol Pomazau2012-02-031-4/+3
| | | This reverts commit 049dff53ef368bd84d0bddcb4c91f408774949c1
* Implement 'fastboot format' commandAnatol Pomazau2012-01-251-3/+4
| | | | | | | | | | | | | | | | | | Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: I8529bc1dc64698f1f0d91312f7c0ab1a6e5d8b44
* dist for dist_filesYing Wang2010-12-091-1/+1
| | | | Change-Id: I665572a2212f1239b02b7816e37ada210afbdb48
* Fix adb, fastboot to compile in Windows SDK under Linux.Raphael2010-04-131-2/+9
| | | | Change-Id: I3d0e4cabd65d9de17036901a22ec3277a6d58e64
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+57
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-57/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+1
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+57