How to build fastboot for windows from Android N

820 views
Skip to first unread message

Xiaofeng Lei

unread,
Sep 14, 2016, 5:29:25 PM9/14/16
to Android Building
Hi all,

Recently we moved to Android N from M, and I'm working on poring some customized features to fastboot project. When I'm trying to build fastboot utility for Windows with the command "make -j8 fastboot USE_MINGW=1", it still generates the binary for Linux:

Starting build with ninja
ninja: Entering directory `.'
[100% 17/17] Install: out/host/linux-x86/bin/fastboot

#### make completed successfully (30 seconds) ####

Does anyone know how to generate "fastboot" utility?

Thanks,
Stanley

Colin Cross

unread,
Sep 14, 2016, 5:33:59 PM9/14/16
to android-...@googlegroups.com
Windows builds are now integrated with the linux build, make fastboot
should build both the linux and windows versions, and USE_MINGW=1 is
unnecessary.
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-buildi...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Dan Willemsen

unread,
Sep 14, 2016, 5:34:16 PM9/14/16
to Android Building
You don't need to use USE_MINGW anymore, the build system understands how to do host cross-compiles natively now. Just doing 'mma' in system/core/fastboot will build both the linux and windows versions. You could also use:

   m -j8 host_cross_fastboot

As the most similar command to what you were running.

- Dan

--

Xiaofeng Lei

unread,
Sep 14, 2016, 7:17:22 PM9/14/16
to Android Building
Thanks Colin & Dan.

The default command "make -j8 fastboot" can't build out fastboot for windows, but the two commands from Dan are working well.

Thanks,
Xiaofeng
Reply all
Reply to author
Forward
0 new messages