modify include lines and Makefiles
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#BUILD_TARGET = mee knf
|
||||
BUILD_TARGET = knf
|
||||
#BUILD_TARGET = builtin-mic attached-mic
|
||||
BUILD_TARGET = attached-mic
|
||||
SRC = $(CURDIR)
|
||||
|
||||
AALBASE ?= $(SRC)/../../aal/manycore
|
||||
IHKBASE ?= $(SRC)/../../ihk/cokernel
|
||||
O ?= $(KBUILD_OUTPUT)
|
||||
V ?= $(VERBOSE)
|
||||
|
||||
@@ -12,8 +12,8 @@ KERNELS = $(addsuffix /$(KERNEL),$(addprefix $(O)/,$(BUILD_TARGET)))
|
||||
SUBCMD_OPTS = V='$(V)'
|
||||
|
||||
$(if $(O),,$(error Specify the compilation target directory))
|
||||
$(if $(shell ls $(AALBASE)/Makefile),,\
|
||||
$(error AAL is not found in $(AALBASE)))
|
||||
#$(if $(shell ls $(IHKBASE)/Makefile),,\
|
||||
# $(error IHK is not found in $(IHKBASE)))
|
||||
|
||||
.PHONY: all clean depend
|
||||
|
||||
@@ -26,8 +26,9 @@ all: $(KERNELS)
|
||||
%/Makefile: Makefile.build FORCE
|
||||
@mkdir -p $(dir $@)
|
||||
@echo 'SRC = $(SRC)' > $@
|
||||
@echo 'AALBASE = $(AALBASE)' >> $@
|
||||
@echo 'IHKBASE = $(IHKBASE)' >> $@
|
||||
@echo 'TARGET = $(notdir $(patsubst %/,%,$(dir $@)))' >> $@
|
||||
@echo 'TARGETDIR = $$(shell echo $$(TARGET) | sed "s/-/\//")' >> $@
|
||||
@cat Makefile.build >> $@
|
||||
@rm -f $(dir $@)/Makefile.dep
|
||||
|
||||
|
||||
Reference in New Issue
Block a user