Integrating initrd image generation to linux-rockchip-3.0.inc .

This is related to issue #3.
This commit is contained in:
Romain Perier 2014-05-04 16:55:10 +00:00 committed by Julien Chauveau
parent 63f845bac9
commit 1a381d2ff4

View File

@ -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
}