Skip to contentSkip to conversation

Cleanups & qemu-armhf target addition

PATCH New Jan Kiszka 1 participant 4 messages Nov 26, 2018

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

cover Cleanups & qemu-armhf target addition

Mostly brings the qemu-armhf target. See patches for other details.

Jan

Jan Kiszka (3):
customizations: Remove obsolete cleanup and chown
linux-xenomai: Fix arm64 SRC_URI
Add qemu-armhf target

 .../files/ethernet => board-qemu-armhf.yml         |   11 +-
 .../files/ethernet => conf/machine/qemu-armhf.conf |    9 +-
 .../multiconfig/qemu-armhf-xenomai-demo.conf       |    9 +-
 recipes-core/customizations/customizations.bb      |    4 -
 recipes-core/customizations/files/ethernet         |    2 +-
 recipes-kernel/linux/files/armhf_defconfig         | 7248 ++++++++++++++++++++
 recipes-kernel/linux/linux-xenomai_4.14.bb         |    6 +-
 start-qemu.sh                                      |   14 +
 8 files changed, 7276 insertions(+), 27 deletions(-)
 copy recipes-core/customizations/files/ethernet => board-qemu-armhf.yml (54%)
 copy recipes-core/customizations/files/ethernet => conf/machine/qemu-armhf.conf (54%)
 copy recipes-core/customizations/files/ethernet => conf/multiconfig/qemu-armhf-xenomai-demo.conf (54%)
 create mode 100644 recipes-kernel/linux/files/armhf_defconfig
Signature · 1 line
2.16.4
author
#1 lore raw

PATCH 1/3 customizations: Remove obsolete cleanup and chown

From: Jan Kiszka <[email protected]>

Isar does that for us now.

---
 recipes-core/customizations/customizations.bb | 4 ----
 1 file changed, 4 deletions(-)
recipes-core/customizations/customizations.bb +0 -4
index fd41a09..e35c0a5 100644
@@ -21,13 +21,9 @@ SRC_URI = " \
 DEBIAN_DEPENDS = "passwd"
 
 do_install() {
-	sudo rm -rf ${D}/etc ${D}/root
-
 	install -v -d ${D}/etc/network/interfaces.d
 	install -v -m 644 ${WORKDIR}/ethernet ${D}/etc/network/interfaces.d/
 
 	install -v -d ${D}/etc/sysctl.d
 	install -v -m 644 ${WORKDIR}/99-silent-printk.conf ${D}/etc/sysctl.d/
-
-	sudo chown -R root:root ${D}/etc
 }
Signature · 1 line
2.16.4
author
#2 lore raw

PATCH 2/3 linux-xenomai: Fix arm64 SRC_URI

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Use the stable branch, the split one no longer exists.

---
 recipes-kernel/linux/linux-xenomai_4.14.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-xenomai_4.14.bb +1 -1
index 1bc139c..c668d75 100644
@@ -15,7 +15,7 @@ SRC_URI_append_amd64 = " git://gitlab.denx.de/Xenomai/ipipe-x86.git;protocol=htt
 SRCREV_amd64 = "5dec184b4c190bd3ef4d448fc80c7f2251cfd744"
 PV_amd64 = "4.14.78+"
 
-SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;branch=v4.14.71-split"
+SRC_URI_append_arm64 = " git://gitlab.denx.de/Xenomai/ipipe-arm64.git;protocol=https;branch=stable/4.14.71-arm64"
 SRCREV_arm64 = "d24e3f9e425af92f4a181306d22d4b799e71a370"
 PV_arm64 = "4.14.71+"
 
Signature · 1 line
2.16.4
author
#3 lore raw

PATCH 3/3 Add qemu-armhf target

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

This implements the QEMU target for ARMv7 (armhf).

---
 .../files/ethernet => board-qemu-armhf.yml         |   11 +-
 .../files/ethernet => conf/machine/qemu-armhf.conf |    9 +-
 .../multiconfig/qemu-armhf-xenomai-demo.conf       |    9 +-
 recipes-core/customizations/files/ethernet         |    2 +-
 recipes-kernel/linux/files/armhf_defconfig         | 7248 ++++++++++++++++++++
 recipes-kernel/linux/linux-xenomai_4.14.bb         |    4 +
 start-qemu.sh                                      |   14 +
 7 files changed, 7275 insertions(+), 22 deletions(-)
 copy recipes-core/customizations/files/ethernet => board-qemu-armhf.yml (54%)
 copy recipes-core/customizations/files/ethernet => conf/machine/qemu-armhf.conf (54%)
 copy recipes-core/customizations/files/ethernet => conf/multiconfig/qemu-armhf-xenomai-demo.conf (54%)
 create mode 100644 recipes-kernel/linux/files/armhf_defconfig
board-qemu-armhf.yml renamed from recipes-core/customizations/files/ethernet +4 -7
similarity index 54%
copy from recipes-core/customizations/files/ethernet
copy to board-qemu-armhf.yml
index b180765..5b74b48 100644
@@ -9,11 +9,8 @@
 # SPDX-License-Identifier: MIT
 #
 
-allow-hotplug eth0
-allow-hotplug enp0s2
+header:
+  version: 8
 
-# used on qemu-arm64
-iface eth0 inet dhcp
-
-# used on qemu-amd64
-iface enp0s2 inet dhcp
+machine: qemu-armhf
+target: demo-image-qemu-armhf
conf/machine/qemu-armhf.conf renamed from recipes-core/customizations/files/ethernet +2 -7
similarity index 54%
copy from recipes-core/customizations/files/ethernet
copy to conf/machine/qemu-armhf.conf
index b180765..93c058f 100644
@@ -9,11 +9,6 @@
 # SPDX-License-Identifier: MIT
 #
 
-allow-hotplug eth0
-allow-hotplug enp0s2
+require qemu-machine.inc
 
-# used on qemu-arm64
-iface eth0 inet dhcp
-
-# used on qemu-amd64
-iface enp0s2 inet dhcp
+DISTRO_ARCH = "armhf"
conf/multiconfig/qemu-armhf-xenomai-demo.conf renamed from recipes-core/customizations/files/ethernet +2 -7
similarity index 54%
copy from recipes-core/customizations/files/ethernet
copy to conf/multiconfig/qemu-armhf-xenomai-demo.conf
index b180765..24c86d3 100644
@@ -9,11 +9,6 @@
 # SPDX-License-Identifier: MIT
 #
 
-allow-hotplug eth0
-allow-hotplug enp0s2
+MACHINE = "qemu-armhf"
 
-# used on qemu-arm64
-iface eth0 inet dhcp
-
-# used on qemu-amd64
-iface enp0s2 inet dhcp
+DISTRO = "xenomai-demo"
recipes-core/customizations/files/ethernet +1 -1
index b180765..d282ce1 100644
@@ -12,7 +12,7 @@
 allow-hotplug eth0
 allow-hotplug enp0s2
 
-# used on qemu-arm64
+# used on qemu-arm and qemu-arm64
 iface eth0 inet dhcp
 
 # used on qemu-amd64
recipes-kernel/linux/files/armhf_defconfig new file +7248 -0

2,951 lines not on this page · raw message

recipes-kernel/linux/linux-xenomai_4.14.bb +4 -0
index c668d75..53d1ae8 100644

Lines of this file are not shown. View the raw message.

start-qemu.sh +14 -0
index c56c234..fc63c7c 100755

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.16.4

Part of the diff is not shown here. View the raw message.