Date: Thu, 27 Jun 2013 00:38:39 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r321825 - in head/sysutils/acpica-tools: . files Message-ID: <201306270038.r5R0cdv4024936@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Thu Jun 27 00:38:39 2013 New Revision: 321825 URL: http://svnweb.freebsd.org/changeset/ports/321825 Log: Attempt to it buildable on non-Intel platforms and fix build on current. Added: head/sysutils/acpica-tools/files/ head/sysutils/acpica-tools/files/patch-source__include__platform__acfreebsd.h (contents, props changed) Modified: head/sysutils/acpica-tools/Makefile Modified: head/sysutils/acpica-tools/Makefile ============================================================================== --- head/sysutils/acpica-tools/Makefile Wed Jun 26 23:30:28 2013 (r321824) +++ head/sysutils/acpica-tools/Makefile Thu Jun 27 00:38:39 2013 (r321825) @@ -14,8 +14,6 @@ COMMENT= Tools from the ACPI Component A LICENSE= BSD -ONLY_FOR_ARCHS= amd64 i386 ia64 - USE_GMAKE= yes MAKE_ARGS= HOST=_FreeBSD WRKSRC_SUBDIR= generate/unix Added: head/sysutils/acpica-tools/files/patch-source__include__platform__acfreebsd.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/acpica-tools/files/patch-source__include__platform__acfreebsd.h Thu Jun 27 00:38:39 2013 (r321825) @@ -0,0 +1,33 @@ +--- ../../source/include/platform/acfreebsd.h.orig 2013-06-26 14:00:12.000000000 -0400 ++++ ../../source/include/platform/acfreebsd.h 2013-06-26 20:30:30.000000000 -0400 +@@ -49,12 +49,21 @@ + + #include "acgcc.h" + #include <sys/types.h> +-#include <machine/acpica_machdep.h> ++ ++#ifdef __LP64__ ++#define ACPI_MACHINE_WIDTH 64 ++#else ++#define ACPI_MACHINE_WIDTH 32 ++#endif ++ ++#define COMPILER_DEPENDENT_INT64 int64_t ++#define COMPILER_DEPENDENT_UINT64 uint64_t + + #define ACPI_UINTPTR_T uintptr_t + + #define ACPI_USE_DO_WHILE_0 + #define ACPI_USE_LOCAL_CACHE ++#define ACPI_USE_NATIVE_DIVIDE + #define ACPI_USE_SYSTEM_CLIBRARY + + #ifdef _KERNEL +@@ -63,6 +72,7 @@ + #include <sys/param.h> + #include <sys/systm.h> + #include <sys/libkern.h> ++#include <machine/acpica_machdep.h> + #include <machine/stdarg.h> + + #include "opt_acpi.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306270038.r5R0cdv4024936>