battery_level() already had a stub


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1367 a1c6a512-1295-4272-9138-f99709370657
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index cf529c0..fc24346 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -26,8 +26,3 @@
 {
     (void)dummy;
 }
-
-int battery_level(void)
-{
-    return 73;
-}
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index c91342f..c546c62 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -73,7 +73,7 @@
 
 APPCFLAGS = $(DEBUG) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(APPINCLUDES) -W -Wall
 
-FIRMSRCS = chartables.c lcd.c sprintf.c id3.c debug.c usb.c mpeg.c
+FIRMSRCS = chartables.c lcd.c sprintf.c id3.c debug.c usb.c mpeg.c power.c
 
 APPS = main.c tree.c menu.c credits.c main_menu.c\
 	playlist.c showtext.c wps.c settings.c
@@ -224,6 +224,9 @@
 $(OBJDIR)/stubs.o: ../common/stubs.c
 	$(CC) $(CFLAGS) -c $< -o $@
 
+$(OBJDIR)/power.o: $(DRIVERS)/power.c
+	$(CC) $(CFLAGS) -c $< -o $@
+
 
 # these ones are simulator-specific