Skip to contentSkip to conversation

init-ifupdown: Define interfaces file for riscv emulators

PATCH New Khem Raj 1 participant 5 messages Oct 28, 2020 RISC-V

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 init-ifupdown: Define interfaces file for riscv emulators

---
 .../init-ifupdown-1.0/qemuriscv32/interfaces              | 8 ++++++++
 .../init-ifupdown-1.0/qemuriscv64/interfaces              | 8 ++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuriscv32/interfaces
 create mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuriscv64/interfaces
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuriscv32/interfaces new file +8 -0
new file mode 100644
index 0000000000..f62b9a897d
@@ -0,0 +1,8 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+ 
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+
+
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuriscv64/interfaces new file +8 -0
new file mode 100644
index 0000000000..f62b9a897d
@@ -0,0 +1,8 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+ 
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+
+
Signature · 1 line
2.28.0
author
#1 lore raw

PATCH 1/1 musl: Update to latest master

Changes in this revision bump are
* 0b87551b (upstream/master) lift sigaction abort locking to fix posix_spawn child deadlock
* 99d5098a update crypt_blowfish to support $2b$ prefix
* 957c2763 remove unused weak definition of __tl_sync in membarrier.c
* 55767360 move aio implementation details to a proper internal header
* 37337660 remove long-unused struct __timer from pthread_impl.h
* 85e16aec drop use of pthread_once in timer_create
* 6ae2568b remove unused SIGTIMER handler in timer_create
* 47baa030 remove incorrect fflush from assert failure handler
* da845d52 fix getgrouplist when nscd reports an empty list
* b7bc9665 fix posix_spawn interaction with fork and abort by taking lock
* 25ea9f71 fix unintended observability of SIGABRT disposition reset via sigaction
* bd153422 implement _Fork and refactor fork using it
* e1e98d86 rename fork source file
* 50716702 ldso: use pthread_t rather than kernel tid to track ctor visitor
* 1efc8eb2 fix stale lock when allocation of ctor queue fails during dlopen
* 69a1b390 drop use of pthread_once in mutexattr kernel support tests
* b115bee4 fix missing synchronization of fork with abort
* 3cd3de61 move __abort_lock to its own file and drop pointless weak_alias trick
* 34904d83 fix fork of processes with active async io contexts

Details are here [1]

