From 2484dc396a420ae5a5061e4b25307ee6107bcc31 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 12 Jan 2012 19:36:20 +0100 Subject: add support for 64bit kernels on supporting targets This is more commonly known as 32bit userland support on 64bit architectures. For simplicity's sake though, this implementation works the other way round: just build a 64bit-able linker and compiler, but no 64bit-libraries at all (i.e., no multilib). This is then just enough to compile a 64bit kernel, as that doesn't link to anything. The alternative would have been to build a native 64bit compiler with multilib-support in order to cross-compile a 32bit userland, resulting in a multilib system without need for it. In order to allow compilation of a 64bit kernel for a given target system, have it select ADK_TARGET_KERNEL_MAY_64BIT. Upon selection of that target, the symbol ADK_64BIT_KERNEL will occur in the "Global settings" menu. Since certain aspects of the 64bit kernel .config may greatly differ from it's 32bit counterpart, it has to be shipped separately: target//kernel64.config is the place to be. Conflicts: target/Makefile toolchain/gcc/Makefile Untested, due to conflicts (original patch conflicts with multiple kernel version support). --- target/config/Config.in | 3 +++ target/config/Config.in.adk | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'target/config') diff --git a/target/config/Config.in b/target/config/Config.in index a9f994772..b31113ec5 100644 --- a/target/config/Config.in +++ b/target/config/Config.in @@ -204,6 +204,9 @@ config ADK_TARGET_WITH_DSL config ADK_TARGET_WITH_USB_BOOT boolean +config ADK_TARGET_KERNEL_MAY_64BIT + boolean + # global symbols config ADK_TOOLCHAIN_ONLY boolean diff --git a/target/config/Config.in.adk b/target/config/Config.in.adk index 6c7176bf8..ea139b7ec 100644 --- a/target/config/Config.in.adk +++ b/target/config/Config.in.adk @@ -110,4 +110,11 @@ config ADK_HOST_CYGWIN boolean endchoice + +config ADK_64BIT_KERNEL + prompt "Build a 64bit Kernel" + boolean + default n + depends on ADK_TARGET_KERNEL_MAY_64BIT + endmenu -- cgit v1.2.3