Skip to contentSkip to conversation

linux-xenomai: Use --outpatch for preparing the kernel

PATCH New Jan Kiszka 1 participant 1 message Nov 27, 2019

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 linux-xenomai: Use --outpatch for preparing the kernel

From: Jan Kiszka <[email protected]>

This ensures that we no longer depend on xenomai-kernel-source for the generated linux-headers package. This will become important when using it in environments that do not have the former installed because the headers packages does not express this dependency.

---
 recipes-kernel/linux/linux-xenomai.inc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
recipes-kernel/linux/linux-xenomai.inc +5 -3
index 1d153cd..3388776 100644
@@ -37,7 +37,9 @@ dpkg_runbuild_prepend() {
 	bbplain $(printf "linux-xenomai-%s: Building revision %.20s\n" \
 			 ${PV} ${LINUX_COMMIT})
 
-	sudo chroot --userspec=$( id -u ):$( id -g ) ${BUILDCHROOT_DIR} \
-		/usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh \
-			--linux=${PP}/${PPS} --arch=$ARCH
+	${BUILDCHROOT_DIR}/usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh \
+		--linux=${BUILDCHROOT_DIR}/${PP}/${PPS} --arch=$ARCH \
+		--outpatch=${WORKDIR}/xenomai-kernel.patch
+	patch -d ${BUILDCHROOT_DIR}/${PP}/${PPS} \
+		-p1 -i ${WORKDIR}/xenomai-kernel.patch
 }
Signature · 6 lines
2.16.4


-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux