Permalink
Commits on Mar 20, 2015
  1. Android: simplify BUSYBOX_CROSS_COMPILER_PREFIX

    cwhuang authored and bmc08gt committed Mar 19, 2015
    The original definition is complicated and won't work
    if not build from a lunch environment.
    
    The simplified definition should work for all archs
    in all situations.
    
    Change-Id: I961c46942b80e516bc89d41afe6e0fa28611e8de
    Signed-off-by: bmc08gt <brandon.mcansh@gmail.com>
Commits on Mar 7, 2015
  1. mount: address a couple crashes

    invisiblek authored and stargo committed Mar 5, 2015
    Change-Id: I3f978f40eb77d7679decf4a33b5c655ebb74d979
Commits on Feb 24, 2015
  1. mount: respect a user-specified fstype

    invisiblek authored and Gerrit Code Review committed Feb 12, 2015
    * Don't attempt to auto-detect the filesystem type using blkid
      if the user has specifically specified a type
    
    Change-Id: Icebbc3189fc59af9fe52e12b693f3b7ae516e2c7
Commits on Feb 19, 2015
  1. get_devname: fix a couple warnings

    tpruvot authored and invisiblek committed Feb 18, 2015
    Change-Id: I0dd2b109cbe015f30905169a573368716c2a73c5
Commits on Feb 13, 2015
  1. mount: use blkid to determine fstype

    invisiblek authored and intervigilium committed Feb 5, 2015
    * Add a function to volume_id that returns an fstype for a
      given device.
    
    * During mount, if the fstype is auto, or blkid disagrees
      with the given fstype, trust blkid's determination of the
      filesystem type and run with it.
    
    Change-Id: I357cbb5d255a30a27152a06de5328b2ef14553f9
Commits on Nov 9, 2014
  1. Android: fix for 32/64 __set_errno libc change

    tpruvot committed Nov 9, 2014
    this export in libc is only present for 32 bit targets
    for compatibility issues with the published NDK
    
    Change-Id: I3ddab7d7f3c409cf7732ca23f23d3080fd6861a3
Commits on Nov 7, 2014
  1. Android: Fix for 64bit arm and x86_64 targets

    tpruvot committed Nov 7, 2014
    tested on kitkat arm and lollipop x86_64/arm64
    
    Change-Id: I6049c7d935f08db51bea8f3fb98fe025171f2ef9
Commits on Nov 5, 2014
  1. Default to L's bionic

    rmcc committed Nov 5, 2014
Commits on Sep 2, 2014
  1. busybox: restore mac/linux bash compat.

    tpruvot committed Sep 2, 2014
    previous commit was merged too fast.
    
    Change-Id: I2573ce6074e988bae0cd2157fcdf1269f6b1ac99
  2. busybox: Use 'gsed' in Mac builds

    defer authored and tpruvot committed Sep 1, 2014
    Mac builds were broken because its sed implementation is not compatible
    with some of the features used in this script. We already require gsed
    for the Android build on Mac so this changes the script to take that
    into account.
    
    Change-Id: I37c10f8c543bdaf2c84409dacfaeccd24eb152d7
  3. Merge "[x86] Android 4.4.4 for x86 needs new implementation of "secur…

    tpruvot authored and Gerrit Code Review committed Sep 2, 2014
    …ity_compute_relabel"" into cm-11.0
Commits on Aug 25, 2014
  1. New BIONIC_L(Android-L) has own support for STPCPY

    HazouPH committed Aug 25, 2014
    The new BIONIC for android L preview has own support for STPCPY for all
    arches. This patch removes inbuilt STPCPY support from busybox when BIONIC_L
    is defined.
    
    Change-Id: I189a4489450ca11eddd5b3f49a29f1fe46d0157a
Commits on Aug 19, 2014
  1. [x86] Android 4.4.4 for x86 needs new implementation of "security_com…

    HazouPH committed Aug 19, 2014
    …pute_relabel"
    
    Change-Id: I2e15f58f11c9ee74ed8e1b7bf731efd881b890d9
