sdcard: Allow building as a static library

 * Split main() out in order to allow linking with a multi-call
   executable such as recovery.

Change-Id: I3325135e47e4dd5af3912f5ce67ec64007d54a63
init: define BOARD_CHARGING_CMDLINE parameters

Change-Id: I722e49e2a13418bf887c361c85e9d102168ca973
Revert "init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes"

No longer needed as Dalvik no longer marks /storage as slave in zygotes.

This reverts commit 4a8f70d11b225fbf56aca6e494f4de35fc727dc7.

Change-Id: I0bfb86f2cc10ccdc10daa7419ac4d252c8dfbae8
Merge tag 'android-4.3_r3.1' of https://android.googlesource.com/platform/system/core into cm-10.2

Android 4.3 Release 3.1
mkbootimg: Add --dt parameter to specify DT image

New optional --dt parameter to specify a kernel device
tree image.

Change-Id: I7e2c48c25c04165642eedadc3dc16a082dd99eb0
init: uevent: Add msm video symbolic link handling

Create meaningful symbolic links for video encode/decode
devices based on link_name sysfs node so that video client
doesn't have to rely on dynamic dev node names like device32,
device33 etc.

Change-Id: I70386351d83b8a7a7a690378870eee87f4c96983
Merge remote-tracking branch 'cm/cm-10.2' into jb3
Merge pull request #1 from BytecodeMe/jb3

Merge branch cm-10.2
Revert changes to main init.rc file

Move these to the CM init, there's no need to have them here.

Revert "rootdir: Set permissions for additional interactive sysfs nodes"

This reverts commit d4a936e3585a2a085a2edd0d6861201aa99b4817.

Revert "init: provide initial pemissions for ondemand governor"

This reverts commit bb23f09b4bc5996c88553dcb9857357c1b6516d8.

Revert "Allow 'system' user to modify cpufreq control files"

This reverts commit 2aaa54be95527144341e5fb82c67b2be7f06ac71.

Change-Id: I8889d6f6d3346cf7920bb3e8d5d52291d40d6b5e
Revert changes to main init.rc file

Move these to the CM init, there's no need to have them here.

Revert "rootdir: Set permissions for additional interactive sysfs nodes"

This reverts commit d4a936e3585a2a085a2edd0d6861201aa99b4817.

Revert "init: provide initial pemissions for ondemand governor"

This reverts commit bb23f09b4bc5996c88553dcb9857357c1b6516d8.

Revert "Allow 'system' user to modify cpufreq control files"

This reverts commit 2aaa54be95527144341e5fb82c67b2be7f06ac71.

Change-Id: I8889d6f6d3346cf7920bb3e8d5d52291d40d6b5e
Merge "mkbootimg: Add --dt parameter to specify DT image" into cm-10.2
Merge "init: uevent: Add msm video symbolic link handling" into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into jb3
Merge branch 'jb3' of https://github.com/CarbonDev/android_system_core into CB4.3