aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-nexusone_git.bb
blob: cf8f656e487b89501dac2ef0b44765f17ba7e99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require linux.inc
DEPENDS += "android-image-utils-native"

PV = "2.6.37+${PR}+gitr${SRCREV}"
PR = "r0"

COMPATIBLE_MACHINE = "nexusone"
CMDLINE = "root=/dev/mmcblk0p1 rw rootwait noinitrd fbcon=rotate:1"

SRCREV = "87fe2be204fdb40883c508a9d4d9567b40c52300"

SRC_URI = "\
  git://gitorious.org/htc-msm-2-6-32/leviathan-incoming.git;protocol=git;branch=nexusone \
  file://defconfig \
"
S = "${WORKDIR}/git"

do_deploy_append() {
    if [ ! -e empty.gz ];then
        if [ ! -e empty ];then
            touch empty
        fi
        gzip empty
    fi
    mkbootimg --kernel ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin \
              --ramdisk empty.gz \
              --cmdline "${CMDLINE}" \
              --base 0x20000000 \
              --output ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.fastboot
}