Now the lollipop bionic has full kernel uapi headers.
Just convert the old macros to match the new headers.
No additional hacking is needed.
include $(CLEAR_VARS)
-KERNEL_DIR ?= kernel
-
-use_uapi = $(firstword $(wildcard $(addprefix $(KERNEL_DIR)/include/,uapi/$(1) $(1))))
-
-LOCAL_CFLAGS += \
- -include $(call use_uapi,video/uvesafb.h) \
- -include $(call use_uapi,linux/connector.h)
+LOCAL_CFLAGS := \
+ -Wno-unused-parameter
+
+LOCAL_CFLAGS_x86 := \
+ -DIF_MASK=X86_EFLAGS_IF \
+ -DIOPL_MASK=X86_EFLAGS_IOPL \
+ -DTF_MASK=X86_EFLAGS_TF \
+ -DVIF_MASK=X86_EFLAGS_VIF
LOCAL_SRC_FILES := \
v86.c \
struct completion;
-#ifndef __ANDROID__
#include <linux/connector.h>
#include <video/uvesafb.h>
-#endif
//#define ulog(args...) do {} while (0)
//#define ulog(args...) fprintf(stdout, ##args)
#ifdef __cplusplus
#define X86EMU_UNUSED(v)
#else
-#define X86EMU_UNUSED(v) v
+#define X86EMU_UNUSED(v) __attribute__((unused)) v
#endif
#include "x86emu.h"