[Android] agismaniax:
Hi yuweng,

I try to compile PhilZ Touch Recovery using BBQLinux and your steps in the OP, but always end with this error:

Any suggestion?

UPDATE: I found the solution. I switched to Python2, so the compilation is started.

[agismaniax@android-dev2 cm11]$ . build/tools/device/makerecoveries.sh cm_gbw192-eng
cm_gbw192-eng
1 Products
which: no mcp in (/opt/java6/bin:/home/agismaniax/cm11/out/host/linux-x86/bin:/home/agismaniax/cm11/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/home/agismaniax/cm11/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:/home/agismaniax/cm11/development/emulator/qtools:/home/agismaniax/cm11/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/home/agismaniax/cm11/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:/home/agismaniax/cm11/development/scripts:/home/agismaniax/cm11/prebuilts/devtools/tools:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/usr/bin/core_perl)
Recovery Version: 6.0.4.8
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140518-UNOFFICIAL-gbw192
TARGET_PRODUCT=cm_gbw192
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.14.4-1-ARCH-x86_64-with-arch
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/home/agismaniax/cm11/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140518-UNOFFICIAL-gbw192
TARGET_PRODUCT=cm_gbw192
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.14.4-1-ARCH-x86_64-with-arch
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/home/agismaniax/cm11/out
============================================
File "build/tools/findleaves.py", line 95
print r
^
SyntaxError: invalid syntax
File "build/tools/findleaves.py", line 95
print r
^
SyntaxError: invalid syntax
File "build/tools/diff_package_overlays.py", line 88
print r
^
SyntaxError: invalid syntax
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE gbw192
build/core/tasks/kernel.mk:63: ***************************************************************
build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:67: * source repository to kernel/gionee/gbw192
build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:69: * for more information *
build/core/tasks/kernel.mk:70: ***************************************************************
build/core/tasks/kernel.mk:198: warning: overriding recipe for target '/home/agismaniax/cm11/out/target/product/gbw192/kernel'
build/core/Makefile:44: warning: ignoring old recipe for target '/home/agismaniax/cm11/out/target/product/gbw192/kernel'
make: *** No rule to make target '/home/agismaniax/cm11/out/host/linux-x86/bin/mkbootimg', needed by '/home/agismaniax/cm11/out/target/product/gbw192/recovery.img'. Stop.
build error!
[agismaniax@android-dev2 cm11]$

My BoardConfig.mk

USE_CAMERA_STUB := true

# inherit from the proprietary version
-include vendor/gionee/gbw192/BoardConfigVendor.mk

TARGET_ARCH := arm
TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM := MTK6589
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a7
ARCH_ARM_HAVE_TLS_REGISTER := true

TARGET_BOOTLOADER_BOARD_NAME := gbw192

BOARD_KERNEL_CMDLINE :=
BOARD_KERNEL_BASE := 0x10000000
BOARD_KERNEL_PAGESIZE := 2048

# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072

TARGET_PREBUILT_KERNEL := device/gionee/gbw192/kernel

BOARD_HAS_NO_SELECT_BUTTON := true

TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/mt_usb/gadget/lun%d/file"

#AFAIK, for MT6582/ 92 it is at -> "/sys/devices/platform/mt_usb/musb-hdrc.0/gadget/lun%d/file"

#Philz Touch build flags for MTK
TARGET_COMMON_NAME := GBW192
BOARD_USE_MTK_LAYOUT := true
BOARD_MTK_BOOT_LABEL := "/bootimg"
BOARD_USE_NTFS_3G := false
TARGET_SCREEN_HEIGHT := 1280
TARGET_SCREEN_WIDTH := 720
BRIGHTNESS_SYS_FILE := "/sys/class/leds/lcd-backlight/brightness"