Skip to content

Commit

Permalink
build changes
Browse files Browse the repository at this point in the history
Change-Id: I061a7bf8e8ad33654e07be2823006261167ae0ad
  • Loading branch information
Hashcode committed Aug 21, 2012
1 parent 9e12f32 commit 36c6d49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
29 changes: 9 additions & 20 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
#
# Copyright (C) 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# define OMAP_ENHANCEMENT variables
include device/amazon/otter/Config.mk

Expand Down Expand Up @@ -43,7 +27,7 @@ ARCH_ARM_HAVE_TLS_REGISTER := true
# Kernel
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_CMDLINE := mem=512M console=ttyO2,115200n8 def_disp=lcd2
BOARD_KERNEL_CMDLINE := mem=512M console=ttyO2,115200n8
TARGET_NO_RADIOIMAGE := true
TARGET_BOARD_PLATFORM := omap4
TARGET_NO_BOOTLOADER := true
Expand All @@ -55,11 +39,12 @@ BOARD_SDCARD_DEVICE_PRIMARY := /dev/block/platform/omap/omap_hsmmc.1/by-name/med
BOARD_SDCARD_DEVICE_INTERNAL := /dev/block/platform/omap/omap_hsmmc.1/by-name/media

# Kernel Build
TARGET_KERNEL_SOURCE := kernel/amazon/otter
TARGET_KERNEL_CONFIG := otter_android_defconfig
TARGET_PREBUILT_KERNEL := device/amazon/otter/kernel

ifdef CM_BUILD
KERNEL_EXTERNAL_MODULES:
WLAN_MODULES:
make clean -C hardware/ti/wlan/mac80211/compat_wl12xx
make -j8 -C hardware/ti/wlan/mac80211/compat_wl12xx KERNEL_DIR=$(KERNEL_OUT) KLIB=$(KERNEL_OUT) KLIB_BUILD=$(KERNEL_OUT) ARCH=arm CROSS_COMPILE="arm-eabi-"
mv hardware/ti/wlan/mac80211/compat_wl12xx/compat/compat.ko $(KERNEL_MODULES_OUT)
Expand All @@ -68,11 +53,14 @@ KERNEL_EXTERNAL_MODULES:
mv hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/wl12xx.ko $(KERNEL_MODULES_OUT)
mv hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/wl12xx_spi.ko $(KERNEL_MODULES_OUT)
mv hardware/ti/wlan/mac80211/compat_wl12xx/drivers/net/wireless/wl12xx/wl12xx_sdio.ko $(KERNEL_MODULES_OUT)

SGX_MODULES:
make clean -C vendor/amazon/otter/proprietary/imgtec/eurasia_km/eurasiacon/build/linux2/omap4430_android
make -j8 -C vendor/amazon/otter/proprietary/imgtec/eurasia_km/eurasiacon/build/linux2/omap4430_android ARCH=arm KERNEL_CROSS_COMPILE=arm-eabi- CROSS_COMPILE=arm-eabi- KERNELSRC=$(KERNEL_OUT)/../../../../../../kernel/amazon/otter KERNELDIR=$(KERNEL_OUT) TARGET_PRODUCT="blaze_tablet" BUILD=release TARGET_SGX=540 PLATFORM_VERSION=4.0
cp kernel/amazon/otter/drivers/video/omap2/omapfb/omapfb.h $(KERNEL_OUT)/drivers/video/omap2/omapfb/omapfb.h
make -j8 -C vendor/amazon/otter/proprietary/imgtec/eurasia_km/eurasiacon/build/linux2/omap4430_android ARCH=arm KERNEL_CROSS_COMPILE=arm-eabi- CROSS_COMPILE=arm-eabi- KERNELDIR=$(KERNEL_OUT) TARGET_PRODUCT="blaze_tablet" BUILD=release TARGET_SGX=540 PLATFORM_VERSION=4.0
mv $(KERNEL_OUT)/../../target/kbuild/pvrsrvkm_sgx540_120.ko $(KERNEL_MODULES_OUT)

TARGET_KERNEL_MODULES := KERNEL_EXTERNAL_MODULES
TARGET_KERNEL_MODULES := WLAN_MODULES SGX_MODULES
endif

# Filesystem
Expand All @@ -98,6 +86,7 @@ else
WPA_SUPPLICANT_VERSION := VER_0_8_X_TI
endif
BOARD_HOSTAPD_DRIVER := NL80211
PRODUCT_WIRELESS_TOOLS := true
BOARD_WLAN_DEVICE := wl12xx_mac80211
BOARD_SOFTAP_DEVICE := wl12xx_mac80211
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wl12xx_sdio.ko"
Expand Down
7 changes: 5 additions & 2 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ endif

PRODUCT_PROPERTY_OVERRIDES := \
ro.sf.lcd_density=160 \
dalvik.vm.heapsize=64m \
dalvik.vm.heapstartsize=5m \
dalvik.vm.heapgrowthlimit=42m \
dalvik.vm.heapsize=128m \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=120 \
ro.sf.hwrotation=270 \
Expand All @@ -159,7 +161,8 @@ PRODUCT_PROPERTY_OVERRIDES := \
ro.crypto.state=unencrypted \
persist.sys.usb.config=mass_storage,adb \
persist.sys.root_access=3 \
ro.hwc.legacy_api=true

# ro.hwc.legacy_api=true


PRODUCT_CHARACTERISTICS := tablet,nosdcard
Expand Down

0 comments on commit 36c6d49

Please sign in to comment.