xref: /OK3568_Linux_fs/buildroot/package/frecon/0002-Disable-dbus_full-when-not-in-ChromeOS.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 98ead7437f2c3e96c87230e5d7fde61fdfb4bb99 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Thu, 9 Jun 2022 16:59:54 +0800
4Subject: [PATCH 2/9] Disable dbus_full when not in ChromeOS
5
6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
7---
8 Makefile | 13 +++++++++++--
9 1 file changed, 11 insertions(+), 2 deletions(-)
10
11diff --git a/Makefile b/Makefile
12index 3fef7e9..a2e0d43 100644
13--- a/Makefile
14+++ b/Makefile
15@@ -5,6 +5,7 @@
16 include common.mk
17
18 FRECON_LITE ?= 0
19+CHROMEOS ?= 1
20
21 PC_DEPS = libdrm libpng libtsm
22 ifeq ($(FRECON_LITE),1)
23@@ -12,10 +13,18 @@ FRECON_OBJECTS = $(filter-out %_full.o,$(C_OBJECTS))
24 CPPFLAGS += -DFRECON_LITE=1
25 TARGET ?= frecon-lite
26 else
27-FRECON_OBJECTS = $(filter-out %_lite.o,$(C_OBJECTS))
28-PC_DEPS += dbus-1 libudev
29+FRECON_OBJECTS = $(filter-out dbus_full.o,$(filter-out %_lite.o,$(C_OBJECTS)))
30+PC_DEPS += libudev
31 CPPFLAGS += -DFRECON_LITE=0
32 TARGET ?= frecon
33+
34+ifeq ($(CHROMEOS),1)
35+PC_DEPS += dbus-1
36+FRECON_OBJECTS += dbus_full.o
37+else
38+FRECON_OBJECTS += dbus_lite.o
39+endif
40+
41 endif
42
43 PC_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PC_DEPS))
44--
452.20.1
46
47