diff options
Diffstat (limited to 'recipes-devtools/pi-blaster/files/0001-handle-install-data-hook-when-cross-compile.patch')
-rw-r--r-- | recipes-devtools/pi-blaster/files/0001-handle-install-data-hook-when-cross-compile.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/recipes-devtools/pi-blaster/files/0001-handle-install-data-hook-when-cross-compile.patch b/recipes-devtools/pi-blaster/files/0001-handle-install-data-hook-when-cross-compile.patch new file mode 100644 index 0000000..2f2a7f4 --- /dev/null +++ b/recipes-devtools/pi-blaster/files/0001-handle-install-data-hook-when-cross-compile.patch @@ -0,0 +1,54 @@ +From 28e4bc3216f8845cf278f0fbc6b2c30eebcc35aa Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petter=20Mab=C3=A4cker?= <petter@technux.se> +Date: Sun, 7 Jun 2015 17:17:01 +0200 +Subject: [PATCH] handle install-data-hook when cross compile +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Avoid doing 'install-data-hook' when cross compiling since it isn't +suitable to update rc.d or run the service when cross +compiling. + +Upstream-Status: Pending + +Signed-off-by: Petter Mabäcker <petter@technux.se> +--- + Makefile.am | 4 +++- + configure.ac | 1 + + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 6693d46..935288f 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -13,6 +13,7 @@ else + init_ddir = $(sysconfdir)/init.d + init_d_SCRIPTS = pi-blaster.boot.sh + ++if !CROSS_COMPILING + install-data-hook: + update-rc.d pi-blaster.boot.sh defaults + $(init_ddir)/pi-blaster.boot.sh start +@@ -20,4 +21,5 @@ install-data-hook: + uninstall-hook: + update-rc.d pi-blaster.boot.sh remove + killall pi-blaster +-endif ++endif # !CROSS_COMPILING ++endif # !HAVE_SYSTEMD +diff --git a/configure.ac b/configure.ac +index 5d0c1fa..aaf4465 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -23,6 +23,7 @@ if test "x$with_systemdsystemunitdir" != xno; then + AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) + fi + AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) ++AM_CONDITIONAL(CROSS_COMPILING, [test x"$cross_compiling" = x"yes" ]) + + # Checks for programs. + AC_PROG_CC +-- +1.9.1 + |