aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-rockchip-3.0.inc
blob: 1fd51eacc6c95d4c003e1d6259e4083439843940 (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
31
32
33
34
35
36
37
38
39
# Copyright (C) 2014 NEO-Technologies
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Linux kernel for Rockchip's ARM platforms"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

inherit kernel

SRCBRANCH ?= "rockchip-3.0"
DEFCONFIG ?= "rk3188_steak_defconfig"

SRC_URI = "git://github.com/linux-rockchip/rockchip-3.0.git;branch=${SRCBRANCH} \
           git://github.com/radxa/initrd.git;destsuffix=${WORKDIR}/initrd"
SRCREV_pn-${PN} = "${AUTOREV}"

S = "${WORKDIR}/git"

do_configure_prepend() {
    oe_runmake -C "${S}" ${DEFCONFIG}

    # Fix arch QA issues ("Architecture did not match")
    rm -f ${S}/mkkrnlimg
}

do_install_prepend() {
    # Dummy Makefile so the make target "clean _mrproper_scripts" from kernel.bbclass works.
    # This is required since the release "daisy".
    kerneldir=${D}${KERNEL_SRC_PATH}
    install -d $kerneldir/arch/arm/plat-rk/rk_pm_tests
    touch $kerneldir/arch/arm/plat-rk/rk_pm_tests/Makefile
}

do_deploy_append() {
    install -d ${DEPLOYDIR}
    cd ${WORKDIR}/initrd
    find . ! -path "*/.git*" ! -path "./README.md" ! -path "./Makefile" \
    | cpio -H newc -o > ${DEPLOYDIR}/initrd.img
}