mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Only pack benchmark utils while running benchmarks
This commit is contained in:
parent
8815ca384f
commit
e9c85ff158
@ -33,9 +33,14 @@ INITRAMFS_ALL_DIRS := \
|
|||||||
$(INITRAMFS)/sbin \
|
$(INITRAMFS)/sbin \
|
||||||
$(INITRAMFS)/usr/bin \
|
$(INITRAMFS)/usr/bin \
|
||||||
$(INITRAMFS)/usr/local \
|
$(INITRAMFS)/usr/local \
|
||||||
$(INITRAMFS)/test \
|
|
||||||
$(INITRAMFS)/benchmark \
|
$(INITRAMFS)/benchmark \
|
||||||
$(INITRAMFS_EMPTY_DIRS)
|
$(INITRAMFS_EMPTY_DIRS)
|
||||||
|
|
||||||
|
# Include test as target if BENCHMARK is not set.
|
||||||
|
ifeq ($(BENCHMARK), none)
|
||||||
|
INITRAMFS_ALL_DIRS += $(INITRAMFS)/test
|
||||||
|
endif
|
||||||
|
|
||||||
SYSCALL_TEST_DIR := $(INITRAMFS)/opt/syscall_test
|
SYSCALL_TEST_DIR := $(INITRAMFS)/opt/syscall_test
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
@ -43,5 +43,5 @@ prepare_libs() {
|
|||||||
prepare_fs() {
|
prepare_fs() {
|
||||||
# Disable unsupported ext2 features of Asterinas on Linux to ensure fairness
|
# Disable unsupported ext2 features of Asterinas on Linux to ensure fairness
|
||||||
mke2fs -F -O ^ext_attr -O ^resize_inode -O ^dir_index ${BENCHMARK_ROOT}/../build/ext2.img
|
mke2fs -F -O ^ext_attr -O ^resize_inode -O ^dir_index ${BENCHMARK_ROOT}/../build/ext2.img
|
||||||
make initramfs
|
make initramfs BENCHMARK=${benchmark}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user