[systemd] add target specific code
authorbaik <knhoon.baik@samsung.com>
Tue, 11 Dec 2012 04:36:47 +0000 (13:36 +0900)
committerbaik <knhoon.baik@samsung.com>
Tue, 11 Dec 2012 04:37:47 +0000 (13:37 +0900)
 it is just temporary code for systemd.
 it should be correctly changed later because it is target specific code

packaging/charging-animation.conf [new file with mode: 0644]
packaging/charging-animation.spec

diff --git a/packaging/charging-animation.conf b/packaging/charging-animation.conf
new file mode 100644 (file)
index 0000000..b89f00d
--- /dev/null
@@ -0,0 +1,19 @@
+CHG_ENV_SUPPORT_FB=0
+CHG_ENV_SUPPORT_DRM=1
+
+CHG_ENV_DEV_FB=
+CHG_ENV_DEV_DRM_NAME=exynos
+
+CHG_ENV_LCD_BRIGHT=/sys/class/backlight/s6e8aa0-bl/brightness
+CHG_ENV_LCD_BR_DIMM_VAL=0
+CHG_ENV_LCD_BR_NORM_VAL=10
+
+CHG_ENV_LCD_BL_ONOFF=/sys/class/graphics/fb3/blank
+CHG_ENV_LCD_BL_ON_VAL=0
+CHG_ENV_LCD_BL_OFF_VAL=4
+CHG_ENV_LCD_BL_NORM_VAL=
+
+CHG_ENV_LCD_XRES=720
+CHG_ENV_LCD_YRES=1280
+
+CHG_ENV_KEY_EVENT=/dev/event1
index 891d7d6..9588236 100755 (executable)
@@ -8,6 +8,7 @@ License:    Flora Software License
 Source0:    %{name}-%{version}.tar.gz
 Source100:  charging-mode.target
 Source101:  charging-mode.service
+Source102:  charging-animation.conf
 
 BuildRequires: cmake
 
@@ -34,6 +35,11 @@ make %{?jobs:-j%jobs}
 cd cmake_tmp
 %make_install
 
+# temoprary HW configuration. it should be seperated.
+mkdir -p %{buildroot}/etc/sysconfig
+install -m 644 %{SOURCE102} %{buildroot}/etc/sysconfig/charging-animation
+
+
 # systemd related
 mkdir -p %{buildroot}%{_libdir}/systemd/system/
 install -m 0644 %{SOURCE100} %{buildroot}%{_libdir}/systemd/system/