Skip to contentSkip to conversation

kernel.bbclass: fix malformed patch

PATCH In review Andrea Adami 2 participants 2 messages Jul 12, 2011 – Jul 13, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel.bbclass: fix malformed patch

* commit 19bda7f2c2dac6363468a49295c38f2095c67c98
* was unfortunately based on a truncated patch.
* Fix the broken line and repair kernel.bbclass.
* Sorry for the noise...

---
 meta/classes/kernel.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/kernel.bbclass +1 -1
index e441748..9be55d0 100644
@@ -189,7 +189,7 @@ kernel_do_configure() {
 	if [ ! -z "${INITRAMFS_IMAGE}" ]; then
 		for img in cpio.gz cpio.lzo cpio.lzma cpio.xz; do
 		if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img"
-			cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$i
+			cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" initramfs.$img
 		fi
 		done
 	fi
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 15 lines · Andrea Adami

* commit 19bda7f2c2dac6363468a49295c38f2095c67c98
* was unfortunately based on a truncated patch.
* Fix the broken line and repair kernel.bbclass.
* Sorry for the noise...

---
  meta/classes/kernel.bbclass |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/kernel.bbclass +0 -0
index e441748..9be55d0 100644

meta/classes/kernel.bbclass kernel_do_configure() { · line 195

Quoted 8 lines
meta/classes/kernel.bbclass +1 -1
@@ -189,7 +189,7 @@ kernel_do_configure() {
  	if [ ! -z "${INITRAMFS_IMAGE}" ]; then
  		for img in cpio.gz cpio.lzo cpio.lzma cpio.xz; do
  		if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img"
-			cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$i
+			cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" initramfs.$img
  		fi
  		done
  	fi

I don't think this is sufficient; the line above is broken as well.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------