Commits on Aug 10, 2014
  1. dmesg: rework color feature, compat. with more

    tpruvot committed Aug 10, 2014
    when used with less or more, the colors were not in
    the same buffer, resulting blocs of colors.
    
    Also, reset color numbers to the 16 ANSI ones.
    
    Reduce the diff with busybox to be able to send the patch.
    This is the first full busybox aosp feature with the new build system
    
    Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
    
    Change-Id: Ia0239a0bea02da01cae15736150dfee4fe66dcdb
  2. Android: typo in busybox folder

    tpruvot committed Aug 10, 2014
    That was a remains of a test when the folder doesnt exists
    
    Change-Id: If1989dc774ae7c6a8a94692ada6c321f67b5f4d9
  3. Android: clean only objects, not the folders

    tpruvot committed Aug 6, 2014
    Some users building with a high number of threads
    reported to me problems regarding the import_includes folder.
    
    So, only delete objects files (.o) and keep import_includes
    
    Change-Id: Ibf3ac818ff2bcf00bdf4f5243112001e2b2e15ef
Commits on Aug 6, 2014
  1. android: remove syscalls implemented in libbb

    tpruvot committed Aug 6, 2014
    We missed the addition of libbb/missing_syscalls.c in 1.21
    
    This also fix 'busybox date -s "2014-08-06 14:15:15"'
    (tested in recovery too)
    
    Change-Id: I2a1297e894638f000734b15757100c2d48984ed3
  2. android: fix building errors with Android L

    cwhuang authored and tpruvot committed Jul 30, 2014
    Tested OK with Android L PDK LRW17D.
    
    The asm files are regenerated by Android L gensyscalls.py.
    
    syscalls: restore compatibilty with current branch
    
    on arm __NR_stime constant is undefined in asm/unistd.h
    
    add also BIONIC_L define for assembly files (syscalls)
    tested on arm and x86 (not on mips)
    
    Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
    
    Change-Id: If5b6a6d3f8b4c10339f8e7b0bf340d02c1cf26cb
  3. Bionic changes for tty related applets

    tpruvot committed Aug 1, 2014
    Tested (but applets not included/enabled)
    getty, login, su, passwd, mkpasswd, cryptpw
    
    Sample /etc/passwd required before 'passwd' :
    root0:0:root:/:/system/xbin/bash
    
    busybox su allow to change current user, if you are root
    Example: "busybox su shell -c /system/xbin/bash"
    
    busybox login allow also to do that :
    Example: "busybox login shell"
    
    getpwnam() returns now an empty string in passwd member
    instead of null, busybox often check directly pw->pw_passwd[0]
    
    Update also selinux related stubs after tests on x86 4.4.2,
    l-preview and aosp/master
    
    If you want to include these applets, here is the required
    source list to add in busybox-full.sources :
    
     libbb/correct_password.c libbb/pw_encrypt.c libbb/update_passwd.c
     loginutils/getty.c loginutils/login.c loginutils/su.c
     loginutils/passwd.c loginutils/chpasswd.c loginutils/cryptpw.c
    
    And the config flags to add :
    
     CONFIG_GETTY=y
     CONFIG_LOGIN=y
     CONFIG_FEATURE_NOLOGIN=y
     CONFIG_PASSWD=y
     CONFIG_CRYPTPW=y
     CONFIG_CHPASSWD=y
     CONFIG_SU=y
     CONFIG_FEATURE_SU_CHECKS_SHELLS=y
    
    Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
    
    Change-Id: I96ee64f0872856fad6b3ff299faafad6451da556
  4. mktemp: warning fix for x86 and l-preview

    tpruvot committed Aug 5, 2014
    mktemp is almost not used in busybox, so rename
    the function in the mktemp applet to prevent bionic
    warning on include.
    
    Change-Id: I4332d3b957aafd6174eb7fe098b099eae779d3c9
