diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/hosted/agptek/rocker.make | 2 | ||||
-rw-r--r-- | firmware/target/hosted/xduoo/button-xduoo.c | 9 | ||||
-rw-r--r-- | firmware/target/hosted/xduoo/xduoo.make | 5 |
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 | ||
49 | endif | 49 | endif |
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 | ||
139 | bool headphones_inserted(void) | 139 | bool 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 | ||
146 | bool lineout_inserted(void) | 150 | bool 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 | ||
52 | endif | 49 | endif |