From e4ae67a1c0ec690139b43561bdf202fffdd8450f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Hern=C3=A1ndez=20Blas?= Date: Mon, 7 Nov 2011 18:48:31 -0600 Subject: system/ibam: Added (Intelligent BAttery Monitor) Signed-off-by: Erik Hanson --- system/ibam/patches/ibam-0.5.2-acpi.patch | 15 +++++++++++++++ system/ibam/patches/ibam-0.5.2-ldflags.patch | 27 +++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 system/ibam/patches/ibam-0.5.2-acpi.patch create mode 100644 system/ibam/patches/ibam-0.5.2-ldflags.patch (limited to 'system/ibam/patches') diff --git a/system/ibam/patches/ibam-0.5.2-acpi.patch b/system/ibam/patches/ibam-0.5.2-acpi.patch new file mode 100644 index 0000000000..321f5b3c8d --- /dev/null +++ b/system/ibam/patches/ibam-0.5.2-acpi.patch @@ -0,0 +1,15 @@ +--- ibam-0.5.2/ibam.inl 2009-03-09 19:53:20.000000000 +0300 ++++ ibam-0.5.2/ibam.inl 2010-11-26 04:52:29.590364097 +0300 +@@ -942,10 +942,11 @@ + { + string pmu_path = "/proc/pmu"; // These strings are already in ibam.hpp, + string acpi_path = "/proc/acpi"; // maybe a static function should check this ++ string acpi_ver_path = "/sys/module/acpi/parameters/acpica_version"; + string sysfs_path = "/sys/class/power_supply"; // ... + ifstream pmu,acpi,sysfs; + pmu.open((pmu_path+"/info").c_str()); +- acpi.open((acpi_path+"/info").c_str()); ++ acpi.open(acpi_ver_path.c_str()); + if (pmu.is_open()) { + #ifdef IBAM_DEBUG + cout << "using pmu" << endl; diff --git a/system/ibam/patches/ibam-0.5.2-ldflags.patch b/system/ibam/patches/ibam-0.5.2-ldflags.patch new file mode 100644 index 0000000000..23c481dd63 --- /dev/null +++ b/system/ibam/patches/ibam-0.5.2-ldflags.patch @@ -0,0 +1,27 @@ +diff -uNr ibam-0.5.2.ORIG//Makefile ibam-0.5.2/Makefile +--- ibam-0.5.2.ORIG//Makefile 2010-10-19 21:49:39.000000000 +0100 ++++ ibam-0.5.2/Makefile 2010-10-19 21:53:27.000000000 +0100 +@@ -30,12 +30,12 @@ + all: ibam + + ibam: ibam.cpp ibam.inl ibam.hpp +- $(CC) $(CFLAGS) ibam.cpp -o ibam ++ $(CC) $(LDFLAGS) $(CFLAGS) ibam.cpp -o ibam + + krell: ibam-krell.so + + ibam-krell.so: ibam-krell.o +- $(CC) $(CFLAGS) -fPIC -shared -Wl -o ibam-krell.so ibam-krell.o ++ $(CC) $(LDFLAGS) $(CFLAGS) -fPIC -shared -Wl -o ibam-krell.so ibam-krell.o + + ibam-krell.o: ibam-krell.cpp ibam.hpp ibam.inl + $(CC) $(CFLAGS) -fPIC `pkg-config gtk+-2.0 --cflags` `gdk-pixbuf-config --cflags` -c ibam-krell.cpp +@@ -43,7 +43,7 @@ + krell1: ibam-krell1.so + + ibam-krell1.so: ibam-krell1.o +- $(CC) $(CFLAGS) -shared -Wl -o ibam-krell1.so ibam-krell1.o ++ $(CC) $(LDFLAGS) $(CFLAGS) -shared -Wl -o ibam-krell1.so ibam-krell1.o + + ibam-krell1.o: ibam-krell1.cpp ibam.hpp ibam.inl + $(CC) $(CFLAGS) -fPIC `gtk-config --cflags` `imlib-config --cflags-gdk` -c ibam-krell1.cpp -- cgit v1.2.3