[1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=a5aff1972c9e3981566414b09a28e331ccd2be5d..0b87551bdfb74ac411caa335d8ad0b89a7f139c6

---
 meta/recipes-core/musl/musl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/musl/musl_git.bb +1 -1
index 9c0818cfa5..897e56e10f 100644
@@ -4,7 +4,7 @@
 require musl.inc
 inherit linuxloader
 
-SRCREV = "a5aff1972c9e3981566414b09a28e331ccd2be5d"
+SRCREV = "0b87551bdfb74ac411caa335d8ad0b89a7f139c6"
 
 BASEVER = "1.2.1"
 
Signature · 1 line
2.29.1
author
#2 lore raw

Re: [PATCH] musl: Update to latest master

ignore this one. an exact patch is already sent earlier today

Quoted 47 lines · Khem Raj

Changes in this revision bump are
* 0b87551b (upstream/master) lift sigaction abort locking to fix posix_spawn child deadlock
* 99d5098a update crypt_blowfish to support $2b$ prefix
* 957c2763 remove unused weak definition of __tl_sync in membarrier.c
* 55767360 move aio implementation details to a proper internal header
* 37337660 remove long-unused struct __timer from pthread_impl.h
* 85e16aec drop use of pthread_once in timer_create
* 6ae2568b remove unused SIGTIMER handler in timer_create
* 47baa030 remove incorrect fflush from assert failure handler
* da845d52 fix getgrouplist when nscd reports an empty list
* b7bc9665 fix posix_spawn interaction with fork and abort by taking lock
* 25ea9f71 fix unintended observability of SIGABRT disposition reset via sigaction
* bd153422 implement _Fork and refactor fork using it
* e1e98d86 rename fork source file
* 50716702 ldso: use pthread_t rather than kernel tid to track ctor visitor
* 1efc8eb2 fix stale lock when allocation of ctor queue fails during dlopen
* 69a1b390 drop use of pthread_once in mutexattr kernel support tests
* b115bee4 fix missing synchronization of fork with abort
* 3cd3de61 move __abort_lock to its own file and drop pointless weak_alias trick
* 34904d83 fix fork of processes with active async io contexts

Details are here [1]

[1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=a5aff1972c9e3981566414b09a28e331ccd2be5d..0b87551bdfb74ac411caa335d8ad0b89a7f139c6

---
 meta/recipes-core/musl/musl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/musl/musl_git.bb +1 -2
index 9c0818cfa5..897e56e10f 100644
@@ -4,7 +4,7 @@
 require musl.inc
 inherit linuxloader
 
-SRCREV = "a5aff1972c9e3981566414b09a28e331ccd2be5d"
+SRCREV = "0b87551bdfb74ac411caa335d8ad0b89a7f139c6"
 
 BASEVER = "1.2.1"
 
--

2.29.1

author
#3 lore raw

PATCH 2/3 init-ifupdown: Merge all interface files for differnet qemus

In reply to Khem Raj

all these were exact copies, therefore just use qemuall to house this file as it will be same across all qemu machines

Additionally, it can support out of tree qemu definitions better eg. qemuppc64

---
 .../init-ifupdown-1.0/{qemuarm => qemuall}/interfaces     | 0
 .../init-ifupdown/init-ifupdown-1.0/qemuarm64/interfaces  | 5 -----
 .../init-ifupdown/init-ifupdown-1.0/qemuarmv6/interfaces  | 5 -----
 .../init-ifupdown/init-ifupdown-1.0/qemuarmv7/interfaces  | 5 -----
 .../init-ifupdown/init-ifupdown-1.0/qemumips/interfaces   | 8 --------
 .../init-ifupdown/init-ifupdown-1.0/qemumips64/interfaces | 8 --------
 .../init-ifupdown/init-ifupdown-1.0/qemuppc/interfaces    | 8 --------
 .../init-ifupdown-1.0/qemuriscv32/interfaces              | 8 --------
 .../init-ifupdown-1.0/qemuriscv64/interfaces              | 8 --------
 .../init-ifupdown/init-ifupdown-1.0/qemush4/interfaces    | 8 --------
 .../init-ifupdown/init-ifupdown-1.0/qemux86-64/interfaces | 8 --------
 .../init-ifupdown/init-ifupdown-1.0/qemux86/interfaces    | 8 --------
 12 files changed, 79 deletions(-)
 rename meta/recipes-core/init-ifupdown/init-ifupdown-1.0/{qemuarm => qemuall}/interfaces (100%)
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarm64/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarmv6/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarmv7/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemumips/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemumips64/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuppc/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuriscv32/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuriscv64/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemush4/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemux86-64/interfaces
 delete mode 100644 meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemux86/interfaces
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces renamed from meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarm/interfaces +0 -0
similarity index 100%
rename from meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarm/interfaces
rename to meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarm64/interfaces deleted +0 -5
deleted file mode 100644
index 16967763e5..0000000000
@@ -1,5 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarmv6/interfaces deleted +0 -5
deleted file mode 100644
index 16967763e5..0000000000
@@ -1,5 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuarmv7/interfaces deleted +0 -5
deleted file mode 100644
index 16967763e5..0000000000
@@ -1,5 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemumips/interfaces deleted +0 -8
deleted file mode 100644
index f62b9a897d..0000000000
@@ -1,8 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-
-
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemumips64/interfaces deleted +0 -8
deleted file mode 100644
index f62b9a897d..0000000000
@@ -1,8 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-
-
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuppc/interfaces deleted +0 -8
deleted file mode 100644
index f62b9a897d..0000000000
@@ -1,8 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-
-
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuriscv32/interfaces deleted +0 -8
deleted file mode 100644
index f62b9a897d..0000000000
@@ -1,8 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-
-
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuriscv64/interfaces deleted +0 -8
deleted file mode 100644
index f62b9a897d..0000000000
@@ -1,8 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-
-
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemush4/interfaces deleted +0 -8
deleted file mode 100644
index f62b9a897d..0000000000
@@ -1,8 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-
-
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemux86-64/interfaces deleted +0 -8
deleted file mode 100644
index f62b9a897d..0000000000
@@ -1,8 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-
-
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemux86/interfaces deleted +0 -8
deleted file mode 100644
index f62b9a897d..0000000000
@@ -1,8 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
- 
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-
-
Signature · 1 line
2.28.0
author
#4 lore raw

PATCH 3/3 qemuboot.bbclass: Fix a typo

In reply to Khem Raj
---
 meta/classes/qemuboot.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/qemuboot.bbclass +1 -1
index 824676216e..4b7532b304 100644
@@ -43,7 +43,7 @@
 #                          QB_NETWORK_DEVICE_prepend might be used, since Qemu enumerates the eth*
 #                          devices in reverse order to -device arguments.
 #
-# QB_TAP_OPT: netowrk option for 'tap' mode, e.g.,
+# QB_TAP_OPT: network option for 'tap' mode, e.g.,
 #             "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
 #              Note, runqemu will replace "@TAP@" with the one which is used, such as tap0, tap1 ...
 #
Signature · 1 line
2.28.0