1362aecb2SWilly Tarreau# SPDX-License-Identifier: GPL-2.0 2362aecb2SWilly Tarreau# Makefile for nolibc tests 3362aecb2SWilly Tarreauinclude ../../../scripts/Makefile.include 469620b3aSThomas Weißschuhinclude ../../../scripts/utilities.mak 5077b70fbSThomas Weißschuh# We need this for the "cc-option" macro. 6077b70fbSThomas Weißschuhinclude ../../../build/Build.include 7362aecb2SWilly Tarreau 869620b3aSThomas Weißschuhifneq ($(O),) 969620b3aSThomas Weißschuhifneq ($(call is-absolute,$(O)),y) 1069620b3aSThomas Weißschuh$(error Only absolute O= parameters are supported) 1169620b3aSThomas Weißschuhendif 1269620b3aSThomas Weißschuhendif 1369620b3aSThomas Weißschuh 14362aecb2SWilly Tarreau# we're in ".../tools/testing/selftests/nolibc" 15362aecb2SWilly Tarreauifeq ($(srctree),) 16362aecb2SWilly Tarreausrctree := $(patsubst %/tools/testing/selftests/,%,$(dir $(CURDIR))) 17362aecb2SWilly Tarreauendif 18362aecb2SWilly Tarreau 19362aecb2SWilly Tarreauifeq ($(ARCH),) 20362aecb2SWilly Tarreauinclude $(srctree)/scripts/subarch.include 21362aecb2SWilly TarreauARCH = $(SUBARCH) 22362aecb2SWilly Tarreauendif 23362aecb2SWilly Tarreau 2469620b3aSThomas Weißschuhobjtree ?= $(srctree) 2569620b3aSThomas Weißschuh 26c6c3734fSZhangjin Wu# XARCH extends the kernel's ARCH with a few variants of the same 27c6c3734fSZhangjin Wu# architecture that only differ by the configuration, the toolchain 28c6c3734fSZhangjin Wu# and the Qemu program used. It is copied as-is into ARCH except for 29c6c3734fSZhangjin Wu# a few specific values which are mapped like this: 30c6c3734fSZhangjin Wu# 31c6c3734fSZhangjin Wu# XARCH | ARCH | config 32c6c3734fSZhangjin Wu# -------------|-----------|------------------------- 33c6c3734fSZhangjin Wu# ppc | powerpc | 32 bits 34c6c3734fSZhangjin Wu# ppc64 | powerpc | 64 bits big endian 35c6c3734fSZhangjin Wu# ppc64le | powerpc | 64 bits little endian 36c6c3734fSZhangjin Wu# 37c6c3734fSZhangjin Wu# It is recommended to only use XARCH, though it does not harm if 38c6c3734fSZhangjin Wu# ARCH is already set. For simplicity, ARCH is sufficient for all 39c6c3734fSZhangjin Wu# architectures where both are equal. 40c6c3734fSZhangjin Wu 41c6c3734fSZhangjin Wu# configure default variants for target kernel supported architectures 42587e9845SZhangjin WuXARCH_powerpc = ppc 43c4c20a7dSThomas WeißschuhXARCH_mips = mips32le 44c6c3734fSZhangjin WuXARCH = $(or $(XARCH_$(ARCH)),$(ARCH)) 45c6c3734fSZhangjin Wu 46c6c3734fSZhangjin Wu# map from user input variants to their kernel supported architectures 47587e9845SZhangjin WuARCH_ppc = powerpc 48faeb4e09SZhangjin WuARCH_ppc64 = powerpc 498a5040cbSZhangjin WuARCH_ppc64le = powerpc 50c4c20a7dSThomas WeißschuhARCH_mips32le = mips 51b4b9fb91SThomas WeißschuhARCH_mips32be = mips 52c6c3734fSZhangjin WuARCH := $(or $(ARCH_$(XARCH)),$(XARCH)) 53c6c3734fSZhangjin Wu 54d248cabfSWilly Tarreau# kernel image names by architecture 55d248cabfSWilly TarreauIMAGE_i386 = arch/x86/boot/bzImage 56f9b06695SWilly TarreauIMAGE_x86_64 = arch/x86/boot/bzImage 57d248cabfSWilly TarreauIMAGE_x86 = arch/x86/boot/bzImage 58d248cabfSWilly TarreauIMAGE_arm64 = arch/arm64/boot/Image 59d248cabfSWilly TarreauIMAGE_arm = arch/arm/boot/zImage 60c4c20a7dSThomas WeißschuhIMAGE_mips32le = vmlinuz 61b4b9fb91SThomas WeißschuhIMAGE_mips32be = vmlinuz 62587e9845SZhangjin WuIMAGE_ppc = vmlinux 63faeb4e09SZhangjin WuIMAGE_ppc64 = vmlinux 648a5040cbSZhangjin WuIMAGE_ppc64le = arch/powerpc/boot/zImage 65d248cabfSWilly TarreauIMAGE_riscv = arch/riscv/boot/Image 660043e6f2SSven SchnelleIMAGE_s390 = arch/s390/boot/bzImage 676cd77defSFeiyang ChenIMAGE_loongarch = arch/loongarch/boot/vmlinuz.efi 6869620b3aSThomas WeißschuhIMAGE = $(objtree)/$(IMAGE_$(XARCH)) 69d248cabfSWilly TarreauIMAGE_NAME = $(notdir $(IMAGE)) 70d248cabfSWilly Tarreau 715c43fd79SWilly Tarreau# default kernel configurations that appear to be usable 725c43fd79SWilly TarreauDEFCONFIG_i386 = defconfig 73f9b06695SWilly TarreauDEFCONFIG_x86_64 = defconfig 745c43fd79SWilly TarreauDEFCONFIG_x86 = defconfig 755c43fd79SWilly TarreauDEFCONFIG_arm64 = defconfig 765c43fd79SWilly TarreauDEFCONFIG_arm = multi_v7_defconfig 77c4c20a7dSThomas WeißschuhDEFCONFIG_mips32le = malta_defconfig 78b4b9fb91SThomas WeißschuhDEFCONFIG_mips32be = malta_defconfig 79587e9845SZhangjin WuDEFCONFIG_ppc = pmac32_defconfig 80faeb4e09SZhangjin WuDEFCONFIG_ppc64 = powernv_be_defconfig 818a5040cbSZhangjin WuDEFCONFIG_ppc64le = powernv_defconfig 825c43fd79SWilly TarreauDEFCONFIG_riscv = defconfig 830043e6f2SSven SchnelleDEFCONFIG_s390 = defconfig 846cd77defSFeiyang ChenDEFCONFIG_loongarch = defconfig 85c6c3734fSZhangjin WuDEFCONFIG = $(DEFCONFIG_$(XARCH)) 865c43fd79SWilly Tarreau 87b4b9fb91SThomas WeißschuhEXTRACONFIG_mips32be = -d CONFIG_CPU_LITTLE_ENDIAN -e CONFIG_CPU_BIG_ENDIAN 883ab1e9dbSThomas WeißschuhEXTRACONFIG = $(EXTRACONFIG_$(XARCH)) 893ab1e9dbSThomas Weißschuh 90662ea60eSWilly Tarreau# optional tests to run (default = all) 91662ea60eSWilly TarreauTEST = 92662ea60eSWilly Tarreau 93662ea60eSWilly Tarreau# QEMU_ARCH: arch names used by qemu 94662ea60eSWilly TarreauQEMU_ARCH_i386 = i386 95f9b06695SWilly TarreauQEMU_ARCH_x86_64 = x86_64 96662ea60eSWilly TarreauQEMU_ARCH_x86 = x86_64 97662ea60eSWilly TarreauQEMU_ARCH_arm64 = aarch64 98662ea60eSWilly TarreauQEMU_ARCH_arm = arm 99c4c20a7dSThomas WeißschuhQEMU_ARCH_mips32le = mipsel # works with malta_defconfig 100b4b9fb91SThomas WeißschuhQEMU_ARCH_mips32be = mips 101587e9845SZhangjin WuQEMU_ARCH_ppc = ppc 102faeb4e09SZhangjin WuQEMU_ARCH_ppc64 = ppc64 10317362f3dSThomas WeißschuhQEMU_ARCH_ppc64le = ppc64 104662ea60eSWilly TarreauQEMU_ARCH_riscv = riscv64 1050043e6f2SSven SchnelleQEMU_ARCH_s390 = s390x 1066cd77defSFeiyang ChenQEMU_ARCH_loongarch = loongarch64 107c6c3734fSZhangjin WuQEMU_ARCH = $(QEMU_ARCH_$(XARCH)) 108662ea60eSWilly Tarreau 109d7233e2bSThomas WeißschuhQEMU_ARCH_USER_ppc64le = ppc64le 110d7233e2bSThomas WeißschuhQEMU_ARCH_USER = $(or $(QEMU_ARCH_USER_$(XARCH)),$(QEMU_ARCH_$(XARCH))) 111d7233e2bSThomas Weißschuh 112bdeeeabaSThomas WeißschuhQEMU_BIOS_DIR = /usr/share/edk2/ 113bdeeeabaSThomas WeißschuhQEMU_BIOS_loongarch = $(QEMU_BIOS_DIR)/loongarch64/OVMF_CODE.fd 114bdeeeabaSThomas Weißschuh 115bdeeeabaSThomas Weißschuhifneq ($(QEMU_BIOS_$(XARCH)),) 116bdeeeabaSThomas WeißschuhQEMU_ARGS_BIOS = -bios $(QEMU_BIOS_$(XARCH)) 117bdeeeabaSThomas Weißschuhendif 118bdeeeabaSThomas Weißschuh 119662ea60eSWilly Tarreau# QEMU_ARGS : some arch-specific args to pass to qemu 120662ea60eSWilly TarreauQEMU_ARGS_i386 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=%)" 121f9b06695SWilly TarreauQEMU_ARGS_x86_64 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=%)" 122662ea60eSWilly TarreauQEMU_ARGS_x86 = -M pc -append "console=ttyS0,9600 i8042.noaux panic=-1 $(TEST:%=NOLIBC_TEST=%)" 123662ea60eSWilly TarreauQEMU_ARGS_arm64 = -M virt -cpu cortex-a53 -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" 124662ea60eSWilly TarreauQEMU_ARGS_arm = -M virt -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" 125c4c20a7dSThomas WeißschuhQEMU_ARGS_mips32le = -M malta -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" 126b4b9fb91SThomas WeißschuhQEMU_ARGS_mips32be = -M malta -append "panic=-1 $(TEST:%=NOLIBC_TEST=%)" 127587e9845SZhangjin WuQEMU_ARGS_ppc = -M g3beige -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 128faeb4e09SZhangjin WuQEMU_ARGS_ppc64 = -M powernv -append "console=hvc0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 1298a5040cbSZhangjin WuQEMU_ARGS_ppc64le = -M powernv -append "console=hvc0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 130662ea60eSWilly TarreauQEMU_ARGS_riscv = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 1310043e6f2SSven SchnelleQEMU_ARGS_s390 = -M s390-ccw-virtio -m 1G -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 1326cd77defSFeiyang ChenQEMU_ARGS_loongarch = -M virt -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 133bdeeeabaSThomas WeißschuhQEMU_ARGS = $(QEMU_ARGS_$(XARCH)) $(QEMU_ARGS_BIOS) $(QEMU_ARGS_EXTRA) 134662ea60eSWilly Tarreau 135362aecb2SWilly Tarreau# OUTPUT is only set when run from the main makefile, otherwise 136362aecb2SWilly Tarreau# it defaults to this nolibc directory. 137362aecb2SWilly TarreauOUTPUT ?= $(CURDIR)/ 138362aecb2SWilly Tarreau 139362aecb2SWilly Tarreauifeq ($(V),1) 140362aecb2SWilly TarreauQ= 141362aecb2SWilly Tarreauelse 142362aecb2SWilly TarreauQ=@ 143362aecb2SWilly Tarreauendif 144362aecb2SWilly Tarreau 14595315486SThomas WeißschuhCFLAGS_i386 = $(call cc-option,-m32) 146587e9845SZhangjin WuCFLAGS_ppc = -m32 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) 147faeb4e09SZhangjin WuCFLAGS_ppc64 = -m64 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) 1488a5040cbSZhangjin WuCFLAGS_ppc64le = -m64 -mlittle-endian -mno-vsx $(call cc-option,-mabi=elfv2) 1490043e6f2SSven SchnelleCFLAGS_s390 = -m64 150*54410245SThomas WeißschuhCFLAGS_mips32le = -EL -mabi=32 -fPIC 151b4b9fb91SThomas WeißschuhCFLAGS_mips32be = -EB -mabi=32 1520093c2daSThomas WeißschuhCFLAGS_STACKPROTECTOR ?= $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all)) 15345f65f8dSThomas WeißschuhCFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 -W -Wall -Wextra \ 154255ffeeeSThomas Weißschuh $(call cc-option,-fno-stack-protector) \ 155c6c3734fSZhangjin Wu $(CFLAGS_$(XARCH)) $(CFLAGS_STACKPROTECTOR) 156711edef8SThomas WeißschuhLDFLAGS := 157362aecb2SWilly Tarreau 1584beb9be8SZhangjin WuREPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{if (!f) printf("\n"); f++; print;} /\[SKIPPED\][\r]*$$/{s++} \ 1597d92e893SZhangjin Wu END{ printf("\n%3d test(s): %3d passed, %3d skipped, %3d failed => status: ", p+s+f, p, s, f); \ 160c0315c79SZhangjin Wu if (f) printf("failure\n"); else if (s) printf("warning\n"); else printf("success\n");; \ 1617d92e893SZhangjin Wu printf("\nSee all results in %s\n", ARGV[1]); }' 1625ef95663SZhangjin Wu 163ffc297feSWilly Tarreauhelp: 164ffc297feSWilly Tarreau @echo "Supported targets under selftests/nolibc:" 165ffc297feSWilly Tarreau @echo " all call the \"run\" target below" 166ffc297feSWilly Tarreau @echo " help this help" 167ffc297feSWilly Tarreau @echo " sysroot create the nolibc sysroot here (uses \$$ARCH)" 168ffc297feSWilly Tarreau @echo " nolibc-test build the executable (uses \$$CC and \$$CROSS_COMPILE)" 169fc82d7dbSThomas Weißschuh @echo " libc-test build an executable using the compiler's default libc instead" 170c6c3734fSZhangjin Wu @echo " run-user runs the executable under QEMU (uses \$$XARCH, \$$TEST)" 17145839d09SThomas Weißschuh @echo " initramfs.cpio prepare the initramfs archive with nolibc-test" 17245839d09SThomas Weißschuh @echo " initramfs prepare the initramfs tree with nolibc-test" 173c6c3734fSZhangjin Wu @echo " defconfig create a fresh new default config (uses \$$XARCH)" 17445839d09SThomas Weißschuh @echo " kernel (re)build the kernel (uses \$$XARCH)" 17545839d09SThomas Weißschuh @echo " kernel-standalone (re)build the kernel with the initramfs (uses \$$XARCH)" 176c6c3734fSZhangjin Wu @echo " run runs the kernel in QEMU after building it (uses \$$XARCH, \$$TEST)" 177c6c3734fSZhangjin Wu @echo " rerun runs a previously prebuilt kernel in QEMU (uses \$$XARCH, \$$TEST)" 178ffc297feSWilly Tarreau @echo " clean clean the sysroot, initramfs, build and output files" 179ffc297feSWilly Tarreau @echo "" 180ffc297feSWilly Tarreau @echo "The output file is \"run.out\". Test ranges may be passed using \$$TEST." 181ffc297feSWilly Tarreau @echo "" 182ffc297feSWilly Tarreau @echo "Currently using the following variables:" 183ffc297feSWilly Tarreau @echo " ARCH = $(ARCH)" 184c6c3734fSZhangjin Wu @echo " XARCH = $(XARCH)" 185ffc297feSWilly Tarreau @echo " CROSS_COMPILE = $(CROSS_COMPILE)" 186ffc297feSWilly Tarreau @echo " CC = $(CC)" 187ffc297feSWilly Tarreau @echo " OUTPUT = $(OUTPUT)" 188ffc297feSWilly Tarreau @echo " TEST = $(TEST)" 189c6c3734fSZhangjin Wu @echo " QEMU_ARCH = $(if $(QEMU_ARCH),$(QEMU_ARCH),UNKNOWN_ARCH) [determined from \$$XARCH]" 190c6c3734fSZhangjin Wu @echo " IMAGE_NAME = $(if $(IMAGE_NAME),$(IMAGE_NAME),UNKNOWN_ARCH) [determined from \$$XARCH]" 191ffc297feSWilly Tarreau @echo "" 192ffc297feSWilly Tarreau 193ffc297feSWilly Tarreauall: run 194362aecb2SWilly Tarreau 195b25c5284SWilly Tarreausysroot: sysroot/$(ARCH)/include 196b25c5284SWilly Tarreau 197b25c5284SWilly Tarreausysroot/$(ARCH)/include: 1984a95be7eSWilly Tarreau $(Q)rm -rf sysroot/$(ARCH) sysroot/sysroot 199b25c5284SWilly Tarreau $(QUIET_MKDIR)mkdir -p sysroot 20069620b3aSThomas Weißschuh $(Q)$(MAKE) -C $(srctree) outputmakefile 2017263c9d9SThomas Weißschuh $(Q)$(MAKE) -C $(srctree)/tools/include/nolibc ARCH=$(ARCH) OUTPUT=$(CURDIR)/sysroot/ headers_standalone 202b25c5284SWilly Tarreau $(Q)mv sysroot/sysroot sysroot/$(ARCH) 203b25c5284SWilly Tarreau 204850fad7dSZhangjin Wuifneq ($(NOLIBC_SYSROOT),0) 205b8c60e8fSThomas Weißschuhnolibc-test: nolibc-test.c nolibc-test-linkage.c sysroot/$(ARCH)/include 206362aecb2SWilly Tarreau $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ 207b8c60e8fSThomas Weißschuh -nostdlib -nostdinc -static -Isysroot/$(ARCH)/include nolibc-test.c nolibc-test-linkage.c -lgcc 208850fad7dSZhangjin Wuelse 209b8c60e8fSThomas Weißschuhnolibc-test: nolibc-test.c nolibc-test-linkage.c 210850fad7dSZhangjin Wu $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ 2117263c9d9SThomas Weißschuh -nostdlib -static -include $(srctree)/tools/include/nolibc/nolibc.h nolibc-test.c nolibc-test-linkage.c -lgcc 212850fad7dSZhangjin Wuendif 213362aecb2SWilly Tarreau 214b8c60e8fSThomas Weißschuhlibc-test: nolibc-test.c nolibc-test-linkage.c 215b8c60e8fSThomas Weißschuh $(QUIET_CC)$(HOSTCC) -o $@ nolibc-test.c nolibc-test-linkage.c 216fc82d7dbSThomas Weißschuh 217b8143407SZhangjin Wu# local libc-test 218cfb672f9SZhangjin Wurun-libc-test: libc-test 219cfb672f9SZhangjin Wu $(Q)./libc-test > "$(CURDIR)/run.out" || : 220cfb672f9SZhangjin Wu $(Q)$(REPORT) $(CURDIR)/run.out 221cfb672f9SZhangjin Wu 222b8143407SZhangjin Wu# local nolibc-test 223b8143407SZhangjin Wurun-nolibc-test: nolibc-test 224b8143407SZhangjin Wu $(Q)./nolibc-test > "$(CURDIR)/run.out" || : 225b8143407SZhangjin Wu $(Q)$(REPORT) $(CURDIR)/run.out 226b8143407SZhangjin Wu 227c54ba417SWilly Tarreau# qemu user-land test 228c54ba417SWilly Tarreaurun-user: nolibc-test 229d7233e2bSThomas Weißschuh $(Q)qemu-$(QEMU_ARCH_USER) ./nolibc-test > "$(CURDIR)/run.out" || : 2305ef95663SZhangjin Wu $(Q)$(REPORT) $(CURDIR)/run.out 231c54ba417SWilly Tarreau 23245839d09SThomas Weißschuhinitramfs.cpio: kernel nolibc-test 23369620b3aSThomas Weißschuh $(QUIET_GEN)echo 'file /init nolibc-test 755 0 0' | $(objtree)/usr/gen_init_cpio - > initramfs.cpio 23445839d09SThomas Weißschuh 235362aecb2SWilly Tarreauinitramfs: nolibc-test 236362aecb2SWilly Tarreau $(QUIET_MKDIR)mkdir -p initramfs 237362aecb2SWilly Tarreau $(call QUIET_INSTALL, initramfs/init) 238362aecb2SWilly Tarreau $(Q)cp nolibc-test initramfs/init 239362aecb2SWilly Tarreau 2405c43fd79SWilly Tarreaudefconfig: 2415c43fd79SWilly Tarreau $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) mrproper $(DEFCONFIG) prepare 2423ab1e9dbSThomas Weißschuh $(Q)if [ -n "$(EXTRACONFIG)" ]; then \ 2433ab1e9dbSThomas Weißschuh $(srctree)/scripts/config --file $(objtree)/.config $(EXTRACONFIG); \ 2443ab1e9dbSThomas Weißschuh $(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) olddefconfig < /dev/null; \ 2453ab1e9dbSThomas Weißschuh fi 2465c43fd79SWilly Tarreau 24745839d09SThomas Weißschuhkernel: 24889b212d4SThomas Weißschuh $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) < /dev/null 24945839d09SThomas Weißschuh 25045839d09SThomas Weißschuhkernel-standalone: initramfs 25189b212d4SThomas Weißschuh $(Q)$(MAKE) -C $(srctree) ARCH=$(ARCH) CC=$(CC) CROSS_COMPILE=$(CROSS_COMPILE) $(IMAGE_NAME) CONFIG_INITRAMFS_SOURCE=$(CURDIR)/initramfs < /dev/null 252d248cabfSWilly Tarreau 253662ea60eSWilly Tarreau# run the tests after building the kernel 25445839d09SThomas Weißschuhrun: kernel initramfs.cpio 25569620b3aSThomas Weißschuh $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(IMAGE)" -initrd initramfs.cpio -serial stdio $(QEMU_ARGS) > "$(CURDIR)/run.out" 2565ef95663SZhangjin Wu $(Q)$(REPORT) $(CURDIR)/run.out 257662ea60eSWilly Tarreau 258662ea60eSWilly Tarreau# re-run the tests from an existing kernel 259662ea60eSWilly Tarreaurerun: 26069620b3aSThomas Weißschuh $(Q)qemu-system-$(QEMU_ARCH) -display none -no-reboot -kernel "$(IMAGE)" -initrd initramfs.cpio -serial stdio $(QEMU_ARGS) > "$(CURDIR)/run.out" 2615ef95663SZhangjin Wu $(Q)$(REPORT) $(CURDIR)/run.out 262662ea60eSWilly Tarreau 263ce1bb82bSZhangjin Wu# report with existing test log 264ce1bb82bSZhangjin Wureport: 265ce1bb82bSZhangjin Wu $(Q)$(REPORT) $(CURDIR)/run.out 266ce1bb82bSZhangjin Wu 267362aecb2SWilly Tarreauclean: 268b25c5284SWilly Tarreau $(call QUIET_CLEAN, sysroot) 269b25c5284SWilly Tarreau $(Q)rm -rf sysroot 270362aecb2SWilly Tarreau $(call QUIET_CLEAN, nolibc-test) 271362aecb2SWilly Tarreau $(Q)rm -f nolibc-test 272fc82d7dbSThomas Weißschuh $(call QUIET_CLEAN, libc-test) 273fc82d7dbSThomas Weißschuh $(Q)rm -f libc-test 27445839d09SThomas Weißschuh $(call QUIET_CLEAN, initramfs.cpio) 27545839d09SThomas Weißschuh $(Q)rm -rf initramfs.cpio 276362aecb2SWilly Tarreau $(call QUIET_CLEAN, initramfs) 277362aecb2SWilly Tarreau $(Q)rm -rf initramfs 278662ea60eSWilly Tarreau $(call QUIET_CLEAN, run.out) 279662ea60eSWilly Tarreau $(Q)rm -rf run.out 2804a95be7eSWilly Tarreau 2814a95be7eSWilly Tarreau.PHONY: sysroot/$(ARCH)/include 282