[Android] Warped420:
btw. this is how your boardconfig should look like to get twrp. Although i did change a couple things after my first build. but like i said if you have errors, just post them.

# Copyright (C) 2009 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.

#

# This file sets variables that control the way modules are built

# thorughout the system. It should not be used to conditionally

# disable makefiles (the proper mechanism to control what gets

# included in a build is to use PRODUCT_PACKAGES in a product

# definition file).

#

# WARNING: This line must come *before* including the proprietary

# variant, so that it gets overwritten by the parent (which goes

# against the traditional rules of inheritance).

# Flags

TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp

TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp

COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE

# Include path

TARGET_SPECIFIC_HEADER_PATH := device/zte/warplte/include

# test

TARGET_NO_BOOTLOADER := true

# custom vidc disabler

#TARGET_VIDC_DISABLE := true

# Kernel

BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3

BOARD_KERNEL_BASE := 0x80200000

BOARD_KERNEL_PAGESIZE := 2048

BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000

TARGET_KERNEL_SOURCE := kernel/zte/nex

TARGET_KERNEL_CONFIG := warplte_defconfig

TARGET_PREBUILT_KERNEL := device/zte/warplte/kernel

#TARGET_PREBUILT_RECOVERY_KERNEL := device/zte/warplte

#TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.4.3

# Platform

TARGET_BOARD_PLATFORM := msm8960

TARGET_BOARD_PLATFORM_GPU := qcom-adreno200

TARGET_PRODUCT := zte_warplte

# Architecture

TARGET_ARCH := arm

TARGET_CPU_ABI := armeabi-v7a

TARGET_CPU_ABI2 := armeabi

TARGET_ARCH_VARIANT := armv7-a-neon

TARGET_ARCH_VARIANT_CPU := cortex-a9

TARGET_ARCH_VARIANT_FPU := vfpv3-d16

TARGET_CPU_VARIANT := krait

TARGET_CPU_SMP := true

ARCH_ARM_HAVE_TLS_REGISTER := true

# Krait optimizations

TARGET_USE_KRAIT_BIONIC_OPTIMIZATION := true

TARGET_USE_KRAIT_PLD_SET := true

TARGET_KRAIT_BIONIC_PLDOFFS := 10

TARGET_KRAIT_BIONIC_PLDTHRESH := 10

TARGET_KRAIT_BIONIC_BBTHRESH := 64

TARGET_KRAIT_BIONIC_PLDSIZE := 64

# QCOM hardware

BOARD_USES_QCOM_HARDWARE := true

# Graphics

COMMON_GLOBAL_CFLAGS += -DQCOM_NO_SECURE_PLAYBACK -DQCOM_ROTATOR_KERNEL_FORMATS

USE_OPENGL_RENDERER := true

TARGET_NO_HW_VSYNC := true

TARGET_USES_C2D_COMPOSITION := true

TARGET_USES_ION := true

BOARD_EGL_CFG := device/zte/warplte/prebuilt/lib/egl/egl.cfg

TARGET_QCOM_DISPLAY_VARIANT := legacy

# PMEM compatibility

BOARD_NEEDS_MEMORYHEAPPMEM := true

# ICS proprietary blob compatibility

COMMON_GLOBAL_CFLAGS += -DICS_CAMERA_BLOB

# Audio

#BOARD_USES_ALSA_AUDIO := true

TARGET_USES_ION_AUDIO := true

# Lights

TARGET_PROVIDES_LIBLIGHTS := true

# Bluetooth

BOARD_HAVE_BLUETOOTH := true

BOARD_HAVE_BLUETOOTH_BCM := true

#BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/zte/warplte/bluetooth

#BOARD_BLUEDROID_VENDOR_CONF := device/zte/warplte/bluetooth/bdroid_buildcfg.h

#TARGET_CUSTOM_BLUEDROID := ../../../device/zte/warplte/bluetooth/bluetooth.c

# Wifi

WIFI_BAND := 802_11_ABG

WPA_SUPPLICANT_VERSION := VER_0_8_X

BOARD_WPA_SUPPLICANT_DRIVER	:= NL80211

BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd

BOARD_WLAN_DEVICE := bcmdhd

BOARD_HOSTAPD_DRIVER := NL80211

BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd

WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcmdhd.bin"

WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcmdhd_apsta.bin"

WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcmdhd_p2p.bin"

WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"

# Filesystem

TARGET_USERIMAGES_USE_EXT4 := true

BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216

BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1082130432

BOARD_USERDATAIMAGE_PARTITION_SIZE := 1619001344

#BOARD_FLASH_BLOCK_SIZE := 512

BOARD_FLASH_BLOCK_SIZE := 135168

BOARD_VOLD_MAX_PARTITIONS := 97

# Recovery

#BOARD_CUSTOM_GRAPHICS:= ../../../device/zte/warplte/recovery/graphics.c

#BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/zte/warplte/recovery/recovery_keys.c

BOARD_USES_MMCUTILS := true

BOARD_SUPPRESS_EMMC_WIPE := true

BOARD_HAS_SDCARD_INTERNAL := true

BOARD_RECOVERY_HANDLES_MOUNT := true

