erosqnative: Give erosqnative_v3 its own target ID and modelname

This is needed so "make clean; make reconf" will work correctly.

Change-Id: Ife13e59ac6054f04f7095aa2263ec64595eeb3a2
This commit is contained in:
Dana Conrad 2024-09-02 19:27:59 +00:00 committed by Solomon Peachy
parent a86e2b5c6e
commit a5462d6192
3 changed files with 11 additions and 11 deletions

View file

@ -9,15 +9,15 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
/* Define EROSQN_VER as a GCC option if desired -
/* Define EROSQN_VER as an "extradefine" in the configure script -
* v1, v2 players: "1"
* v3 players: "3"
* Only bootloader will be affected
* Only bootloader will be affected.
*
* This allows us to fix the LCD init issues with v3 players.
*/
#ifdef BOOTLOADER
# ifndef EROSQN_VER /* this should probably go in config/erosqnative.h*/
# define EROSQN_VER 1
# endif
#ifndef EROSQN_VER
#error "Must define EROSQN_VER"
#endif
/* CPU defines */

View file

@ -12,7 +12,7 @@ include $(ROOTDIR)/lib/microtar/microtar.make
INCLUDES += -I$(APPSDIR)
SRC += $(call preprocess, $(APPSDIR)/SOURCES)
LDSDEP := $(FIRMDIR)/export/cpu.h $(FIRMDIR)/export/config/$(MODELNAME).h
LDSDEP := $(FIRMDIR)/export/cpu.h $(FIRMDIR)/export/config.h
BOOTLDS := $(FIRMDIR)/target/$(CPU)/$(MANUFACTURER)/boot.lds
BOOTLINK := $(BUILDDIR)/boot.link

8
tools/configure vendored
View file

@ -4194,12 +4194,12 @@ fi
t_model="erosqnative"
# player version, for bootloader usage
# versions 1 and 2 both use 1
GCCOPTS="$GCCOPTS -DEROSQN_VER=1"
extradefines="$extradefines -DEROSQN_VER=1"
;;
248|erosqnative_v3)
target_id=116
modelname="erosqnative"
target_id=117
modelname="erosqnative_v3"
target="EROS_QN"
memory=32
mipsr2elcc
@ -4221,7 +4221,7 @@ fi
t_model="erosqnative"
# player version, for bootloader usage
# version 3
GCCOPTS="$GCCOPTS -DEROSQN_VER=3"
extradefines="$extradefines -DEROSQN_VER=3"
;;