diff --git a/recipes-kernel/linux/linux-rockchip-3.0.inc b/recipes-kernel/linux/linux-rockchip-3.0.inc index 9c73328..29e4a03 100644 --- a/recipes-kernel/linux/linux-rockchip-3.0.inc +++ b/recipes-kernel/linux/linux-rockchip-3.0.inc @@ -10,7 +10,8 @@ inherit kernel SRCBRANCH ?= "rockchip-3.0" DEFCONFIG ?= "rk3188_steak_defconfig" -SRC_URI = "git://github.com/linux-rockchip/rockchip-3.0.git;branch=${SRCBRANCH}" +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" @@ -29,3 +30,10 @@ do_install_prepend() { 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 +}