BOARD_HAS_DOWNLOAD_MODE := true

TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888

BOARD_HAS_NO_SELECT_BUTTON := true

#twrp

DEVICE_RESOLUTION := 540x960

RECOVERY_GRAPHICS_USE_LINELENGTH := true

RECOVERY_SDCARD_ON_DATA := true

BOARD_HAS_NO_REAL_SDCARD := true

TW_INCLUDE_DUMLOCK := true

TW_INTERNAL_STORAGE_PATH := "/data/media"

TW_INTERNAL_STORAGE_MOUNT_POINT := "data"

TW_EXTERNAL_STORAGE_PATH := "/sdcard"

TW_EXTERNAL_STORAGE_MOUNT_POINT := "sdcard"

TW_NO_BATT_PERCENT := true

TW_CUSTOM_POWER_BUTTON := 107

TW_NO_REBOOT_BOOTLOADER := true

TW_NO_REBOOT_RECOVERY := true

TW_NO_USB_STORAGE := true

RECOVERY_TOUCHSCREEN_SWAP_XY := true

RECOVERY_TOUCHSCREEN_FLIP_Y := true

RECOVERY_TOUCHSCREEN_FLIP_X := true

TW_ALWAYS_RMRF := true

TW_NEVER_UNMOUNT_SYSTEM := true

TW_INCLUDE_INJECTTWRP := true

TW_DEFAULT_EXTERNAL_STORAGE := true

HAVE_SELINUX := true

TWRP_EVENT_LOGGING := true

BOARD_HAS_FLIPPED_SCREEN := true

TARGET_PREBUILT_RECOVERY_KERNEL :=

# EXT4 larger than 2gb

BOARD_HAS_LARGE_FILESYSTEM := true

# Webkit

ENABLE_WEBGL := true

TARGET_FORCE_CPU_UPLOAD := true

# Preload bootanimation

TARGET_BOOTANIMATION_PRELOAD := true

# Vold

TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/class/android_usb/android0/f_mass_storage/lun/file"

BOARD_UMS_LUNFILE := "/sys/class/android_usb/android0/f_mass_storage/lun/file"

# Releasetools

#TARGET_PROVIDES_RELEASETOOLS := true

#TARGET_RELEASETOOL_OTA_FROM_TARGET_SCRIPT := ./device/zte/warplte/releasetools/warplte_ota_from_target_files

and the recovery.fstab needs the bottom lines added

# Copyright (c) 2011, Code Aurora Forum. All rights reserved.

#

# Redistribution and use in source and binary forms, with or without

# modification, are permitted provided that the following conditions are

# met:

# * Redistributions of source code must retain the above copyright

# notice, this list of conditions and the following disclaimer.

# * Redistributions in binary form must reproduce the above

# copyright notice, this list of conditions and the following

# disclaimer in the documentation and/or other materials provided

# with the distribution.

# * Neither the name of Code Aurora Forum, Inc. nor the names of its

# contributors may be used to endorse or promote products derived

# from this software without specific prior written permission.

#

# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED

# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF

# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT

# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS

# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR

# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF

# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR

# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,

# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE

# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN

# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# mount point	fstype	device	[device2] [length=]

/modem	emmc	/dev/block/platform/msm_sdcc.1/by-name/modem

/sbl1	emmc	/dev/block/platform/msm_sdcc.1/by-name/sbl1

/sbl2	emmc	/dev/block/platform/msm_sdcc.1/by-name/sbl2

/sbl3	emmc	/dev/block/platform/msm_sdcc.1/by-name/sbl3

/tz	emmc	/dev/block/platform/msm_sdcc.1/by-name/tz

/rpm	emmc	/dev/block/platform/msm_sdcc.1/by-name/rpm

/emmcboot	emmc	/dev/block/platform/msm_sdcc.1/by-name/aboot

/cefs	emmc	/dev/block/platform/msm_sdcc.1/by-name/modemst1

/cefs_tar emmc /dev/block/platform/msm_sdcc.1/by-name/fsg

/splash	emmc	/dev/block/platform/msm_sdcc.1/by-name/splash

/boot	emmc	/dev/block/platform/msm_sdcc.1/by-name/boot

/cache	ext4	/dev/block/platform/msm_sdcc.1/by-name/cache

/data	ext4	/dev/block/platform/msm_sdcc.1/by-name/userdata

/misc	emmc	/dev/block/platform/msm_sdcc.1/by-name/misc

/recovery	emmc	/dev/block/platform/msm_sdcc.1/by-name/recovery

/sdcard	vfat	/dev/block/mmcblk1p1	/dev/block/mmcblk1

/system	ext4	/dev/block/platform/msm_sdcc.1/by-name/system

/carrier	ext4	/dev/block/platform/msm_sdcc.1/by-name/carrier

/external_sd vfat /dev/block/mmcblk1p1 flags=display="Micro SDcard";storage;wipeingui;removable

these are the commands i use

1.) . build/envsetup.sh --- get things lined up

2.) lunch cos_warplte-eng --- pick your poison

3.) make clean && make -j2 recoveryimage --- tidy up a bit, and build, bro

alwayz keep it100