diff options
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/linux/linux.inc | 2 | ||||
-rw-r--r-- | meta/packages/linux/linux_2.6.23.bb | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/meta/packages/linux/linux.inc b/meta/packages/linux/linux.inc index fc0645dfd..7b483686f 100644 --- a/meta/packages/linux/linux.inc +++ b/meta/packages/linux/linux.inc @@ -4,6 +4,8 @@ LICENSE = "GPL" inherit kernel +DEPENDS_append_em-x270 = " mtd-utils " + python __anonymous () { import bb diff --git a/meta/packages/linux/linux_2.6.23.bb b/meta/packages/linux/linux_2.6.23.bb index 66fe716f0..1f683c12f 100644 --- a/meta/packages/linux/linux_2.6.23.bb +++ b/meta/packages/linux/linux_2.6.23.bb @@ -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 |