Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://projects.maemo.org/svn/dsm/dsme/trunk@10430 db81c003-b5ea-0310-aa99-ed7f6e1db739
- Loading branch information
Semi Malinen
committed
Jan 9, 2009
0 parents
commit 5c7c205
Showing
92 changed files
with
14,383 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<todo version="0.1.20"> | ||
<note priority="medium" time="1229084875" done="1229090017"> | ||
make lifeguard to listen to STATE_CHANGE_IND instead of PROCESS_CLEAR | ||
<note priority="medium" time="1229084912" done="0"> | ||
remove DSM_MSGTYPE_PROCESS_CLEAR | ||
</note> | ||
</note> | ||
<note priority="medium" time="1228210816"> | ||
Thermal Manager: do not poll at NORMAL level | ||
</note> | ||
<note priority="medium" time="1228219029"> | ||
dbus_connection_set_exit_on_disconnect(,0) | ||
<note priority="medium" time="1228223903"> | ||
upstart should notify dsme about D-Bus restart | ||
</note> | ||
</note> | ||
<note priority="medium" time="1228294688"> | ||
stop using runlevels; use bootstates instead | ||
</note> | ||
<note priority="medium" time="1228308492"> | ||
disable memory thermal object | ||
</note> | ||
<note priority="medium" time="1229419447"> | ||
remove non-reentrant stuff from signal_handler() | ||
</note> | ||
<note priority="medium" time="1229678796"> | ||
remove field 'state' from DSM_MSGTYPE_SHUTDOWN_REQ | ||
</note> | ||
</todo> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
# | ||
# Build targets | ||
# | ||
BINARIES := dsme | ||
A_LIBRARIES := libdsme | ||
SO_LIBRARIES := libdsme libdsme_dbus_if | ||
SUBDIRS := util modules | ||
|
||
VERSION := 0.60.0 | ||
|
||
# | ||
# Install files in this directory | ||
# | ||
INSTALL_PERM := 644 | ||
INSTALL_OWNER := $(shell id -u) | ||
INSTALL_GROUP := $(shell id -g) | ||
|
||
INSTALL_BINARIES := dsme | ||
$(INSTALL_BINARIES) : INSTALL_PERM := 755 | ||
$(INSTALL_BINARIES) : INSTALL_DIR := $(DESTDIR)/sbin | ||
INSTALL_A_LIBRARIES := libdsme.a | ||
$(INSTALL_A_LIBRARIES) : INSTALL_DIR := $(DESTDIR)/usr/lib | ||
INSTALL_SO_LIBRARIES := libdsme.so libdsme_dbus_if.so | ||
$(INSTALL_SO_LIBRARIES): INSTALL_PERM := 755 | ||
$(INSTALL_SO_LIBRARIES): INSTALL_DIR := $(DESTDIR)/usr/lib | ||
INSTALL_INCLUDES := include/dsme/protocol.h \ | ||
include/dsme/messages.h | ||
$(INSTALL_INCLUDES) : INSTALL_DIR := $(DESTDIR)/usr/include/dsme | ||
#INSTALL_OTHER := README | ||
#README: INSTALL_DIR := $(DESTDIR)/usr/share/doc/dsme | ||
INSTALL_OTHER := dsme.pc dsme_dbus_if.pc | ||
dsme.pc : INSTALL_DIR := $(DESTDIR)/usr/lib/pkgconfig | ||
dsme_dbus_if.pc : INSTALL_DIR := $(DESTDIR)/usr/lib/pkgconfig | ||
|
||
# | ||
# Compiler and tool flags | ||
# C_OPTFLAGS are not used for debug builds (ifdef DEBUG) | ||
# C_DBGFLAGS are not used for normal builds | ||
# | ||
C_GENFLAGS := -DPRG_VERSION=$(VERSION) -g \ | ||
-Wall -Wwrite-strings -Wmissing-prototypes -Werror# -pedantic | ||
C_OPTFLAGS := -O2 -s | ||
C_DBGFLAGS := -g -DDEBUG -DDSME_LOG_ENABLE | ||
C_DEFINES := DSME_POSIX_TIMER DSME_WD_SYNC DSME_BMEIPC | ||
C_INCDIRS := $(TOPDIR)/include $(TOPDIR)/modules $(TOPDIR) | ||
MKDEP_INCFLAGS := $$(pkg-config --cflags-only-I glib-2.0) | ||
|
||
LD_GENFLAGS := | ||
LD_LIBPATHS := $(TOPDIR) | ||
|
||
# If OSSO_DEBUG is defined, compile in the logging | ||
#ifdef OSSO_LOG | ||
C_OPTFLAGS += -DDSME_LOG_ENABLE | ||
#endif | ||
|
||
ifneq (,$(findstring DSME_BMEIPC,$(C_DEFINES))) | ||
export DSME_BMEIPC = yes | ||
endif | ||
|
||
# | ||
# Target composition and overrides | ||
# | ||
|
||
# dsme | ||
dsme_C_OBJS := dsme.o modulebase.o timers.o \ | ||
logging.o oom.o mainloop.o \ | ||
dsme-cal.o dsmesock.o | ||
dsme_SO_LIBS := dsme | ||
dsme_LIBS := dl cal | ||
dsme: LD_EXTRA_GENFLAGS := -rdynamic | ||
|
||
#logging.o: C_EXTRA_DEFINES := USE_STDERR | ||
dsme.o : C_EXTRA_GENFLAGS := $$(pkg-config --cflags glib-2.0) | ||
mainloop.o : C_EXTRA_GENFLAGS := $$(pkg-config --cflags glib-2.0) | ||
modulebase.o: C_EXTRA_GENFLAGS := $$(pkg-config --cflags glib-2.0) | ||
timers.o : C_EXTRA_GENFLAGS := $$(pkg-config --cflags glib-2.0) | ||
dsmesock.o : C_EXTRA_GENFLAGS := $$(pkg-config --cflags glib-2.0) | ||
|
||
# libdsme.so and libdsme.a | ||
protocol.o : C_EXTRA_GENFLAGS := -fPIC $$(pkg-config --cflags glib-2.0) | ||
message.o : C_EXTRA_GENFLAGS := -fPIC | ||
libdsme_C_OBJS := protocol.o message.o | ||
libdsme_EXTRA_LDFLAGS := $$(pkg-config --libs glib-2.0) | ||
libdsme.so : LIBRARY_VERSION := 0.2.0 | ||
|
||
# libdsme_dbus_if.so | ||
libdsme_dbus_if_C_OBJS := modules/dsme_dbus_if.o | ||
modules/dsme_dbus_if.o: C_EXTRA_GENFLAGS := -fPIC | ||
libdsme_dbus_if.so : LIBRARY_VERSION := 0.2.0 | ||
|
||
|
||
# | ||
# This is the topdir for build | ||
# | ||
TOPDIR := $(shell /bin/pwd) | ||
|
||
# | ||
# Non-target files/directories to be deleted by distclean | ||
# | ||
DISTCLEAN_DIRS := doc tags | ||
|
||
#DISTCLN_SUBDIRS := _distclean_tests | ||
|
||
# | ||
# Actual rules | ||
# | ||
include $(TOPDIR)/Rules.make | ||
|
||
.PHONY: tags | ||
tags: | ||
find . -name '*.[hc]' |xargs ctags | ||
|
||
.PHONY: doc | ||
doc: | ||
doxygen | ||
|
||
local_install: | ||
mkdir -p $(DESTDIR)/etc/dsme | ||
install -m 600 -o $(INSTALL_OWNER) -g $(INSTALL_GROUP) lifeguard.uids $(DESTDIR)/etc/dsme | ||
|
||
|
||
.PHONY: test | ||
test: all | ||
make -C test depend | ||
make -C test | ||
make -C test run |
Oops, something went wrong.