Planck: the complete build cascade

One x86-64 Planck leaf, every source rung needed to build it. Run as your ordinary user, inside a writable folder.

Download the complete source archive (preserves executable modes). Download the archive checksum. Read the build guide. Inspect the entry point.

Extract the archive, enter its folder, then:

./0000-entry-point.sh
./000-playbook.mjs --only x86/64/0300-planck-svn --step 2
./000-playbook.mjs --only x86/64/0300-planck-svn --step 3

The build uses Linux x86_64, a shell, curl and network access. It bootstraps its runtime and compiler inside the folder. No root build step. KVM is optional for running Planck, but recommended for speed.

Read every source file

    7353  000-playbook.mjs
     848  0000-entry-point.sh
    4298  README.txt
    2542  kernel-flavors/linux/arch/build.mjs
    8480  kernel-flavors/linux/arch/qemu-machine.mjs
   50624  kernel-flavors/linux/arch/report.mjs
     958  kernel-flavors/linux/arch/setup.mjs
    7713  kernel-flavors/linux/arch/x86/64/0300-planck-svn/030-functional.config
    2286  kernel-flavors/linux/arch/x86/64/0300-planck-svn/INGREDIENTS.txt
    2328  kernel-flavors/linux/arch/x86/64/0300-planck-svn/README.md
   11328  kernel-flavors/linux/arch/x86/64/0300-planck-svn/build.mjs
     270  kernel-flavors/linux/arch/x86/64/0300-planck-svn/dropbear-localoptions.h
    1148  kernel-flavors/linux/arch/x86/64/0300-planck-svn/planckinit.manifest
     769  kernel-flavors/linux/arch/x86/64/0300-planck-svn/report.mjs
     480  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/home/svn/.ssh/authorized_keys
     131  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/home/svn/bin/.keep
     590  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/home/svn/repos/.keep
      22  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/.profile
     191  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/.ssh/authorized_keys
     353  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/applets
     121  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/bin/.keep
     126  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/dropbear/.keep
      26  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/group
    2685  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/inittab
      82  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/passwd
      30  kernel-flavors/linux/arch/x86/64/0300-planck-svn/rootfs/root/shells
    3419  kernel-flavors/linux/arch/x86/64/0300-planck-svn/run.mjs
    2262  kernel-flavors/linux/arch/x86/64/build.mjs
    1498  kernel-flavors/linux/arch/x86/64/report.mjs
    2434  kernel-flavors/linux/arch/x86/64/setup.mjs
     931  kernel-flavors/linux/arch/x86/build.mjs
    1080  kernel-flavors/linux/arch/x86/report.mjs
     625  kernel-flavors/linux/arch/x86/setup.mjs
    2749  kernel-flavors/linux/arch/x86/stack-config.mjs
    3520  kernel-flavors/linux/build-cross-gcc.mjs
   22728  kernel-flavors/linux/build-planck-init.mjs
   25779  kernel-flavors/linux/build.mjs
   10942  kernel-flavors/linux/dropbear-builder/build-dropbear.mjs
    2018  kernel-flavors/linux/dropbear-builder/localoptions-inetd-ed25519.h
     889  kernel-flavors/linux/planck-box/010-arch-x86-64.config
    1962  kernel-flavors/linux/planck-box/020-minimize.config
     365  kernel-flavors/linux/planck-box/025-unwinder.config
    6814  kernel-flavors/linux/planck-box/RECIPE.txt
   11051  kernel-flavors/linux/planck-box/boot-test.mjs
     797  kernel-flavors/linux/planck-box/patches/040-stop-forcing-bpf.patch
     762  kernel-flavors/linux/planck-box/patches/045-build-tcp-without-bpf.patch
    6244  kernel-flavors/linux/planck-box/patches/050-remove-socket-filter-and-reuseport.patch
    2623  kernel-flavors/linux/planck-box/patches/060-stub-unreachable-bpf-hooks.patch
    1757  kernel-flavors/linux/planck-box/patches/065-disable-reuseport.patch
    5304  kernel-flavors/linux/planck-box/patches/070-remove-ethtool.patch
    3586  kernel-flavors/linux/planck-box/patches/080-remove-virtio-failover.patch
    3958  kernel-flavors/linux/planck-box/patches/090-disable-route-netlink-control.patch
    2385  kernel-flavors/linux/planck-box/patches/100-remove-udp-lite.patch
    1608  kernel-flavors/linux/planck-box/patches/110-remove-netdev-generic-netlink.patch
    2023  kernel-flavors/linux/planck-box/patches/120-remove-socket-diagnostics.patch
    3649  kernel-flavors/linux/planck-box/patches/130-remove-tcp-metrics-and-genetlink.patch
    2495  kernel-flavors/linux/planck-box/patches/140-remove-ip-tunnel-and-gre.patch
    3385  kernel-flavors/linux/planck-box/patches/150-remove-ipv4-multicast.patch
    2525  kernel-flavors/linux/planck-box/patches/160-remove-ping-sockets.patch
    1649  kernel-flavors/linux/planck-box/patches/170-remove-tcp-ulp.patch
    2497  kernel-flavors/linux/planck-box/patches/180-reject-ipv4-options.patch
    2296  kernel-flavors/linux/planck-box/patches/190-remove-ipv4-rtnetlink-handlers.patch
    2000  kernel-flavors/linux/planck-box/patches/200-remove-nexthop-and-route-attribute-engines.patch
    3447  kernel-flavors/linux/planck-box/patches/210-remove-fib-notification-fanout.patch
    2927  kernel-flavors/linux/planck-box/patches/280-reject-ipv4-fragments.patch
     755  kernel-flavors/linux/planck-box/patches/285-ra-chain-drops-fragments.patch
    2830  kernel-flavors/linux/planck-box/patches/300-stop-negotiating-net-offloads.patch
    4150  kernel-flavors/linux/planck-box/patches/310-remove-flow-dissector.patch
    2999  kernel-flavors/linux/planck-box/patches/340-disable-tcp-fast-open.patch
    1120  kernel-flavors/linux/planck-box/patches/350-ipv4-no-proc-net-files.patch
    2091  kernel-flavors/linux/planck-box/patches/400-x86-no-2mb-padding.patch
    1651  kernel-flavors/linux/planck-box/patches/410-memmap-only-for-existing-pages.patch
    1113  kernel-flavors/linux/planck-box/patches/420-virtio-ring-at-most-32.patch
    1523  kernel-flavors/linux/planck-box/patches/430-no-rescuer-threads.patch
    1009  kernel-flavors/linux/planck-box/patches/440-no-oom-reaper-thread.patch
    4909  kernel-flavors/linux/planck-box/patches/450-sysctl-sysfs-without-the-removed-net-parts.patch
    1321  kernel-flavors/linux/planck-box/patches/460-genetlink-back-for-in-kernel-families.patch
    1274  kernel-flavors/linux/planck-box/patches/470-nfsd-no-nfsdcld-wait-without-pipefs.patch
    9199  kernel-flavors/linux/planck-libc/patches/musl/1.2.6/0001-system-files-in-root-home.patch
    1525  kernel-flavors/linux/planckbox-builder/appliance.applets
   17784  kernel-flavors/linux/planckbox-builder/build-planckbox.mjs
    1175  kernel-flavors/linux/planckbox-builder/source.mjs
    3438  kernel-flavors/linux/planckinit-builder/planck-fmt.c
   10044  kernel-flavors/linux/planckinit-builder/planck-init.c
    1135  kernel-flavors/linux/planckinit-builder/planck-init.h
    6924  kernel-flavors/linux/planckinit-builder/planck-inittab.c
    6696  kernel-flavors/linux/planckinit-builder/planck-ipv4.c
    5096  kernel-flavors/linux/planckinit-builder/planck-listen.c
    2259  kernel-flavors/linux/planckinit-builder/planck-log.c
     899  kernel-flavors/linux/planckinit-builder/planck-mount.c
     530  kernel-flavors/linux/planckinit-builder/planck-run.c
    3499  kernel-flavors/linux/setup.mjs
   10138  kernel-flavors/linux/stack-config.mjs
    7878  kernel-flavors/linux/static-userland.mjs
     251  kernel-flavors/linux/tools.manifest
    2022  kernel-flavors/linux/x86-width.mjs
    2205  kernel-flavors/setup.mjs
    5431  node_modules/build-steps/cache-seed.mjs
    2060  node_modules/build-steps/load.mjs
    3025  node_modules/build-steps/step.mjs
    7425  node_modules/ccache/build.mjs
     936  node_modules/cpu/cpu-load.mjs
    4618  node_modules/cpu/cpus.mjs
    4272  node_modules/cpu/list-core-types.mjs
    1009  node_modules/cpu/list-power-cores.mjs
     761  node_modules/ctng-buildenv/ProvisioningIsolate.pm
    3295  node_modules/ctng-buildenv/recipe
     424  node_modules/dropbearkey/PROVENANCE.md
    7121  node_modules/dropbearkey/build.mjs
    1004  node_modules/dropbearkey/source.mjs
    6027  node_modules/elf/elf.mjs
   13668  node_modules/file-transfers/fetch.mjs
    2283  node_modules/file-transfers/pin.mjs
    5465  node_modules/file-transfers/rsync-publish
    5728  node_modules/file-transfers/untar.mjs
    5940  node_modules/file-transfers/zip.mjs
    4088  node_modules/kernel/boot-memory.mjs
    6016  node_modules/kernel/kernel-source.mjs
    4264  node_modules/kernel/patched-source.mjs
    9790  node_modules/kernel/zfs-graft.mjs
    3808  node_modules/provisioning/alpine-index.mjs
    1305  node_modules/provisioning/apk-pins.json
    4398  node_modules/provisioning/apk-pins.mjs
    4470  node_modules/provisioning/bootstrap-packages.json
    4764  node_modules/provisioning/bootstrap-pins.mjs
   11303  node_modules/provisioning/bootstrap.mjs
   21917  node_modules/provisioning/env.mjs
   15239  node_modules/provisioning/launcher.c
    2595  node_modules/provisioning/legacy/ccache.mjs
    2960  node_modules/provisioning/legacy/python.mjs
    6167  node_modules/provisioning/nearest.c
   33715  node_modules/provisioning/provision.mjs
   69853  node_modules/provisioning/relocate.mjs
    8510  node_modules/provisioning/toolchain.mjs
   75289  node_modules/qemu/build-qemu.mjs
     257  node_modules/qemu/provision.json
    1954  node_modules/qemu/qemu-img.mjs
    1951  node_modules/qemu/qemu-io.mjs
    1954  node_modules/qemu/qemu-nbd.mjs
    1987  node_modules/qemu/qemu-storage-daemon.mjs
    1984  node_modules/qemu/qemu-system-x86_64.mjs
     319  node_modules/qemu/tools.json
   22146  node_modules/script-arguments/argument-handler.mjs
   23429  node_modules/svn/build.mjs
     287  node_modules/svn/package.json
    2218  node_modules/svn/sources.mjs
     882  node_modules/svn/svn.mjs
    2992  node_modules/svn/versioned-files.mjs
   54593  node_modules/toolchains/build-cross-gcc.mjs
    4543  node_modules/toolchains/cache/binutils/bfd/config.cache
    3663  node_modules/toolchains/cache/binutils/binutils/config.cache
     626  node_modules/toolchains/cache/binutils/config.cache
      81  node_modules/toolchains/cache/binutils/etc/config.cache
    2874  node_modules/toolchains/cache/binutils/gas/config.cache
    2360  node_modules/toolchains/cache/binutils/gprof/config.cache
    3956  node_modules/toolchains/cache/binutils/ld/config.cache
    3748  node_modules/toolchains/cache/binutils/libctf/config.cache
    8995  node_modules/toolchains/cache/binutils/libiberty/config.cache
    3057  node_modules/toolchains/cache/binutils/libsframe/config.cache
    2273  node_modules/toolchains/cache/binutils/opcodes/config.cache
    2209  node_modules/toolchains/cache/binutils/zlib/config.cache
    4663  node_modules/toolchains/cache/gcc/build-x86_64-build_pc-linux-musl/fixincludes/config.cache
    6020  node_modules/toolchains/cache/gcc/build-x86_64-build_pc-linux-musl/libcpp/config.cache
    8995  node_modules/toolchains/cache/gcc/build-x86_64-build_pc-linux-musl/libiberty/config.cache
     726  node_modules/toolchains/cache/gcc/c++tools/config.cache
     653  node_modules/toolchains/cache/gcc/config.cache
    4663  node_modules/toolchains/cache/gcc/fixincludes/config.cache
   15292  node_modules/toolchains/cache/gcc/gcc/config.cache
    4572  node_modules/toolchains/cache/gcc/libbacktrace/config.cache
    2962  node_modules/toolchains/cache/gcc/libcc1/config.cache
     131  node_modules/toolchains/cache/gcc/libcody/config.cache
    6052  node_modules/toolchains/cache/gcc/libcpp/config.cache
    2367  node_modules/toolchains/cache/gcc/libdecnumber/config.cache
    8995  node_modules/toolchains/cache/gcc/libiberty/config.cache
    1125  node_modules/toolchains/cache/gcc/x86_64-linux-musl/libgcc/config.cache
    2147  node_modules/toolchains/cache/gcc/zlib/config.cache
    8545  node_modules/toolchains/cache/gmp/config.cache
    2490  node_modules/toolchains/cache/mpc/config.cache
    4321  node_modules/toolchains/cache/mpfr/config.cache
     282  node_modules/toolchains/jsconfig.json
    1515  node_modules/toolchains/patches/binutils/2.47/0004-sysroot.patch
   10305  node_modules/toolchains/patches/binutils/2.47/0005-poison-system-directories.patch
     985  node_modules/toolchains/patches/gmp/6.3.0/0000-Complete-function-prototype-in-acinclude.patch
    7480  node_modules/toolchains/patches/musl/1.2.6/0001-fix-pathological-slowness-incorrect-mappings-in-icon.patch
    4672  node_modules/toolchains/pins.mjs
   23311  node_modules/toolchains/planck-bake.mjs
     268  node_modules/toolchains/tools.manifest
    9735  node_modules/toolchains/x86_64-linux-musl/build.mjs
    8220  seed/bootstrap.mjs
     802  seed/pins