• Linus Torvalds's avatar
    Merge tag 'nolibc.2022.09.30a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu · dda0ba40
    Linus Torvalds authored
    Pull nolibc updates from Paul McKenney:
     "Most notably greatly improved testing. These tests are located in
      tools/testing/selftests/nolibc. The output of "make help" is as
      follows:
    
        Supported targets under selftests/nolibc:
          all          call the "run" target below
          help         this help
          sysroot      create the nolibc sysroot here (uses $ARCH)
          nolibc-test  build the executable (uses $CC and $CROSS_COMPILE)
          initramfs    prepare the initramfs with nolibc-test
          defconfig    create a fresh new default config (uses $ARCH)
          kernel       (re)build the kernel with the initramfs (uses $ARCH)
          run          runs the kernel in QEMU after building it (uses $ARCH, $TEST)
          rerun        runs a previously prebuilt kernel in QEMU (uses $ARCH, $TEST)
          clean        clean the sysroot, initramfs, build and output files
    
        The output file is "run.out". Test ranges may be passed using $TEST.
    
        Currently using the following variables:
          ARCH          = x86
          CROSS_COMPILE =
          CC            = gcc
          OUTPUT        = /home/git/linux-rcu/tools/testing/selftests/nolibc/
          TEST          =
          QEMU_ARCH     = x86_64 [determined from $ARCH]
          IMAGE_NAME    = bzImage [determined from $ARCH]
    
      The output of a successful x86 "make run" is currently as follows,
      with kernel build output omitted:
    
        $ make run
        71 test(s) passed."
    
    * tag 'nolibc.2022.09.30a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu:
      selftests/nolibc: Avoid generated files being committed
      selftests/nolibc: add a "help" target
      selftests/nolibc: "sysroot" target installs a local copy of the sysroot
      selftests/nolibc: add a "run" target to start the kernel in QEMU
      selftests/nolibc: add a "defconfig" target
      selftests/nolibc: add a "kernel" target to build the kernel with the initramfs
      selftests/nolibc: support glibc as well
      selftests/nolibc: condition some tests on /proc existence
      selftests/nolibc: recreate and populate /dev and /proc if missing
      selftests/nolibc: on x86, support exiting with isa-debug-exit
      selftests/nolibc: exit with poweroff on success when getpid() == 1
      selftests/nolibc: add a few tests for some libc functions
      selftests/nolibc: implement a few tests for various syscalls
      selftests/nolibc: support a test definition format
      selftests/nolibc: add basic infrastructure to ease creation of nolibc tests
      tools/nolibc: make sys_mmap() automatically use the right __NR_mmap definition
      tools/nolibc: fix build warning in sys_mmap() when my_syscall6 is not defined
      tools/nolibc: make argc 32-bit in riscv startup code
    dda0ba40
MAINTAINERS 665 KB