public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] linux-custom: Add support for kernels >= 4.17
@ 2018-09-30 16:55 Jan Kiszka
  2018-10-01  7:46 ` Maxim Yu. Osipov
  2018-10-01 10:51 ` Maxim Yu. Osipov
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Kiszka @ 2018-09-30 16:55 UTC (permalink / raw)
  To: isar-users

From: Jan Kiszka <jan.kiszka@siemens.com>

Upstream changed deb-pkg, and it no longer spits out a debian.tar.gz
archive. Take the debian folder generated by deb-pkg instead.

A second change is required because upstream now sets the target package
architecture as well, but dpkg-gencontrol will not like this in a cross
environment (host != package arch). Trick it.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/recipes-kernel/linux/files/build-kernel.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/files/build-kernel.sh b/meta/recipes-kernel/linux/files/build-kernel.sh
index 2cee28f..3f39d43 100644
--- a/meta/recipes-kernel/linux/files/build-kernel.sh
+++ b/meta/recipes-kernel/linux/files/build-kernel.sh
@@ -51,8 +51,14 @@ mkdir -p ${REPACK_DIR}
 mkdir -p ${REPACK_LINUX_IMAGE_DIR}
 mkdir -p ${REPACK_LINUX_HEADERS_DIR}
 
+cp -a debian ${REPACK_DIR}
+
+# dpkg-gencontrol performs cross-incompatible checks on the
+# Architecture field; trick it to accept the control file
+sed -i "s/Architecture: .*/Architecture: any/" ${REPACK_DIR}/debian/control
+
 cd ..
-tar xzf linux-${PV}_${PV}-1.debian.tar.gz -C ${REPACK_DIR}
+
 dpkg-deb -R linux-image-${PV}_${PV}-1_*.deb ${REPACK_LINUX_IMAGE_DIR}
 dpkg-deb -R linux-headers-${PV}_${PV}-1_*.deb ${REPACK_LINUX_HEADERS_DIR}
 
-- 
2.16.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-01 10:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-30 16:55 [PATCH] linux-custom: Add support for kernels >= 4.17 Jan Kiszka
2018-10-01  7:46 ` Maxim Yu. Osipov
2018-10-01  7:54   ` Jan Kiszka
2018-10-01  8:19     ` Jan Kiszka
2018-10-01  8:50       ` Jan Kiszka
2018-10-01  9:02         ` Maxim Yu. Osipov
2018-10-01 10:51 ` Maxim Yu. Osipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox