KERNEL_DIR:=/home/fli4l/kernel REPO:=$(shell pwd)/../../.. FLI4L_VER_FILE:=$(REPO)/base/version.txt ifeq ($(FLI4L_VER),) FLI4L_VER:=$(shell if [ -f $(FLI4L_VER_FILE) ]; then cat $(FLI4L_VER_FILE); fi) endif PATH:=$(REPO)/toolchain:$(PATH) export PATH all: kernel xen-kernel kernel: check_version sh mkkernel.sh -t $(KERNEL_DIR)/ -d $(KERNEL_DIR) -i $(KERNEL_DIR)/$(FLI4L_VER)-$(KERNEL_POSTFIX) -j 5 $(MKKERNEL_OPT) -all >kernel.log 2>&1 xen-kernel: check_version sh mkkernel.sh -t $(KERNEL_DIR)/ -d $(KERNEL_DIR) -i $(KERNEL_DIR)/$(FLI4L_VER)-$(KERNEL_POSTFIX)-xen -f xen -j 5 $(MKKERNEL_OPT) -all >xen-kernel.log 2>&1 check: check-kernel check-xen-kernel check-kernel: check_repo check-kernel.sh -c $(REPO) -k $(KERNEL_DIR)/$(FLI4L_VER)-$(KERNEL_POSTFIX) check-xen-kernel: check_repo check-kernel.sh -c $(REPO) -k $(KERNEL_DIR)/$(FLI4L_VER)-$(KERNEL_POSTFIX)-xen update: update-kernel update-xen-kernel update-kernel: check_repo update-kernel-svn.sh -c $(REPO) -k $(KERNEL_DIR)/$(FLI4L_VER)-$(KERNEL_POSTFIX) -s update-kernel.sh $(FORCE) update-xen-kernel: check_repo update-kernel-svn.sh -c $(REPO) -k $(KERNEL_DIR)/$(FLI4L_VER)-$(KERNEL_POSTFIX)-xen -s update-xen-kernel $(FORCE) check_version: @if [ ! "$(FLI4L_VER)" ]; then \ echo "invalid fli4l version, specify one in FLI4L_VER"; \ false; \ else \ true; \ fi check_repo: check_version @if [ ! -f $(REPO)/files.txt ]; then \ echo "invalid fli4l repository in REPO='$(REPO)'" ; \ false ; \ else \ true ; \ fi help: @cat Makefile.help