summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/openembedded-layer/recipes-bsp/thermald/files/0001-Makefile-Fix-build-Issue.patch
blob: 270cc84daa1cc5867122e1ff4dbdd863bf3aa48f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From c4c049481d48f33319b1d04cad56d622c4eed65f Mon Sep 17 00:00:00 2001
From: Yogesh Tyagi <yogesh.tyagi@intel.com>
Date: Mon, 11 Mar 2024 13:13:32 +0800
Subject: [PATCH] Makefile: Fix build Issue
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

In case build directory is different from source, make sure make is able to find the correct input files. 

Fixes:
| dbus-binding-tool --prefix=thd_dbus_interface --mode=glib-server --output=thd_dbus_interface.h ../git/src/thd_dbus_interface.xml
| glib-compile-resources --generate-source thermald-resource.gresource.xml
| Failed to open file “thermald-resource.gresource.xml”: No such file or directory


Upstream-Status: Submitted
https://github.com/intel/thermal_daemon/pull/436

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index a0c051a..772e280 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -95,6 +95,6 @@ thd_dbus_interface.h: $(top_srcdir)/src/thd_dbus_interface.xml
 	$(AM_V_GEN) dbus-binding-tool --prefix=thd_dbus_interface --mode=glib-server --output=$@ $<
 
 thermald-resource.c: $(top_srcdir)/thermald-resource.gresource.xml
-	$(AM_V_GEN) glib-compile-resources --generate-source thermald-resource.gresource.xml
+	$(AM_V_GEN) glib-compile-resources --generate-source --sourcedir=${top_srcdir} $<
 
 CLEANFILES = $(BUILT_SOURCES)
-- 
2.34.1