diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-01-04 10:12:53 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-01-04 10:12:53 +0000 |
commit | 8fe6d345e3fa3d2e9221dc6904f89f7aadcf0fd5 (patch) | |
tree | fd70458a50d7c17d60c2c4928b5de50b735ca43a | |
parent | 932b3ccd86e99ccaf4ca4032cdc5cc21abeeed49 (diff) | |
download | poky-8fe6d345e3fa3d2e9221dc6904f89f7aadcf0fd5.tar.gz |
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
-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 fc0645dfd9..7b483686f4 100644 --- a/meta/packages/linux/linux.inc +++ b/meta/packages/linux/linux.inc | |||
@@ -4,6 +4,8 @@ LICENSE = "GPL" | |||
4 | 4 | ||
5 | inherit kernel | 5 | inherit kernel |
6 | 6 | ||
7 | DEPENDS_append_em-x270 = " mtd-utils " | ||
8 | |||
7 | python __anonymous () { | 9 | python __anonymous () { |
8 | 10 | ||
9 | import bb | 11 | import bb |
diff --git a/meta/packages/linux/linux_2.6.23.bb b/meta/packages/linux/linux_2.6.23.bb index 66fe716f01..1f683c12f0 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() { | |||
67 | } | 67 | } |
68 | 68 | ||
69 | addtask compulab_image after do_deploy before do_package | 69 | addtask compulab_image after do_deploy before do_package |
70 | |||
71 | do_kernel_image() { | ||
72 | |||
73 | if [ "${MACHINE}" = "em-x270" ] | ||
74 | then | ||
75 | mkdir -p ${WORKDIR}/t | ||
76 | install -m 0644 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_SYMLINK_NAME}.bin ${WORKDIR}/t/uImage | ||
77 | mkfs.jffs2 --eraseblock=0x20000 --pad --no-cleanmarkers --faketime --root=${WORKDIR}/t --output=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.jffs2 | ||
78 | fi | ||
79 | } | ||
80 | addtask kernel_image after do_deploy | ||