Commits on Aug 5, 2014
  1. android: clearenv should not set environ to NULL

    tpruvot committed Aug 5, 2014
    Remove the old internal clearenv() function which is
    no more required (exported in libc)
    
    Change-Id: I357f6a3b057c366761b481c09b471d7c53d7a419
  2. Android: update busybox def PATH and cron folder

    tpruvot committed Aug 5, 2014
    remove /usr/bin, add /vendor/bin, like official path
    
    config folder was badly set to debian style cron.d
    but busybox variant is a bit different :
    
      mkdir /etc/crontabs
      echo "* * * * * log CRON!" > /etc/crontabs/`whoami`
      crond -f
    
    Change-Id: I0b9af08a557a952b5074da3231f32433f447f558
  3. selinux: implement missing selinux functions

    tpruvot committed Aug 5, 2014
    checkPasswdAccess() is deprecated
    http://linux.die.net/man/3/selinux_check_passwd_access
    
    also, ensure context is initialized in run_shell()
    
    Note: these stubs are just compatible with busybox source code
    Should be enhanced, or implemented in libselinux...
    
    Change-Id: I22ea2679191d5c0887b6ef8c77f09a032c226876
  4. Android.mk: prevent warnings on make prepare

    tpruvot committed Aug 5, 2014
    Add "+" to allow a new job
    
    touch import_includes to prevent problems with -jN
    
    Change-Id: Iea3cd527842a8bd770ff56fce01bcd0ff2d0db83
  5. mktemp: include libc mktemp, safe in busybox

    tpruvot committed Aug 5, 2014
    This commit remove the last warning in busybox,
    and prevent users to try to use mkstemp which has not
    the right behavior.
    
    Change-Id: I5aaae8044769bb1893f2430287d72b3abbee796c
  6. android: on prepare, clean all intermediates

    tpruvot committed Aug 5, 2014
    This was requested to me to prevent no clobbered builds failures
    on busybox config changes.
    
    Change-Id: I1bdf2948e0669b1de567381eb809f576e8f1eef5
Commits on Aug 1, 2014
  1. Fix remaining bionic warnings

    tpruvot committed Jul 31, 2014
    Tested on arm and x86 (kitkat),
    aosp/master has some other ones
    
    Also update the readme and android.h
    
    Change-Id: I170b16f2e091b99f971fb518bf0106c0e92adfdd
Commits on Jul 31, 2014
  1. android: backport pty implementation from aosp/master

    tpruvot committed Jul 31, 2014
    This is not (yet) in l-preview branch but on master
    The only way to prevent duplicated includes was to
    test the existence of a new constant added after
    l-preview bionic source release.
    
    Also use compatible hasmntopt() return type
    (swapon/off compilation warnings)
    
    Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
    
    Change-Id: I4ee6e7752eab84de4566ae86a90171b8241fcaea
Commits on Jul 30, 2014
  1. Makefile: remove warnings on initial version check

    tpruvot committed Jul 30, 2014
    Android.mk is using a SUBMAKE variable which is only
    used to get busybox version as a CFLAG. This one has
    the -s (--silent) makeflag. So ignore the KBUILD_OUTPUT
    default value if this flag is present.
    
    Change-Id: Ifcc11d148d6707a8c301b3d2ba0370b91215647e
  2. Android: final cleanup of new build system

    tpruvot committed Jul 24, 2014
    Rename hidden config files to busybox-<profile>.config
    
    Set also KBUILD_OUTPUT to prevent generation of files in src dir,
    if local make without O= is made (which create host code)
    
    That do not force the rebuild of config files, except with mm -B
    
    With the help of Chih-Wei Huang <cwhuang@linux.org.tw>
    
    Change-Id: Ic6bc2bc7177b1f266b9c0d1ccdfb925c1aa00d46
    Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Commits on Jul 24, 2014
  1. route: remove useless ipv6 header

    tpruvot committed Jul 23, 2014
    Change-Id: I4cb0f232be6b7060e9a1bd66b4946060911405de
Commits on Jul 23, 2014
  1. selinux: remove dependency on libsepol static lib

    tpruvot committed Jul 23, 2014
    runcon applet is including flask.h for constants
    
    the only one required is SECCLASS_PROCESS (2)
    
    Change-Id: Ia57abc21b291e7cbf81fdd031baaa5ac4436cbc8
  2. darwin: fix make prepare, force prebuilt host compiler

    tpruvot committed Jul 23, 2014
    also fix relative TARGET_OUT_INTERMEDIATES path on aosp/master
    
    Change-Id: Ie26850726898dcd101eac88d29691a06a94648c5
Commits on Jul 22, 2014
  1. android: fix simple path for cm, add note for later

    tpruvot committed Jul 22, 2014
    current AOSP (master) seems a bit different regarding
    the variable $(TARGET_OUT_INTERMEDIATES)
    
    Change-Id: I4a92743124950fadffcbff2b88f455db09a45d9e
  2. android: fix makefile to build on AOSP

    tpruvot committed Jul 22, 2014
    relative path seems could be buggy on aosp,
    also some remains in include could make problems.
    
    Change-Id: I4fcbf1bb8d7588d670e2fc5f8beb71397175c8bb