1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

linux: em-x270 expects kernel encapsulated in jffs2 image

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3404 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Marcin Juszkiewicz
2008-01-04 10:12:53 +00:00
parent 932b3ccd86
commit 8fe6d345e3
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -4,6 +4,8 @@ LICENSE = "GPL"
inherit kernel
DEPENDS_append_em-x270 = " mtd-utils "
python __anonymous () {
import bb
+11
View File
@@ -67,3 +67,14 @@ python do_compulab_image() {
}
addtask compulab_image after do_deploy before do_package
do_kernel_image() {
if [ "${MACHINE}" = "em-x270" ]
then
mkdir -p ${WORKDIR}/t
install -m 0644 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_SYMLINK_NAME}.bin ${WORKDIR}/t/uImage
mkfs.jffs2 --eraseblock=0x20000 --pad --no-cleanmarkers --faketime --root=${WORKDIR}/t --output=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.jffs2
fi
}
addtask kernel_image after do_deploy