forked from len0rd/rockbox
		
	SUPPORTED SERIES: - NWZ-E450 - NWZ-E460 - NWZ-E470 - NWZ-E580 - NWZ-A10 NOTES: - bootloader makefile convert an extra font to be installed alongside the bootloader since sysfont is way too small - the toolsicon bitmap comes from the Oxygen iconset - touchscreen driver is untested TODO: - implement audio routing driver (pcm is handled by pcm-alsa) - fix playback: it crashes on illegal instruction in DEBUG builds - find out why the browser starts at / instead of /contents - implement radio support - implement return to OF for usb handling - calibrate battery curve (NB: of can report a battery level on a 0-5 scale but probabl don't want to use that ?) - implement simulator build (we need a nice image of the player) - figure out if we can detect jack removal POTENTIAL TODOS: - try to build a usb serial gadget and gdbserver Change-Id: Ic77d71e0651355d47cc4e423a40fb64a60c69a80
		
			
				
	
	
		
			52 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| #             __________               __   ___.
 | |
| #   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 | |
| #   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 | |
| #   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 | |
| #   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 | |
| #                     \/            \/     \/    \/            \/
 | |
| # $Id$
 | |
| #
 | |
| 
 | |
| BITMAPDIR = $(ROOTDIR)/apps/bitmaps
 | |
| BMPINCDIR = $(BUILDDIR)/bitmaps
 | |
| 
 | |
| INCLUDES += -I$(BMPINCDIR)
 | |
| 
 | |
| ifneq ($(strip $(BMP2RB_MONO)),)
 | |
| BMP = $(call preprocess, $(BITMAPDIR)/mono/SOURCES)
 | |
| endif
 | |
| ifneq ($(strip $(BMP2RB_NATIVE)),)
 | |
| BMP += $(call preprocess, $(BITMAPDIR)/native/SOURCES)
 | |
| endif
 | |
| ifneq ($(strip $(BMP2RB_REMOTEMONO)),)
 | |
| BMP += $(call preprocess, $(BITMAPDIR)/remote_mono/SOURCES)
 | |
| endif
 | |
| ifneq ($(strip $(BMP2RB_REMOTENATIVE)),)
 | |
| BMP += $(call preprocess, $(BITMAPDIR)/remote_native/SOURCES)
 | |
| endif
 | |
| 
 | |
| BMPOBJ = $(call full_path_subst,$(ROOTDIR)/%.bmp,$(BUILDDIR)/%.o,$(BMP))
 | |
| 
 | |
| BMPHFILES = $(BMPINCDIR)/usblogo.h $(BMPINCDIR)/remote_usblogo.h \
 | |
| 	$(BMPINCDIR)/default_icons.h $(BMPINCDIR)/remote_default_icons.h \
 | |
| 	$(BMPINCDIR)/rockboxlogo.h $(BMPINCDIR)/remote_rockboxlogo.h \
 | |
| 	$(BMPINCDIR)/rockboxicon.h $(BMPINCDIR)/toolsicon.h
 | |
| 
 | |
| $(BMPHFILES): $(BMPOBJ)
 | |
| 
 | |
| # pattern rules to create .c files from .bmp, one for each subdir:
 | |
| $(BUILDDIR)/apps/bitmaps/mono/%.c: $(ROOTDIR)/apps/bitmaps/mono/%.bmp $(TOOLSDIR)/bmp2rb
 | |
| 	$(SILENT)mkdir -p $(dir $@) $(BMPINCDIR)
 | |
| 	$(call PRINTS,BMP2RB $(<F))$(BMP2RB_MONO) -b -h $(BMPINCDIR) $< > $@
 | |
| 
 | |
| $(BUILDDIR)/apps/bitmaps/native/%.c: $(ROOTDIR)/apps/bitmaps/native/%.bmp $(TOOLSDIR)/bmp2rb
 | |
| 	$(SILENT)mkdir -p $(dir $@) $(BMPINCDIR)
 | |
| 	$(call PRINTS,BMP2RB $(<F))$(BMP2RB_NATIVE) -b -h $(BMPINCDIR) $< > $@
 | |
| 
 | |
| $(BUILDDIR)/apps/bitmaps/remote_mono/%.c: $(ROOTDIR)/apps/bitmaps/remote_mono/%.bmp $(TOOLSDIR)/bmp2rb
 | |
| 	$(SILENT)mkdir -p $(dir $@) $(BMPINCDIR)
 | |
| 	$(call PRINTS,BMP2RB $(<F))$(BMP2RB_REMOTEMONO) -b -h $(BMPINCDIR) $< > $@
 | |
| 
 | |
| $(BUILDDIR)/apps/bitmaps/remote_native/%.c: $(ROOTDIR)/apps/bitmaps/remote_native/%.bmp $(TOOLSDIR)/bmp2rb
 | |
| 	$(SILENT)mkdir -p $(dir $@) $(BMPINCDIR)
 | |
| 	$(call PRINTS,BMP2RB $(<F))$(BMP2RB_REMOTENATIVE) -b -h $(BMPINCDIR) $< > $@
 |