From 53e9fae78c2fb1824c4d9cdbf6bd418e3325d2a9 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 25 Jun 2012 11:31:33 +0200 Subject: sandbox: fix 64bit build On x86_64 we need CONFIG_PHYS_ADDR_T_64BIT to make the resource sizes 64bit. The kernel has this as a Kconfig variable, but on barebox sandbox will build with whatever compiler we find, so we can't put it into Kconfig. Signed-off-by: Sascha Hauer --- arch/sandbox/include/asm/types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/sandbox/include/asm/types.h') diff --git a/arch/sandbox/include/asm/types.h b/arch/sandbox/include/asm/types.h index a9872194d9..d471d257be 100644 --- a/arch/sandbox/include/asm/types.h +++ b/arch/sandbox/include/asm/types.h @@ -7,6 +7,13 @@ * 64 bit */ #define INTERNAL_SIZE_T unsigned long + +/* + * This is a Kconfig variable in the Kernel, but we want to detect + * this during compile time, so we set it here. + */ +#define CONFIG_PHYS_ADDR_T_64BIT + #endif typedef unsigned short umode_t; -- cgit v1.2.3