adapt "out of tree build" for arm64
This commit is contained in:
@@ -23,7 +23,11 @@ ifeq ($(ARCH), arm64)
|
||||
default: all
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH), arm64)
|
||||
include @abs_builddir@/config/config.$(TARGET)
|
||||
else
|
||||
include $(SRC)/config/config.$(TARGET)
|
||||
endif
|
||||
include @abs_builddir@/../../ihk/cokernel/Makefile.common
|
||||
|
||||
# CFLAGS += -I$(SRC)/../arch/$(IHKARCH)/kernel/include -I$(SRC)/../lib/include
|
||||
|
||||
@@ -2,6 +2,10 @@ BUILD_TARGET ?= @TARGET@
|
||||
KERNDIR=@KERNDIR@
|
||||
VPATH=@abs_srcdir@
|
||||
|
||||
ifeq ($(ARCH), arm64)
|
||||
vdsodir=@abs_builddir@/../arch/$(ARCH)/kernel/vdso
|
||||
endif
|
||||
|
||||
IHKBASE ?= $(VPATH)/../../ihk/cokernel
|
||||
O ?= $(CURDIR)/build
|
||||
V ?= $(VERBOSE)
|
||||
@@ -37,6 +41,9 @@ $(O):
|
||||
|
||||
clean:
|
||||
rm -rf $(O)
|
||||
ifeq ($(ARCH), arm64)
|
||||
@rm -f $(vdsodir)/*.o $(vdsodir)/vdso.* $(vdsodir)/Makefile.dep -r $(vdsodir)/../include
|
||||
endif
|
||||
|
||||
install:
|
||||
mkdir -p -m 755 $(KERNDIR)
|
||||
|
||||
Reference in New Issue
Block a user