|
65 | 65 | CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables
|
66 | 66 | LDFLAGS := -s
|
67 | 67 |
|
68 |
| -all: nolibc-test |
| 68 | +help: |
| 69 | + @echo "Supported targets under selftests/nolibc:" |
| 70 | + @echo " all call the \"run\" target below" |
| 71 | + @echo " help this help" |
| 72 | + @echo " sysroot create the nolibc sysroot here (uses \$$ARCH)" |
| 73 | + @echo " nolibc-test build the executable (uses \$$CC and \$$CROSS_COMPILE)" |
| 74 | + @echo " initramfs prepare the initramfs with nolibc-test" |
| 75 | + @echo " defconfig create a fresh new default config (uses \$$ARCH)" |
| 76 | + @echo " kernel (re)build the kernel with the initramfs (uses \$$ARCH)" |
| 77 | + @echo " run runs the kernel in QEMU after building it (uses \$$ARCH, \$$TEST)" |
| 78 | + @echo " rerun runs a previously prebuilt kernel in QEMU (uses \$$ARCH, \$$TEST)" |
| 79 | + @echo " clean clean the sysroot, initramfs, build and output files" |
| 80 | + @echo "" |
| 81 | + @echo "The output file is \"run.out\". Test ranges may be passed using \$$TEST." |
| 82 | + @echo "" |
| 83 | + @echo "Currently using the following variables:" |
| 84 | + @echo " ARCH = $(ARCH)" |
| 85 | + @echo " CROSS_COMPILE = $(CROSS_COMPILE)" |
| 86 | + @echo " CC = $(CC)" |
| 87 | + @echo " OUTPUT = $(OUTPUT)" |
| 88 | + @echo " TEST = $(TEST)" |
| 89 | + @echo " QEMU_ARCH = $(if $(QEMU_ARCH),$(QEMU_ARCH),UNKNOWN_ARCH) [determined from \$$ARCH]" |
| 90 | + @echo " IMAGE_NAME = $(if $(IMAGE_NAME),$(IMAGE_NAME),UNKNOWN_ARCH) [determined from \$$ARCH]" |
| 91 | + @echo "" |
| 92 | + |
| 93 | +all: run |
69 | 94 |
|
70 | 95 | sysroot: sysroot/$(ARCH)/include
|
71 | 96 |
|
|
0 commit comments