summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/hosted/agptek/rocker.make2
-rw-r--r--firmware/target/hosted/xduoo/button-xduoo.c9
-rw-r--r--firmware/target/hosted/xduoo/xduoo.make5
3 files changed, 10 insertions, 6 deletions
diff --git a/firmware/target/hosted/agptek/rocker.make b/firmware/target/hosted/agptek/rocker.make
index dd6be88f57..d159db77f3 100644
--- a/firmware/target/hosted/agptek/rocker.make
+++ b/firmware/target/hosted/agptek/rocker.make
@@ -43,7 +43,7 @@ $(BUILDDIR)/rockbox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS)
43 -L$(BUILDDIR)/lib $(call a2lnk,$(CORE_LIBS)) \ 43 -L$(BUILDDIR)/lib $(call a2lnk,$(CORE_LIBS)) \
44 $(LDOPTS) $(GLOBAL_LDOPTS) -Wl,-Map,$(BUILDDIR)/rockbox.map 44 $(LDOPTS) $(GLOBAL_LDOPTS) -Wl,-Map,$(BUILDDIR)/rockbox.map
45 45
46$(BUILDDIR)/rockbox.rocker : $(BUILDDIR)/rockbox.elf 46$(BUILDDIR)/$(BINARY): $(BUILDDIR)/rockbox.elf
47 $(call PRINTS,OC $(@F))$(call objcopy,$^,$@) 47 $(call PRINTS,OC $(@F))$(call objcopy,$^,$@)
48 48
49endif 49endif
diff --git a/firmware/target/hosted/xduoo/button-xduoo.c b/firmware/target/hosted/xduoo/button-xduoo.c
index 99b0908378..503e49e001 100644
--- a/firmware/target/hosted/xduoo/button-xduoo.c
+++ b/firmware/target/hosted/xduoo/button-xduoo.c
@@ -138,15 +138,22 @@ int button_read_device(void)
138 138
139bool headphones_inserted(void) 139bool headphones_inserted(void)
140{ 140{
141#ifdef BOOTLOADER
142 int ps = 0;
143#else
141 int ps = xduoo_get_outputs(); 144 int ps = xduoo_get_outputs();
145#endif
142 146
143 return (ps == 2 || ps == 3); 147 return (ps == 2 || ps == 3);
144} 148}
145 149
146bool lineout_inserted(void) 150bool lineout_inserted(void)
147{ 151{
152#ifdef BOOTLOADER
153 int ps = 0;
154#else
148 int ps = xduoo_get_outputs(); 155 int ps = xduoo_get_outputs();
149 156#endif
150 return (ps == 1); 157 return (ps == 1);
151} 158}
152 159
diff --git a/firmware/target/hosted/xduoo/xduoo.make b/firmware/target/hosted/xduoo/xduoo.make
index 5c37d27412..d159db77f3 100644
--- a/firmware/target/hosted/xduoo/xduoo.make
+++ b/firmware/target/hosted/xduoo/xduoo.make
@@ -43,10 +43,7 @@ $(BUILDDIR)/rockbox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS)
43 -L$(BUILDDIR)/lib $(call a2lnk,$(CORE_LIBS)) \ 43 -L$(BUILDDIR)/lib $(call a2lnk,$(CORE_LIBS)) \
44 $(LDOPTS) $(GLOBAL_LDOPTS) -Wl,-Map,$(BUILDDIR)/rockbox.map 44 $(LDOPTS) $(GLOBAL_LDOPTS) -Wl,-Map,$(BUILDDIR)/rockbox.map
45 45
46$(BUILDDIR)/rockbox.x3ii : $(BUILDDIR)/rockbox.elf 46$(BUILDDIR)/$(BINARY): $(BUILDDIR)/rockbox.elf
47 $(call PRINTS,OC $(@F))$(call objcopy,$^,$@)
48
49$(BUILDDIR)/rockbox.x20 : $(BUILDDIR)/rockbox.elf
50 $(call PRINTS,OC $(@F))$(call objcopy,$^,$@) 47 $(call PRINTS,OC $(@F))$(call objcopy,$^,$@)
51 48
52endif 49endif