####Prerequisites 1. For general Android prerequisites, see http://source.android.com/source/download.html 2. Unpack all the git archives, by running: ./unpack.pl 3.Create a workspace containing "vanilla" gingerbread 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 4.Overlay Motorola-provided published repos on top of original Google versions. 5.Build user space components: cd <workspace> . build/envsetup.sh lunch generic-user make BOARD_HAVE_BLUETOOTH=true TARGET_BOARD_PLATFORM=omap4 <target> Where is something like out/target/product/generic/system/bin/bluetoothd 6.Building kernel and kernel modules. # set this to the top of your android workspace my_top_dir=.... # set this to where you want kernel intermediates written to kernel_out_dir=... # cross compiler cross=$my_top_dir/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make -j1 -C $my_top_dir/kernel/omap4 ARCH=arm \ CROSS_COMPILE=$cross \ O=$kernel_out_dir \ KBUILD_DEFCONFIG=mapphone_defconfig \ defconfig modules_prepare make -C $my_top_dir/kernel/omap4 ARCH=arm \ CROSS_COMPILE=$cross \ O=$kernel_out_dir \ INSTALL_MOD_PATH=$kernel_out_dir \ modules 2>&1 make -C $my_top_dir/kernel/omap4 ARCH=arm \ CROSS_COMPILE=$cross \ O=$kernel_out_dir \ INSTALL_MOD_PATH=$kernel_out_dir \ modules_install make -C $my_top_dir/kernel/omap4 ARCH=arm \ CROSS_COMPILE=$cross \ O=$kernel_out_dir zImage make PREFIX=$kernel_out_dir CROSS=$cross CROSS_COMPILE=$cross \ PROCFAMILY=OMAP4430 PROJROOT= HOST_PLATFORM=sdc4430 \ KRNLSRC=$my_top_dir/kernel/omap4 KERNEL_DIR=$kernel_out_dir \ -C $my_top_dir/hardware/ti/wlan/wl1283/platforms/os/linux # newly built module in $my_top_dir/hardware/ti/wlan/wl1283/platforms/os/linux/tiwlan_drv.ko make PREFIX=$kernel_out_dir CROSS=$cross CROSS_COMPILE=$cross \ PROCFAMILY=OMAP4430 PROJROOT= HOST_PLATFORM=sdc4430 \ KRNLSRC=$my_top_dir/kernel/omap4 KERNEL_DIR=$kernel_out_dir \ -C $my_top_dir/hardware/ti/wlan/wl1283_softAP/platforms/os/linux # newly built module in $my_top_dir/hardware/ti/wlan/wl1283_softAP/platforms/os/linux/tiap_drv.ko make PREFIX=$kernel_out_dir CROSS=$cross CROSS_COMPILE=$cross \ PROCFAMILY=OMAP4430 PROJROOT= HOST_PLATFORM=sdc4430 \ KRNLSRC=$my_top_dir/kernel/omap4 KERNEL_DIR=$kernel_out_dir \ -C $my_top_dir/kernel/omap4 ARCH=arm \ O=$kernel_out_dir \ M=$my_top_dir/vendor/authentec/safenet/vpndriver modules # newly built module in $my_top_dir/vendor/authentec/safenet/vpndriver/vpnclient.ko 7.Building lbl: make -f motorola/external/lbl/Makefile all \ LBL_OUT=out/target/product/generic/obj/PARTITIONS/lbl_intermediates HOST_PREBUILT_TAG=linux-x86
DroidBionic Files
Brought to you by:
gpalani1