Commit fc8956f1 authored by Florent Revest's avatar Florent Revest

Adds a profiled recipe

parent 5722d43a
From 525cbe6dff7c9022d1b5e8f95a09c4ee90e5f04e Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Mon, 26 Oct 2015 20:17:23 +0100
Subject: [PATCH] Fixes build
---
Makefile | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/Makefile b/Makefile
index feac54a..dd989b1 100644
--- a/Makefile
+++ b/Makefile
@@ -57,17 +57,17 @@ TEMPLATE_COPY = sed\
# Global Flags
# ----------------------------------------------------------------------------
-CPPFLAGS += -D_GNU_SOURCE
+override CPPFLAGS += -D_GNU_SOURCE
-CFLAGS += -Wall
-CFLAGS += -Wmissing-prototypes
-CFLAGS += -Wunused-result
-CFLAGS += -W
-CFLAGS += -std=c99
-CFLAGS += -Os
-CFLAGS += -g
+override CFLAGS += -Wall
+override CFLAGS += -Wmissing-prototypes
+override CFLAGS += -Wunused-result
+override CFLAGS += -W
+override CFLAGS += -std=c99
+override CFLAGS += -Os
+override CFLAGS += -g
-LDFLAGS += -g
+override LDFLAGS += -g
LDLIBS += -Wl,--as-needed
@@ -80,26 +80,26 @@ PKG_LDLIBS := $(shell pkg-config --libs $(PKG_NAMES))
PKG_CPPFLAGS := $(filter -D%,$(PKG_CFLAGS)) $(filter -I%,$(PKG_CFLAGS))
PKG_CFLAGS := $(filter-out -I%, $(filter-out -D%, $(PKG_CFLAGS)))
-CPPFLAGS += $(PKG_CPPFLAGS)
-CFLAGS += $(PKG_CFLAGS)
+override CPPFLAGS += $(PKG_CPPFLAGS)
+override CFLAGS += $(PKG_CFLAGS)
LDLIBS += $(PKG_LDLIBS) -lrt
ifeq ($(USE_SYSTEM_BUS),y)
-CPPFLAGS += -DUSE_SYSTEM_BUS
+override CPPFLAGS += -DUSE_SYSTEM_BUS
endif
-CPPFLAGS += -D LOGGING_ENABLED # any logging at all?
+override CPPFLAGS += -D LOGGING_ENABLED # any logging at all?
## QUARANTINE CPPFLAGS += -D LOGGING_LEVEL=7 # debug
## QUARANTINE CPPFLAGS += -D LOGGING_LEVEL=6 # info
## QUARANTINE CPPFLAGS += -D LOGGING_LEVEL=5 # notice
-CPPFLAGS += -D LOGGING_LEVEL=4 # warning
+override CPPFLAGS += -D LOGGING_LEVEL=4 # warning
## QUARANTINE CPPFLAGS += -D LOGGING_LEVEL=3 # err
## QUARANTINE CPPFLAGS += -D LOGGING_LEVEL=2 # crit
## QUARANTINE CPPFLAGS += -D LOGGING_LEVEL=1 # alert
## QUARANTINE CPPFLAGS += -D LOGGING_LEVEL=0 # emerg
-CPPFLAGS += -D LOGGING_CHECK1ST# level check before args eval
+override CPPFLAGS += -D LOGGING_CHECK1ST# level check before args eval
## QUARANTINE CPPFLAGS += -D LOGGING_EXTRA # promote debug to warnings
## QUARANTINE CPPFLAGS += -D LOGGING_FNCALLS # calltree via ENTER/LEAVE
@@ -138,7 +138,7 @@ debclean:: distclean
mostlyclean::
$(RM) *.o *~
-install:: $(addprefix install-,profiled profileclient libprofile libprofile-dev libprofile-doc)
+install:: $(addprefix install-,profiled profileclient libprofile libprofile-dev)
doxygen.executed:
doxygen
@@ -198,7 +198,7 @@ install-%-rfs-scripts:
% : %.o
$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
-%$(SO): LDFLAGS += -shared -Wl,-soname,$@
+%$(SO): override LDFLAGS += -shared -Wl,-soname,$@
%$(SO):
$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
@@ -206,8 +206,8 @@ install-%-rfs-scripts:
%.a:
$(AR) r $@ $^
-%.pic.o : CFLAGS += -fPIC
-%.pic.o : CFLAGS += -fvisibility=hidden
+%.pic.o : override CFLAGS += -fPIC
+%.pic.o : override CFLAGS += -fvisibility=hidden
%.pic.o : %.c
@echo "Compile Dynamic: $<"
@@ -289,13 +289,13 @@ libprofile.a : $(libprofile_obj)
profileclient_src = profileclient.c
profileclient_obj = $(profileclient_src:.c=.o)
-#profileclient : CFLAGS += -Wno-missing-prototypes
+#profileclient : override CFLAGS += -Wno-missing-prototypes
profileclient : $(profileclient_obj) libprofile$(SO)
profileclient.cflow : $(profileclient_src) $(libprofile_src)
# special case: no warnings from using deprecated functions
-profileclient.o: CFLAGS += -Wno-deprecated-declarations
+profileclient.o: override CFLAGS += -Wno-deprecated-declarations
# ----------------------------------------------------------------------------
# profile-tracker -- debug stuff
--
2.6.1
SUMMARY = "Daemon for device profile handling."
HOMEPAGE = "https://git.merproject.org/mer-core/profiled"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://mainloop.c;beginline=1;endline=35;md5=5c3ca83e642104421900fdd3ecb1176e"
SRC_URI = "git://git.merproject.org/mer-core/profiled.git;protocol=https \
file://0001-Fixes-build.patch"
SRCREV = "71f6fbe6f3845365627923c40569bbd078ab8b19"
PR = "r1"
PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
DEPENDS += "glib-2.0 dbus dbus-glib"
B = "${WORKDIR}/git"
do_compile_prepend() {
export USE_SYSTEM_BUS=y
export CFLAGS="-std=c11 $CFLAGS"
}
do_install() {
ROOT=${D} make install
}
FILES_${PN} += "/usr/share/dbus-1/services/profiled.service"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment