Home / DroidRAZR / 9.8.2O-72_VZW-16
Name Modified Size InfoDownloads / Week
Parent folder
kernel-build.tar.gz 2013-03-15 33.5 kB
omap4_sgx_src_eurasia_km.tgz 2013-03-07 662.0 kB
README 2013-03-07 3.4 kB
build.tar.gz 2013-03-07 1.6 MB
external-libnl-headers.tar.gz 2013-03-07 39.9 kB
external-webkit.tar.gz 2013-03-07 48.6 MB
hardware-ti-wlan.tar.gz 2013-03-07 8.1 MB
hardware-ti-wpan.tar.gz 2013-03-07 2.1 MB
kernel-omap4.tar.gz 2013-03-07 103.6 MB
motorola-external-depmod.tar.gz 2013-03-07 97.4 kB
motorola-external-lbl.tar.gz 2013-03-07 41.6 kB
motorola-external-wbxmlparser.tar.gz 2013-03-07 73.6 kB
motorola-security-moto_crypto.tar.gz 2013-03-07 3.7 MB
system-core.tar.gz 2013-03-07 955.8 kB
external-iptables.tar.gz 2013-03-07 362.2 kB
external-iproute2.tar.gz 2013-03-07 530.3 kB
external-hyphenation.tar.gz 2013-03-07 88.0 kB
external-gcc-demangle.tar.gz 2013-03-07 55.3 kB
external-expat.tar.gz 2013-03-07 470.8 kB
external-e2fsprogs.tar.gz 2013-03-07 4.6 MB
external-dnsmasq.tar.gz 2013-03-07 432.7 kB
external-dbus.tar.gz 2013-03-07 1.5 MB
external-bluetooth-glib.tar.gz 2013-03-07 3.5 MB
external-bluetooth-bluez.tar.gz 2013-03-07 1.1 MB
external-alsa-lib.tar.gz 2013-03-07 1.2 MB
bionic.tar.gz 2013-03-07 2.5 MB
Totals: 26 Items   186.1 MB 0
This document explains the method used by OSRB to reproduce "standalone build" of copyleft components, such as Linux kernel and user space copyleft executables and libraries. Similar instructions should be provided along with the source code when posting source packages to OSMC. 

 1. Create a workspace containing "vanilla" JB release from Google. You may need to apply the following change in build repo to prevent the build from aborting when unexpected _user_ tag is found on some modules:

        diff --git a/core/base_rules.mk b/core/base_rules.mk
        index 3c11673..ecf611d 100644
        --- a/core/base_rules.mk
        +++ b/core/base_rules.mk
        @@ -99,7 +99,7 @@ ifneq ($(filter $(LOCAL_MODULE_TAGS),user),)
             $(warning * PRODUCT_PACKAGES section of)
             $(warning * build/target/product/core.mk)
             $(warning * )
        -    $(error user tag detected on new module - user tags are only supported on legacy modules)
        +    $(warning user tag detected on new module - user tags are only supported on legacy modules)
           endif
         endif
  

 2. Overlay Motorola-provided published repos on top of original Google versions. 

 3. Build user space components:

        cd <workspace>
        . build/envsetup.sh
        lunch generic-user
        make BOARD_HAVE_BLUETOOTH=true TARGET_BOARD_PLATFORM=omap <target>

    Where <target> is something like `out/target/product/generic/system/bin/bluetoothd`

 4. Building kernel and kernel modules:
        
        my_top_dir=$PWD
        mkdir -p $PWD/out/target/product/generic/obj/kernel
        cross=$my_top_dir/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
        kernel_out_dir=$PWD/out/target/product/generic/obj/kernel

        make  -C kernel/omap4 ARCH=arm  CROSS_COMPILE=$cross  O=$kernel_out_dir KBUILD_DEFCONFIG=mapphone_defconfig defconfig modules_prepare
        make  -C kernel/omap4 ARCH=arm  CROSS_COMPILE=$cross  O=$kernel_out_dir zImage
        make  -C kernel/omap4 ARCH=arm  CROSS_COMPILE=$cross  O=$kernel_out_dir INSTALL_MOD_PATH=$PWD/out/target/product/generic modules
        make  -C kernel/omap4 ARCH=arm  CROSS_COMPILE=$cross  O=$kernel_out_dir INSTALL_MOD_PATH=$PWD/out/target/product/generic modules_install
 
 5. About sgx module, please refer to the README & INSTALL files of omap4_sgx_src_eurasia_km.tgz
    or:
    export KERNDIR=/{absolute-path-of-your-codebase-out-folder}/out/target/product/{phone-name}/obj/PARTITIONS/kernel_intermediates/build/
    export CROSS_COMPILE=/{absolute-path-to-your-codebase}/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
    make ARCH=arm BUILD=release TARGET_SGX=540       


Build vpndriver:
-------------------:

        make CROSS=$cross CROSS_COMPILE=$cross PROCFAMILY=OMAP4430 PROJROOT= HOST_PLATFORM=sdc4430 KRNLSRC=$PWD/kernel/omap4 KERNEL_DIR=$kernel_out_dir PREFIX=$kernel_out_dir ARCH=arm KLIB=$kernel_out_dir KLIB_BUILD=$kernel_out_dir O=$kernel_out_dir -C $PWD/kernel/omap4 M=$PWD/vendor/authentec/vpndriver modules

Build compat driver:
-----------------------:
        make CROSS=$cross CROSS_COMPILE=$cross PROCFAMILY=OMAP4430 PROJROOT= HOST_PLATFORM=sdc4430 KRNLSRC=$PWD/kernel/omap4 KERNEL_DIR=$kernel_out_dir PREFIX=$kernel_out_dir ARCH=arm KLIB=$kernel_out_dir KLIB_BUILD=$kernel_out_dir -C $PWD/hardware/ti/wlan/mac80211/compat



Source: README, updated 2013-03-07