Skip to content

daleharvey/b2g-installer

 
 

Repository files navigation

Installing B2G from an Add-On

Use BUILD_HOST_64bit=1 and/or BUILD_HOST_static=1 when building Android to get
either Linux 64 bits binaries or statically linked binaries. You can combine
both:
  $ ls -l linux/* linux64/*
  -rwxrwxr-x 1 alex alex 1437885 mai   25 12:09 linux64/make_ext4fs
  -rwxrwxr-x 1 alex alex  784426 mai   25 12:10 linux64/mkbootfs
  -rwxrwxr-x 1 alex alex  784346 mai   25 12:10 linux64/mkbootimg
  -rwxrwxr-x 1 alex alex 1437885 mai   25 12:12 linux/make_ext4fs
  -rwxrwxr-x 1 alex alex  784426 mai   25 12:12 linux/mkbootfs
  -rwxrwxr-x 1 alex alex  784346 mai   25 12:12 linux/mkbootimg

Then to save some space, you can strip and pack binaries.

Stripping:
  $ strip linux/* linux64/* && ls -l linux/* linux64/*
  -rwxrwxr-x 1 alex alex 844344 mai   25 12:13 linux64/make_ext4fs
  -rwxrwxr-x 1 alex alex 595528 mai   25 12:13 linux64/mkbootfs
  -rwxrwxr-x 1 alex alex 591024 mai   25 12:13 linux64/mkbootimg
  -rwxrwxr-x 1 alex alex 844344 mai   25 12:13 linux/make_ext4fs
  -rwxrwxr-x 1 alex alex 595528 mai   25 12:13 linux/mkbootfs
  -rwxrwxr-x 1 alex alex 591024 mai   25 12:13 linux/mkbootimg

Packing:
  $ upx linux/* linux64/* && ls -l linux/* linux64/*
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
  UPX 3.91        Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 30th 2013
  
          File size         Ratio      Format      Name
     --------------------   ------   -----------   -----------
      844344 ->    369564   43.77%  linux/ElfAMD   make_ext4fs                   
      595528 ->    246972   41.47%  linux/ElfAMD   mkbootfs                      
      591024 ->    245248   41.50%  linux/ElfAMD   mkbootimg                     
      844344 ->    369564   43.77%  linux/ElfAMD   make_ext4fs                   
      595528 ->    246972   41.47%  linux/ElfAMD   mkbootfs                      
      591024 ->    245248   41.50%  linux/ElfAMD   mkbootimg                     
     --------------------   ------   -----------   -----------
     4061792 ->   1723568   42.43%                 [ 6 files ]
  
  Packed 6 files.
  -rwxrwxr-x 1 alex alex 369564 mai   25 12:13 linux64/make_ext4fs
  -rwxrwxr-x 1 alex alex 246972 mai   25 12:13 linux64/mkbootfs
  -rwxrwxr-x 1 alex alex 245248 mai   25 12:13 linux64/mkbootimg
  -rwxrwxr-x 1 alex alex 369564 mai   25 12:13 linux/make_ext4fs
  -rwxrwxr-x 1 alex alex 246972 mai   25 12:13 linux/mkbootfs
  -rwxrwxr-x 1 alex alex 245248 mai   25 12:13 linux/mkbootimg

About

Tools to easily flash b2g on your android phone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.3%
  • CSS 4.3%
  • HTML 1.7%
  • Makefile 0.7%