diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-01-30 15:57:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-01-30 15:57:45 +0000 |
commit | c0546a105cdcd16b78f3fa8fd9e5b59d0d3099de (patch) | |
tree | ee62aaa22f5416f2d08f9c7698ab8e4e3b3c7746 | |
parent | 62896c28e9889803fbe479fe94b0cae2ee9681bb (diff) | |
download | lh-bootstrap-c0546a105cdcd16b78f3fa8fd9e5b59d0d3099de.tar.gz lh-bootstrap-c0546a105cdcd16b78f3fa8fd9e5b59d0d3099de.tar.xz lh-bootstrap-c0546a105cdcd16b78f3fa8fd9e5b59d0d3099de.zip |
Hardcode virtio-net into the kernel to avoid race condition; add s6lu
-rw-r--r-- | layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies | 1 | ||||
-rw-r--r-- | layout/rootfs/etc/s6-rc/source-base/init-route/dependencies | 1 | ||||
-rw-r--r-- | sub/kernel/qemu-system-aarch64-config | 8 | ||||
-rw-r--r-- | sub/skarnet.org/Makefile | 21 |
4 files changed, 22 insertions, 9 deletions
diff --git a/layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies index 97749cc..f4c707c 100644 --- a/layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies +++ b/layout/rootfs/etc/s6-rc/source-base/init-eth0/dependencies @@ -1,2 +1 @@ init-sysctl -init-coldplug diff --git a/layout/rootfs/etc/s6-rc/source-base/init-route/dependencies b/layout/rootfs/etc/s6-rc/source-base/init-route/dependencies index 9280d84..61c05ca 100644 --- a/layout/rootfs/etc/s6-rc/source-base/init-route/dependencies +++ b/layout/rootfs/etc/s6-rc/source-base/init-route/dependencies @@ -1,2 +1 @@ init-eth0 -mdevd diff --git a/sub/kernel/qemu-system-aarch64-config b/sub/kernel/qemu-system-aarch64-config index 1282fe1..d45fc18 100644 --- a/sub/kernel/qemu-system-aarch64-config +++ b/sub/kernel/qemu-system-aarch64-config @@ -913,7 +913,7 @@ CONFIG_FIB_RULES=y CONFIG_DST_CACHE=y CONFIG_GRO_CELLS=y CONFIG_NET_SOCK_MSG=y -CONFIG_FAILOVER=m +CONFIG_FAILOVER=y CONFIG_HAVE_EBPF_JIT=y # @@ -1235,7 +1235,7 @@ CONFIG_NET_CORE=y CONFIG_TUN=m # CONFIG_TUN_VNET_CROSS_LE is not set CONFIG_VETH=m -CONFIG_VIRTIO_NET=m +CONFIG_VIRTIO_NET=y # CONFIG_NLMON is not set # CONFIG_ARCNET is not set @@ -1262,7 +1262,7 @@ CONFIG_VIRTIO_NET=m # # CONFIG_WAN is not set # CONFIG_VMXNET3 is not set -CONFIG_NET_FAILOVER=m +CONFIG_NET_FAILOVER=y # CONFIG_ISDN is not set # CONFIG_NVM is not set @@ -1888,7 +1888,6 @@ CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_RNG_DEFAULT=m CONFIG_CRYPTO_AKCIPHER2=y CONFIG_CRYPTO_KPP2=y -CONFIG_CRYPTO_KPP=m CONFIG_CRYPTO_ACOMP2=y CONFIG_CRYPTO_MANAGER=m CONFIG_CRYPTO_MANAGER2=y @@ -2029,7 +2028,6 @@ CONFIG_CRYPTO_LIB_AES=m CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=m CONFIG_CRYPTO_LIB_CHACHA_GENERIC=m # CONFIG_CRYPTO_LIB_CHACHA is not set -CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=m # CONFIG_CRYPTO_LIB_CURVE25519 is not set CONFIG_CRYPTO_LIB_DES=m CONFIG_CRYPTO_LIB_POLY1305_RSIZE=9 diff --git a/sub/skarnet.org/Makefile b/sub/skarnet.org/Makefile index fa67b31..ec5e18e 100644 --- a/sub/skarnet.org/Makefile +++ b/sub/skarnet.org/Makefile @@ -14,7 +14,6 @@ S6_VERSION := 4ad28c83818e3b7b351ac328e3753d8dab8b2804 S6_RC_VERSION := 40939adadfae8f06835f202aca7d243210c25226 S6_LINUX_INIT_VERSION := 6a1207350d876659296c6aab7cd1063bbb3d0ed1 MDEVD_VERSION := 7430c9be1d379ae1eb0626ec67968b6edcfbf7d6 -BCNM_VERSION := fe28e76256c4ff7d1af53ad3940bf737f6000107 SKARNET_CONF_STATIC := $(if $(filter true,$(BUILD_HOST_STATIC)),--disable-shared --enable-static-libc,--enable-shared --disable-allstatic) SKALIBS_FIND_OPTIONS := --with-sysdeps=$(OUTPUT)/rootfs/package/prog/skalibs/sysdeps --with-include=$(OUTPUT)/rootfs/package/prog/skalibs/include --with-lib=$(OUTPUT)/rootfs/package/prog/skalibs/library --with-dynlib=$(OUTPUT)/rootfs/package/prog/skalibs/library.so @@ -365,6 +364,24 @@ $(OUTPUT)/build-host/.lh_s6li_laidout: $(OUTPUT)/build-host/.lh_s6li_installed | exec setuidgid $(NORMALUSER) s6-touch $@ +$(OUTPUT)/build-host/.lh_s6lu_copied: $(OUTPUT)/sources/.lh_s6lu_cloned | $(OUTPUT)/build-build/.lh_skarnet_installed + exec setuidgid $(NORMALUSER) s6-rmrf $(OUTPUT)/build-host/s6-linux-utils + exec setuidgid $(NORMALUSER) s6-hiercopy $(OUTPUT)/sources/s6-linux-utils $(OUTPUT)/build-host/s6-linux-utils + exec setuidgid $(NORMALUSER) s6-touch $@ + +$(OUTPUT)/build-host/.lh_s6lu_configured: $(OUTPUT)/build-host/.lh_s6lu_copied $(OUTPUT)/build-host/.lh_skalibs_installed | $(OUTPUT)/build-build/.lh_skarnet_installed + exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-host/s6-linux-utils ./configure --host=$(TRIPLE) --enable-slashpackage $(SKARNET_CONF_STATIC) $(SKALIBS_FIND_OPTIONS) + exec setuidgid $(NORMALUSER) touch $@ + +$(OUTPUT)/build-host/.lh_s6lu_built: $(OUTPUT)/build-host/.lh_s6lu_configured $(OUTPUT)/build-host/.lh_skalibs_installed | $(OUTPUT)/build-build/.lh_skarnet_installed + exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-host/s6-linux-utils $(MAKE) all strip + exec setuidgid $(NORMALUSER) s6-touch $@ + +$(OUTPUT)/build-host/.lh_s6lu_installed: $(OUTPUT)/build-host/.lh_s6lu_built | $(OUTPUT)/tmp/.lh_prepared $(OUTPUT)/build-build/.lh_skarnet_installed + exec cd $(OUTPUT)/build-host/s6-linux-utils $(MAKE) install update global-links DESTDIR=$(OUTPUT)/rootfs + exec setuidgid $(NORMALUSER) s6-touch $@ + + $(OUTPUT)/build-host/.lh_mdevd_copied: $(OUTPUT)/sources/.lh_mdevd_cloned | $(OUTPUT)/build-build/.lh_skarnet_installed exec setuidgid $(NORMALUSER) s6-rmrf $(OUTPUT)/build-host/mdevd exec setuidgid $(NORMALUSER) s6-hiercopy $(OUTPUT)/sources/mdevd $(OUTPUT)/build-host/mdevd @@ -383,5 +400,5 @@ $(OUTPUT)/build-host/.lh_mdevd_installed: $(OUTPUT)/build-host/.lh_mdevd_built | exec setuidgid $(NORMALUSER) s6-touch $@ -$(OUTPUT)/build-host/.lh_skarnet_installed: $(OUTPUT)/build-host/.lh_skalibs_installed $(OUTPUT)/build-host/.lh_execline_installed $(OUTPUT)/build-host/.lh_s6dns_installed $(OUTPUT)/build-host/.lh_s6net_installed $(OUTPUT)/build-host/.lh_s6_installed $(OUTPUT)/build-host/.lh_s6rc_installed $(OUTPUT)/build-host/.lh_s6li_laidout $(OUTPUT)/build-host/.lh_mdevd_installed | $(OUTPUT)/build-build/.lh_skarnet_installed +$(OUTPUT)/build-host/.lh_skarnet_installed: $(OUTPUT)/build-host/.lh_skalibs_installed $(OUTPUT)/build-host/.lh_execline_installed $(OUTPUT)/build-host/.lh_s6dns_installed $(OUTPUT)/build-host/.lh_s6net_installed $(OUTPUT)/build-host/.lh_s6_installed $(OUTPUT)/build-host/.lh_s6rc_installed $(OUTPUT)/build-host/.lh_s6li_laidout $(OUTPUT)/build-host/.lh_s6lu_installed $(OUTPUT)/build-host/.lh_mdevd_installed | $(OUTPUT)/build-build/.lh_skarnet_installed exec setuidgid $(NORMALUSER) s6-touch $@ |