Skip to content

Instantly share code, notes, and snippets.

@orumin
Created August 17, 2016 16:41
Show Gist options
  • Save orumin/e58e878b20e983a6b50c79b2fe44d59b to your computer and use it in GitHub Desktop.
Save orumin/e58e878b20e983a6b50c79b2fe44d59b to your computer and use it in GitHub Desktop.
diff --git a/arch/x86/toolchain.mk b/arch/x86/toolchain.mk
index dba751e..ac5c005 100644
--- a/arch/x86/toolchain.mk
+++ b/arch/x86/toolchain.mk
@@ -22,9 +22,10 @@ ARCH_x86_64_TOOLCHAIN_INCLUDED := 1
ifndef ARCH_x86_64_TOOLCHAIN_PREFIX
ARCH_x86_64_TOOLCHAIN_PREFIX := x86_64-elf-
-FOUNDTOOL=$(shell which $(ARCH_x86_64_TOOLCHAIN_PREFIX)gcc)
endif
+FOUNDTOOL=$(shell which $(ARCH_x86_64_TOOLCHAIN_PREFIX)gcc)
+
ifeq ($(FOUNDTOOL),)
$(error cannot find toolchain, please set ARCH_x86_64_TOOLCHAIN_PREFIX or add it to your path)
endif
diff --git a/engine.mk b/engine.mk
index cffbcdd..5d0f3b8 100644
--- a/engine.mk
+++ b/engine.mk
@@ -91,6 +91,7 @@ GENERATED := $(CONFIGHEADER)
# anything added to GLOBAL_DEFINES will be put into $(BUILDDIR)/config.h
GLOBAL_DEFINES := LK=1
+GLOBAL_DEFINES += HAVE_MREMAP=0
# Anything added to GLOBAL_SRCDEPS will become a dependency of every source file in the system.
# Useful for header files that may be included by one or more source files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment